mindkeeper-openclaw 0.2.11 → 0.2.13
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/index.js +422 -428
- package/dist/{llm-client.js → llm-client.cjs} +42 -5
- package/package.json +3 -11
package/dist/index.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
14
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
10
|
};
|
|
16
11
|
var __export = (target, all) => {
|
|
@@ -33,10 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
28
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
29
|
mod
|
|
35
30
|
));
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
32
|
|
|
37
33
|
// ../../node_modules/.pnpm/async-lock@1.4.1/node_modules/async-lock/lib/index.js
|
|
38
34
|
var require_lib = __commonJS({
|
|
39
|
-
"../../node_modules/.pnpm/async-lock@1.4.1/node_modules/async-lock/lib/index.js"(
|
|
35
|
+
"../../node_modules/.pnpm/async-lock@1.4.1/node_modules/async-lock/lib/index.js"(exports2, module2) {
|
|
40
36
|
"use strict";
|
|
41
37
|
var AsyncLock = function(opts) {
|
|
42
38
|
opts = opts || {};
|
|
@@ -255,23 +251,23 @@ var require_lib = __commonJS({
|
|
|
255
251
|
return this.Promise.reject(e);
|
|
256
252
|
}
|
|
257
253
|
};
|
|
258
|
-
|
|
254
|
+
module2.exports = AsyncLock;
|
|
259
255
|
}
|
|
260
256
|
});
|
|
261
257
|
|
|
262
258
|
// ../../node_modules/.pnpm/async-lock@1.4.1/node_modules/async-lock/index.js
|
|
263
259
|
var require_async_lock = __commonJS({
|
|
264
|
-
"../../node_modules/.pnpm/async-lock@1.4.1/node_modules/async-lock/index.js"(
|
|
260
|
+
"../../node_modules/.pnpm/async-lock@1.4.1/node_modules/async-lock/index.js"(exports2, module2) {
|
|
265
261
|
"use strict";
|
|
266
|
-
|
|
262
|
+
module2.exports = require_lib();
|
|
267
263
|
}
|
|
268
264
|
});
|
|
269
265
|
|
|
270
266
|
// ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
|
|
271
267
|
var require_inherits_browser = __commonJS({
|
|
272
|
-
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(
|
|
268
|
+
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports2, module2) {
|
|
273
269
|
if (typeof Object.create === "function") {
|
|
274
|
-
|
|
270
|
+
module2.exports = function inherits(ctor, superCtor) {
|
|
275
271
|
if (superCtor) {
|
|
276
272
|
ctor.super_ = superCtor;
|
|
277
273
|
ctor.prototype = Object.create(superCtor.prototype, {
|
|
@@ -285,7 +281,7 @@ var require_inherits_browser = __commonJS({
|
|
|
285
281
|
}
|
|
286
282
|
};
|
|
287
283
|
} else {
|
|
288
|
-
|
|
284
|
+
module2.exports = function inherits(ctor, superCtor) {
|
|
289
285
|
if (superCtor) {
|
|
290
286
|
ctor.super_ = superCtor;
|
|
291
287
|
var TempCtor = function() {
|
|
@@ -301,13 +297,13 @@ var require_inherits_browser = __commonJS({
|
|
|
301
297
|
|
|
302
298
|
// ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
|
|
303
299
|
var require_inherits = __commonJS({
|
|
304
|
-
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(
|
|
300
|
+
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports2, module2) {
|
|
305
301
|
try {
|
|
306
|
-
util =
|
|
302
|
+
util = require("util");
|
|
307
303
|
if (typeof util.inherits !== "function") throw "";
|
|
308
|
-
|
|
304
|
+
module2.exports = util.inherits;
|
|
309
305
|
} catch (e) {
|
|
310
|
-
|
|
306
|
+
module2.exports = require_inherits_browser();
|
|
311
307
|
}
|
|
312
308
|
var util;
|
|
313
309
|
}
|
|
@@ -315,8 +311,8 @@ var require_inherits = __commonJS({
|
|
|
315
311
|
|
|
316
312
|
// ../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
|
|
317
313
|
var require_safe_buffer = __commonJS({
|
|
318
|
-
"../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(
|
|
319
|
-
var buffer =
|
|
314
|
+
"../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports2, module2) {
|
|
315
|
+
var buffer = require("buffer");
|
|
320
316
|
var Buffer2 = buffer.Buffer;
|
|
321
317
|
function copyProps(src, dst) {
|
|
322
318
|
for (var key in src) {
|
|
@@ -324,10 +320,10 @@ var require_safe_buffer = __commonJS({
|
|
|
324
320
|
}
|
|
325
321
|
}
|
|
326
322
|
if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
|
|
327
|
-
|
|
323
|
+
module2.exports = buffer;
|
|
328
324
|
} else {
|
|
329
|
-
copyProps(buffer,
|
|
330
|
-
|
|
325
|
+
copyProps(buffer, exports2);
|
|
326
|
+
exports2.Buffer = SafeBuffer;
|
|
331
327
|
}
|
|
332
328
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
333
329
|
return Buffer2(arg, encodingOrOffset, length);
|
|
@@ -373,9 +369,9 @@ var require_safe_buffer = __commonJS({
|
|
|
373
369
|
|
|
374
370
|
// ../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js
|
|
375
371
|
var require_isarray = __commonJS({
|
|
376
|
-
"../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(
|
|
372
|
+
"../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(exports2, module2) {
|
|
377
373
|
var toString = {}.toString;
|
|
378
|
-
|
|
374
|
+
module2.exports = Array.isArray || function(arr) {
|
|
379
375
|
return toString.call(arr) == "[object Array]";
|
|
380
376
|
};
|
|
381
377
|
}
|
|
@@ -383,121 +379,121 @@ var require_isarray = __commonJS({
|
|
|
383
379
|
|
|
384
380
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
385
381
|
var require_type = __commonJS({
|
|
386
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(
|
|
382
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports2, module2) {
|
|
387
383
|
"use strict";
|
|
388
|
-
|
|
384
|
+
module2.exports = TypeError;
|
|
389
385
|
}
|
|
390
386
|
});
|
|
391
387
|
|
|
392
388
|
// ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
|
|
393
389
|
var require_es_object_atoms = __commonJS({
|
|
394
|
-
"../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(
|
|
390
|
+
"../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
395
391
|
"use strict";
|
|
396
|
-
|
|
392
|
+
module2.exports = Object;
|
|
397
393
|
}
|
|
398
394
|
});
|
|
399
395
|
|
|
400
396
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
|
|
401
397
|
var require_es_errors = __commonJS({
|
|
402
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(
|
|
398
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports2, module2) {
|
|
403
399
|
"use strict";
|
|
404
|
-
|
|
400
|
+
module2.exports = Error;
|
|
405
401
|
}
|
|
406
402
|
});
|
|
407
403
|
|
|
408
404
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
|
|
409
405
|
var require_eval = __commonJS({
|
|
410
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(
|
|
406
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports2, module2) {
|
|
411
407
|
"use strict";
|
|
412
|
-
|
|
408
|
+
module2.exports = EvalError;
|
|
413
409
|
}
|
|
414
410
|
});
|
|
415
411
|
|
|
416
412
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
417
413
|
var require_range = __commonJS({
|
|
418
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(
|
|
414
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports2, module2) {
|
|
419
415
|
"use strict";
|
|
420
|
-
|
|
416
|
+
module2.exports = RangeError;
|
|
421
417
|
}
|
|
422
418
|
});
|
|
423
419
|
|
|
424
420
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
|
|
425
421
|
var require_ref = __commonJS({
|
|
426
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(
|
|
422
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports2, module2) {
|
|
427
423
|
"use strict";
|
|
428
|
-
|
|
424
|
+
module2.exports = ReferenceError;
|
|
429
425
|
}
|
|
430
426
|
});
|
|
431
427
|
|
|
432
428
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
|
|
433
429
|
var require_syntax = __commonJS({
|
|
434
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(
|
|
430
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
435
431
|
"use strict";
|
|
436
|
-
|
|
432
|
+
module2.exports = SyntaxError;
|
|
437
433
|
}
|
|
438
434
|
});
|
|
439
435
|
|
|
440
436
|
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
|
|
441
437
|
var require_uri = __commonJS({
|
|
442
|
-
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(
|
|
438
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports2, module2) {
|
|
443
439
|
"use strict";
|
|
444
|
-
|
|
440
|
+
module2.exports = URIError;
|
|
445
441
|
}
|
|
446
442
|
});
|
|
447
443
|
|
|
448
444
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
|
|
449
445
|
var require_abs = __commonJS({
|
|
450
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(
|
|
446
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports2, module2) {
|
|
451
447
|
"use strict";
|
|
452
|
-
|
|
448
|
+
module2.exports = Math.abs;
|
|
453
449
|
}
|
|
454
450
|
});
|
|
455
451
|
|
|
456
452
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
|
|
457
453
|
var require_floor = __commonJS({
|
|
458
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(
|
|
454
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports2, module2) {
|
|
459
455
|
"use strict";
|
|
460
|
-
|
|
456
|
+
module2.exports = Math.floor;
|
|
461
457
|
}
|
|
462
458
|
});
|
|
463
459
|
|
|
464
460
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
|
|
465
461
|
var require_max = __commonJS({
|
|
466
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(
|
|
462
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports2, module2) {
|
|
467
463
|
"use strict";
|
|
468
|
-
|
|
464
|
+
module2.exports = Math.max;
|
|
469
465
|
}
|
|
470
466
|
});
|
|
471
467
|
|
|
472
468
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
|
|
473
469
|
var require_min = __commonJS({
|
|
474
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(
|
|
470
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports2, module2) {
|
|
475
471
|
"use strict";
|
|
476
|
-
|
|
472
|
+
module2.exports = Math.min;
|
|
477
473
|
}
|
|
478
474
|
});
|
|
479
475
|
|
|
480
476
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
|
|
481
477
|
var require_pow = __commonJS({
|
|
482
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(
|
|
478
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports2, module2) {
|
|
483
479
|
"use strict";
|
|
484
|
-
|
|
480
|
+
module2.exports = Math.pow;
|
|
485
481
|
}
|
|
486
482
|
});
|
|
487
483
|
|
|
488
484
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
|
|
489
485
|
var require_round = __commonJS({
|
|
490
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(
|
|
486
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports2, module2) {
|
|
491
487
|
"use strict";
|
|
492
|
-
|
|
488
|
+
module2.exports = Math.round;
|
|
493
489
|
}
|
|
494
490
|
});
|
|
495
491
|
|
|
496
492
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
|
|
497
493
|
var require_isNaN = __commonJS({
|
|
498
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(
|
|
494
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports2, module2) {
|
|
499
495
|
"use strict";
|
|
500
|
-
|
|
496
|
+
module2.exports = Number.isNaN || function isNaN2(a) {
|
|
501
497
|
return a !== a;
|
|
502
498
|
};
|
|
503
499
|
}
|
|
@@ -505,10 +501,10 @@ var require_isNaN = __commonJS({
|
|
|
505
501
|
|
|
506
502
|
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
|
|
507
503
|
var require_sign = __commonJS({
|
|
508
|
-
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(
|
|
504
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
509
505
|
"use strict";
|
|
510
506
|
var $isNaN = require_isNaN();
|
|
511
|
-
|
|
507
|
+
module2.exports = function sign(number) {
|
|
512
508
|
if ($isNaN(number) || number === 0) {
|
|
513
509
|
return number;
|
|
514
510
|
}
|
|
@@ -519,15 +515,15 @@ var require_sign = __commonJS({
|
|
|
519
515
|
|
|
520
516
|
// ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
|
|
521
517
|
var require_gOPD = __commonJS({
|
|
522
|
-
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(
|
|
518
|
+
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
523
519
|
"use strict";
|
|
524
|
-
|
|
520
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
525
521
|
}
|
|
526
522
|
});
|
|
527
523
|
|
|
528
524
|
// ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
|
|
529
525
|
var require_gopd = __commonJS({
|
|
530
|
-
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(
|
|
526
|
+
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports2, module2) {
|
|
531
527
|
"use strict";
|
|
532
528
|
var $gOPD = require_gOPD();
|
|
533
529
|
if ($gOPD) {
|
|
@@ -537,13 +533,13 @@ var require_gopd = __commonJS({
|
|
|
537
533
|
$gOPD = null;
|
|
538
534
|
}
|
|
539
535
|
}
|
|
540
|
-
|
|
536
|
+
module2.exports = $gOPD;
|
|
541
537
|
}
|
|
542
538
|
});
|
|
543
539
|
|
|
544
540
|
// ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
|
|
545
541
|
var require_es_define_property = __commonJS({
|
|
546
|
-
"../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(
|
|
542
|
+
"../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports2, module2) {
|
|
547
543
|
"use strict";
|
|
548
544
|
var $defineProperty = Object.defineProperty || false;
|
|
549
545
|
if ($defineProperty) {
|
|
@@ -553,15 +549,15 @@ var require_es_define_property = __commonJS({
|
|
|
553
549
|
$defineProperty = false;
|
|
554
550
|
}
|
|
555
551
|
}
|
|
556
|
-
|
|
552
|
+
module2.exports = $defineProperty;
|
|
557
553
|
}
|
|
558
554
|
});
|
|
559
555
|
|
|
560
556
|
// ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
|
|
561
557
|
var require_shams = __commonJS({
|
|
562
|
-
"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(
|
|
558
|
+
"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
563
559
|
"use strict";
|
|
564
|
-
|
|
560
|
+
module2.exports = function hasSymbols() {
|
|
565
561
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
566
562
|
return false;
|
|
567
563
|
}
|
|
@@ -614,11 +610,11 @@ var require_shams = __commonJS({
|
|
|
614
610
|
|
|
615
611
|
// ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
|
|
616
612
|
var require_has_symbols = __commonJS({
|
|
617
|
-
"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(
|
|
613
|
+
"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports2, module2) {
|
|
618
614
|
"use strict";
|
|
619
615
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
620
616
|
var hasSymbolSham = require_shams();
|
|
621
|
-
|
|
617
|
+
module2.exports = function hasNativeSymbols() {
|
|
622
618
|
if (typeof origSymbol !== "function") {
|
|
623
619
|
return false;
|
|
624
620
|
}
|
|
@@ -638,24 +634,24 @@ var require_has_symbols = __commonJS({
|
|
|
638
634
|
|
|
639
635
|
// ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
640
636
|
var require_Reflect_getPrototypeOf = __commonJS({
|
|
641
|
-
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(
|
|
637
|
+
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports2, module2) {
|
|
642
638
|
"use strict";
|
|
643
|
-
|
|
639
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
644
640
|
}
|
|
645
641
|
});
|
|
646
642
|
|
|
647
643
|
// ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
|
|
648
644
|
var require_Object_getPrototypeOf = __commonJS({
|
|
649
|
-
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(
|
|
645
|
+
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports2, module2) {
|
|
650
646
|
"use strict";
|
|
651
647
|
var $Object = require_es_object_atoms();
|
|
652
|
-
|
|
648
|
+
module2.exports = $Object.getPrototypeOf || null;
|
|
653
649
|
}
|
|
654
650
|
});
|
|
655
651
|
|
|
656
652
|
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
657
653
|
var require_implementation = __commonJS({
|
|
658
|
-
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(
|
|
654
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
659
655
|
"use strict";
|
|
660
656
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
661
657
|
var toStr = Object.prototype.toString;
|
|
@@ -688,7 +684,7 @@ var require_implementation = __commonJS({
|
|
|
688
684
|
}
|
|
689
685
|
return str;
|
|
690
686
|
};
|
|
691
|
-
|
|
687
|
+
module2.exports = function bind(that) {
|
|
692
688
|
var target = this;
|
|
693
689
|
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
694
690
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
@@ -731,58 +727,58 @@ var require_implementation = __commonJS({
|
|
|
731
727
|
|
|
732
728
|
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
733
729
|
var require_function_bind = __commonJS({
|
|
734
|
-
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(
|
|
730
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports2, module2) {
|
|
735
731
|
"use strict";
|
|
736
732
|
var implementation = require_implementation();
|
|
737
|
-
|
|
733
|
+
module2.exports = Function.prototype.bind || implementation;
|
|
738
734
|
}
|
|
739
735
|
});
|
|
740
736
|
|
|
741
737
|
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
|
|
742
738
|
var require_functionCall = __commonJS({
|
|
743
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(
|
|
739
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports2, module2) {
|
|
744
740
|
"use strict";
|
|
745
|
-
|
|
741
|
+
module2.exports = Function.prototype.call;
|
|
746
742
|
}
|
|
747
743
|
});
|
|
748
744
|
|
|
749
745
|
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
|
|
750
746
|
var require_functionApply = __commonJS({
|
|
751
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(
|
|
747
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports2, module2) {
|
|
752
748
|
"use strict";
|
|
753
|
-
|
|
749
|
+
module2.exports = Function.prototype.apply;
|
|
754
750
|
}
|
|
755
751
|
});
|
|
756
752
|
|
|
757
753
|
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
|
|
758
754
|
var require_reflectApply = __commonJS({
|
|
759
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(
|
|
755
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports2, module2) {
|
|
760
756
|
"use strict";
|
|
761
|
-
|
|
757
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
762
758
|
}
|
|
763
759
|
});
|
|
764
760
|
|
|
765
761
|
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
|
|
766
762
|
var require_actualApply = __commonJS({
|
|
767
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(
|
|
763
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports2, module2) {
|
|
768
764
|
"use strict";
|
|
769
765
|
var bind = require_function_bind();
|
|
770
766
|
var $apply = require_functionApply();
|
|
771
767
|
var $call = require_functionCall();
|
|
772
768
|
var $reflectApply = require_reflectApply();
|
|
773
|
-
|
|
769
|
+
module2.exports = $reflectApply || bind.call($call, $apply);
|
|
774
770
|
}
|
|
775
771
|
});
|
|
776
772
|
|
|
777
773
|
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
|
|
778
774
|
var require_call_bind_apply_helpers = __commonJS({
|
|
779
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(
|
|
775
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports2, module2) {
|
|
780
776
|
"use strict";
|
|
781
777
|
var bind = require_function_bind();
|
|
782
778
|
var $TypeError = require_type();
|
|
783
779
|
var $call = require_functionCall();
|
|
784
780
|
var $actualApply = require_actualApply();
|
|
785
|
-
|
|
781
|
+
module2.exports = function callBindBasic(args) {
|
|
786
782
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
787
783
|
throw new $TypeError("a function is required");
|
|
788
784
|
}
|
|
@@ -793,7 +789,7 @@ var require_call_bind_apply_helpers = __commonJS({
|
|
|
793
789
|
|
|
794
790
|
// ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
|
|
795
791
|
var require_get = __commonJS({
|
|
796
|
-
"../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(
|
|
792
|
+
"../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports2, module2) {
|
|
797
793
|
"use strict";
|
|
798
794
|
var callBind = require_call_bind_apply_helpers();
|
|
799
795
|
var gOPD = require_gopd();
|
|
@@ -813,7 +809,7 @@ var require_get = __commonJS({
|
|
|
813
809
|
);
|
|
814
810
|
var $Object = Object;
|
|
815
811
|
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
816
|
-
|
|
812
|
+
module2.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
817
813
|
/** @type {import('./get')} */
|
|
818
814
|
function getDunder(value) {
|
|
819
815
|
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
@@ -824,12 +820,12 @@ var require_get = __commonJS({
|
|
|
824
820
|
|
|
825
821
|
// ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
|
|
826
822
|
var require_get_proto = __commonJS({
|
|
827
|
-
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(
|
|
823
|
+
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports2, module2) {
|
|
828
824
|
"use strict";
|
|
829
825
|
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
830
826
|
var originalGetProto = require_Object_getPrototypeOf();
|
|
831
827
|
var getDunderProto = require_get();
|
|
832
|
-
|
|
828
|
+
module2.exports = reflectGetProto ? function getProto(O) {
|
|
833
829
|
return reflectGetProto(O);
|
|
834
830
|
} : originalGetProto ? function getProto(O) {
|
|
835
831
|
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
@@ -844,18 +840,18 @@ var require_get_proto = __commonJS({
|
|
|
844
840
|
|
|
845
841
|
// ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
|
|
846
842
|
var require_hasown = __commonJS({
|
|
847
|
-
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(
|
|
843
|
+
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports2, module2) {
|
|
848
844
|
"use strict";
|
|
849
845
|
var call = Function.prototype.call;
|
|
850
846
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
851
847
|
var bind = require_function_bind();
|
|
852
|
-
|
|
848
|
+
module2.exports = bind.call(call, $hasOwn);
|
|
853
849
|
}
|
|
854
850
|
});
|
|
855
851
|
|
|
856
852
|
// ../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
|
|
857
853
|
var require_get_intrinsic = __commonJS({
|
|
858
|
-
"../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(
|
|
854
|
+
"../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
859
855
|
"use strict";
|
|
860
856
|
var undefined2;
|
|
861
857
|
var $Object = require_es_object_atoms();
|
|
@@ -1120,7 +1116,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
1120
1116
|
}
|
|
1121
1117
|
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
1122
1118
|
};
|
|
1123
|
-
|
|
1119
|
+
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
1124
1120
|
if (typeof name !== "string" || name.length === 0) {
|
|
1125
1121
|
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
1126
1122
|
}
|
|
@@ -1186,12 +1182,12 @@ var require_get_intrinsic = __commonJS({
|
|
|
1186
1182
|
|
|
1187
1183
|
// ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
1188
1184
|
var require_call_bound = __commonJS({
|
|
1189
|
-
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(
|
|
1185
|
+
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports2, module2) {
|
|
1190
1186
|
"use strict";
|
|
1191
1187
|
var GetIntrinsic = require_get_intrinsic();
|
|
1192
1188
|
var callBindBasic = require_call_bind_apply_helpers();
|
|
1193
1189
|
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
1194
|
-
|
|
1190
|
+
module2.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
1195
1191
|
var intrinsic = (
|
|
1196
1192
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1197
1193
|
GetIntrinsic(name, !!allowMissing)
|
|
@@ -1209,7 +1205,7 @@ var require_call_bound = __commonJS({
|
|
|
1209
1205
|
|
|
1210
1206
|
// ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
|
|
1211
1207
|
var require_is_callable = __commonJS({
|
|
1212
|
-
"../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"(
|
|
1208
|
+
"../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"(exports2, module2) {
|
|
1213
1209
|
"use strict";
|
|
1214
1210
|
var fnToStr = Function.prototype.toString;
|
|
1215
1211
|
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
@@ -1282,7 +1278,7 @@ var require_is_callable = __commonJS({
|
|
|
1282
1278
|
}
|
|
1283
1279
|
}
|
|
1284
1280
|
var all;
|
|
1285
|
-
|
|
1281
|
+
module2.exports = reflectApply ? function isCallable(value) {
|
|
1286
1282
|
if (isDDA(value)) {
|
|
1287
1283
|
return true;
|
|
1288
1284
|
}
|
|
@@ -1327,7 +1323,7 @@ var require_is_callable = __commonJS({
|
|
|
1327
1323
|
|
|
1328
1324
|
// ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
|
|
1329
1325
|
var require_for_each = __commonJS({
|
|
1330
|
-
"../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js"(
|
|
1326
|
+
"../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js"(exports2, module2) {
|
|
1331
1327
|
"use strict";
|
|
1332
1328
|
var isCallable = require_is_callable();
|
|
1333
1329
|
var toStr = Object.prototype.toString;
|
|
@@ -1366,7 +1362,7 @@ var require_for_each = __commonJS({
|
|
|
1366
1362
|
function isArray(x) {
|
|
1367
1363
|
return toStr.call(x) === "[object Array]";
|
|
1368
1364
|
}
|
|
1369
|
-
|
|
1365
|
+
module2.exports = function forEach(list, iterator, thisArg) {
|
|
1370
1366
|
if (!isCallable(iterator)) {
|
|
1371
1367
|
throw new TypeError("iterator must be a function");
|
|
1372
1368
|
}
|
|
@@ -1387,9 +1383,9 @@ var require_for_each = __commonJS({
|
|
|
1387
1383
|
|
|
1388
1384
|
// ../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
|
|
1389
1385
|
var require_possible_typed_array_names = __commonJS({
|
|
1390
|
-
"../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js"(
|
|
1386
|
+
"../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js"(exports2, module2) {
|
|
1391
1387
|
"use strict";
|
|
1392
|
-
|
|
1388
|
+
module2.exports = [
|
|
1393
1389
|
"Float16Array",
|
|
1394
1390
|
"Float32Array",
|
|
1395
1391
|
"Float64Array",
|
|
@@ -1408,11 +1404,11 @@ var require_possible_typed_array_names = __commonJS({
|
|
|
1408
1404
|
|
|
1409
1405
|
// ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
|
|
1410
1406
|
var require_available_typed_arrays = __commonJS({
|
|
1411
|
-
"../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(
|
|
1407
|
+
"../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports2, module2) {
|
|
1412
1408
|
"use strict";
|
|
1413
1409
|
var possibleNames = require_possible_typed_array_names();
|
|
1414
1410
|
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1415
|
-
|
|
1411
|
+
module2.exports = function availableTypedArrays() {
|
|
1416
1412
|
var out = [];
|
|
1417
1413
|
for (var i = 0; i < possibleNames.length; i++) {
|
|
1418
1414
|
if (typeof g[possibleNames[i]] === "function") {
|
|
@@ -1426,13 +1422,13 @@ var require_available_typed_arrays = __commonJS({
|
|
|
1426
1422
|
|
|
1427
1423
|
// ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
1428
1424
|
var require_define_data_property = __commonJS({
|
|
1429
|
-
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(
|
|
1425
|
+
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports2, module2) {
|
|
1430
1426
|
"use strict";
|
|
1431
1427
|
var $defineProperty = require_es_define_property();
|
|
1432
1428
|
var $SyntaxError = require_syntax();
|
|
1433
1429
|
var $TypeError = require_type();
|
|
1434
1430
|
var gopd = require_gopd();
|
|
1435
|
-
|
|
1431
|
+
module2.exports = function defineDataProperty(obj, property, value) {
|
|
1436
1432
|
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
1437
1433
|
throw new $TypeError("`obj` must be an object or a function`");
|
|
1438
1434
|
}
|
|
@@ -1474,7 +1470,7 @@ var require_define_data_property = __commonJS({
|
|
|
1474
1470
|
|
|
1475
1471
|
// ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
1476
1472
|
var require_has_property_descriptors = __commonJS({
|
|
1477
|
-
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(
|
|
1473
|
+
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports2, module2) {
|
|
1478
1474
|
"use strict";
|
|
1479
1475
|
var $defineProperty = require_es_define_property();
|
|
1480
1476
|
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
@@ -1490,13 +1486,13 @@ var require_has_property_descriptors = __commonJS({
|
|
|
1490
1486
|
return true;
|
|
1491
1487
|
}
|
|
1492
1488
|
};
|
|
1493
|
-
|
|
1489
|
+
module2.exports = hasPropertyDescriptors;
|
|
1494
1490
|
}
|
|
1495
1491
|
});
|
|
1496
1492
|
|
|
1497
1493
|
// ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
|
|
1498
1494
|
var require_set_function_length = __commonJS({
|
|
1499
|
-
"../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(
|
|
1495
|
+
"../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports2, module2) {
|
|
1500
1496
|
"use strict";
|
|
1501
1497
|
var GetIntrinsic = require_get_intrinsic();
|
|
1502
1498
|
var define2 = require_define_data_property();
|
|
@@ -1504,7 +1500,7 @@ var require_set_function_length = __commonJS({
|
|
|
1504
1500
|
var gOPD = require_gopd();
|
|
1505
1501
|
var $TypeError = require_type();
|
|
1506
1502
|
var $floor = GetIntrinsic("%Math.floor%");
|
|
1507
|
-
|
|
1503
|
+
module2.exports = function setFunctionLength(fn, length) {
|
|
1508
1504
|
if (typeof fn !== "function") {
|
|
1509
1505
|
throw new $TypeError("`fn` is not a function");
|
|
1510
1506
|
}
|
|
@@ -1549,12 +1545,12 @@ var require_set_function_length = __commonJS({
|
|
|
1549
1545
|
|
|
1550
1546
|
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
|
|
1551
1547
|
var require_applyBind = __commonJS({
|
|
1552
|
-
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(
|
|
1548
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(exports2, module2) {
|
|
1553
1549
|
"use strict";
|
|
1554
1550
|
var bind = require_function_bind();
|
|
1555
1551
|
var $apply = require_functionApply();
|
|
1556
1552
|
var actualApply = require_actualApply();
|
|
1557
|
-
|
|
1553
|
+
module2.exports = function applyBind() {
|
|
1558
1554
|
return actualApply(bind, $apply, arguments);
|
|
1559
1555
|
};
|
|
1560
1556
|
}
|
|
@@ -1562,13 +1558,13 @@ var require_applyBind = __commonJS({
|
|
|
1562
1558
|
|
|
1563
1559
|
// ../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
|
|
1564
1560
|
var require_call_bind = __commonJS({
|
|
1565
|
-
"../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(
|
|
1561
|
+
"../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(exports2, module2) {
|
|
1566
1562
|
"use strict";
|
|
1567
1563
|
var setFunctionLength = require_set_function_length();
|
|
1568
1564
|
var $defineProperty = require_es_define_property();
|
|
1569
1565
|
var callBindBasic = require_call_bind_apply_helpers();
|
|
1570
1566
|
var applyBind = require_applyBind();
|
|
1571
|
-
|
|
1567
|
+
module2.exports = function callBind(originalFunction) {
|
|
1572
1568
|
var func = callBindBasic(arguments);
|
|
1573
1569
|
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
1574
1570
|
return setFunctionLength(
|
|
@@ -1578,19 +1574,19 @@ var require_call_bind = __commonJS({
|
|
|
1578
1574
|
);
|
|
1579
1575
|
};
|
|
1580
1576
|
if ($defineProperty) {
|
|
1581
|
-
$defineProperty(
|
|
1577
|
+
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
1582
1578
|
} else {
|
|
1583
|
-
|
|
1579
|
+
module2.exports.apply = applyBind;
|
|
1584
1580
|
}
|
|
1585
1581
|
}
|
|
1586
1582
|
});
|
|
1587
1583
|
|
|
1588
1584
|
// ../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
|
|
1589
1585
|
var require_shams2 = __commonJS({
|
|
1590
|
-
"../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(
|
|
1586
|
+
"../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
1591
1587
|
"use strict";
|
|
1592
1588
|
var hasSymbols = require_shams();
|
|
1593
|
-
|
|
1589
|
+
module2.exports = function hasToStringTagShams() {
|
|
1594
1590
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
1595
1591
|
};
|
|
1596
1592
|
}
|
|
@@ -1598,7 +1594,7 @@ var require_shams2 = __commonJS({
|
|
|
1598
1594
|
|
|
1599
1595
|
// ../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js
|
|
1600
1596
|
var require_which_typed_array = __commonJS({
|
|
1601
|
-
"../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js"(
|
|
1597
|
+
"../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js"(exports2, module2) {
|
|
1602
1598
|
"use strict";
|
|
1603
1599
|
var forEach = require_for_each();
|
|
1604
1600
|
var availableTypedArrays = require_available_typed_arrays();
|
|
@@ -1695,7 +1691,7 @@ var require_which_typed_array = __commonJS({
|
|
|
1695
1691
|
);
|
|
1696
1692
|
return found;
|
|
1697
1693
|
};
|
|
1698
|
-
|
|
1694
|
+
module2.exports = function whichTypedArray(value) {
|
|
1699
1695
|
if (!value || typeof value !== "object") {
|
|
1700
1696
|
return false;
|
|
1701
1697
|
}
|
|
@@ -1719,10 +1715,10 @@ var require_which_typed_array = __commonJS({
|
|
|
1719
1715
|
|
|
1720
1716
|
// ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
|
|
1721
1717
|
var require_is_typed_array = __commonJS({
|
|
1722
|
-
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js"(
|
|
1718
|
+
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js"(exports2, module2) {
|
|
1723
1719
|
"use strict";
|
|
1724
1720
|
var whichTypedArray = require_which_typed_array();
|
|
1725
|
-
|
|
1721
|
+
module2.exports = function isTypedArray(value) {
|
|
1726
1722
|
return !!whichTypedArray(value);
|
|
1727
1723
|
};
|
|
1728
1724
|
}
|
|
@@ -1730,13 +1726,13 @@ var require_is_typed_array = __commonJS({
|
|
|
1730
1726
|
|
|
1731
1727
|
// ../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js
|
|
1732
1728
|
var require_typed_array_buffer = __commonJS({
|
|
1733
|
-
"../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js"(
|
|
1729
|
+
"../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js"(exports2, module2) {
|
|
1734
1730
|
"use strict";
|
|
1735
1731
|
var $TypeError = require_type();
|
|
1736
1732
|
var callBound = require_call_bound();
|
|
1737
1733
|
var $typedArrayBuffer = callBound("TypedArray.prototype.buffer", true);
|
|
1738
1734
|
var isTypedArray = require_is_typed_array();
|
|
1739
|
-
|
|
1735
|
+
module2.exports = $typedArrayBuffer || function typedArrayBuffer(x) {
|
|
1740
1736
|
if (!isTypedArray(x)) {
|
|
1741
1737
|
throw new $TypeError("Not a Typed Array");
|
|
1742
1738
|
}
|
|
@@ -1747,7 +1743,7 @@ var require_typed_array_buffer = __commonJS({
|
|
|
1747
1743
|
|
|
1748
1744
|
// ../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js
|
|
1749
1745
|
var require_to_buffer = __commonJS({
|
|
1750
|
-
"../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js"(
|
|
1746
|
+
"../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js"(exports2, module2) {
|
|
1751
1747
|
"use strict";
|
|
1752
1748
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
1753
1749
|
var isArray = require_isarray();
|
|
@@ -1763,7 +1759,7 @@ var require_to_buffer = __commonJS({
|
|
|
1763
1759
|
var useUint8Array = typeof Uint8Array !== "undefined";
|
|
1764
1760
|
var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
|
|
1765
1761
|
var useFromArrayBuffer = useArrayBuffer && (Buffer2.prototype instanceof Uint8Array || Buffer2.TYPED_ARRAY_SUPPORT);
|
|
1766
|
-
|
|
1762
|
+
module2.exports = function toBuffer(data, encoding) {
|
|
1767
1763
|
if (Buffer2.isBuffer(data)) {
|
|
1768
1764
|
if (data.constructor && !("isBuffer" in data)) {
|
|
1769
1765
|
return Buffer2.from(data);
|
|
@@ -1811,7 +1807,7 @@ var require_to_buffer = __commonJS({
|
|
|
1811
1807
|
|
|
1812
1808
|
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js
|
|
1813
1809
|
var require_hash = __commonJS({
|
|
1814
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js"(
|
|
1810
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js"(exports2, module2) {
|
|
1815
1811
|
"use strict";
|
|
1816
1812
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
1817
1813
|
var toBuffer = require_to_buffer();
|
|
@@ -1866,13 +1862,13 @@ var require_hash = __commonJS({
|
|
|
1866
1862
|
Hash.prototype._update = function() {
|
|
1867
1863
|
throw new Error("_update must be implemented by subclass");
|
|
1868
1864
|
};
|
|
1869
|
-
|
|
1865
|
+
module2.exports = Hash;
|
|
1870
1866
|
}
|
|
1871
1867
|
});
|
|
1872
1868
|
|
|
1873
1869
|
// ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js
|
|
1874
1870
|
var require_sha1 = __commonJS({
|
|
1875
|
-
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js"(
|
|
1871
|
+
"../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js"(exports2, module2) {
|
|
1876
1872
|
"use strict";
|
|
1877
1873
|
var inherits = require_inherits();
|
|
1878
1874
|
var Hash = require_hash();
|
|
@@ -1953,23 +1949,23 @@ var require_sha1 = __commonJS({
|
|
|
1953
1949
|
H.writeInt32BE(this._e | 0, 16);
|
|
1954
1950
|
return H;
|
|
1955
1951
|
};
|
|
1956
|
-
|
|
1952
|
+
module2.exports = Sha1;
|
|
1957
1953
|
}
|
|
1958
1954
|
});
|
|
1959
1955
|
|
|
1960
1956
|
// ../../node_modules/.pnpm/crc-32@1.2.2/node_modules/crc-32/crc32.js
|
|
1961
1957
|
var require_crc32 = __commonJS({
|
|
1962
|
-
"../../node_modules/.pnpm/crc-32@1.2.2/node_modules/crc-32/crc32.js"(
|
|
1958
|
+
"../../node_modules/.pnpm/crc-32@1.2.2/node_modules/crc-32/crc32.js"(exports2) {
|
|
1963
1959
|
var CRC32;
|
|
1964
1960
|
(function(factory) {
|
|
1965
1961
|
if (typeof DO_NOT_EXPORT_CRC === "undefined") {
|
|
1966
|
-
if ("object" === typeof
|
|
1967
|
-
factory(
|
|
1962
|
+
if ("object" === typeof exports2) {
|
|
1963
|
+
factory(exports2);
|
|
1968
1964
|
} else if ("function" === typeof define && define.amd) {
|
|
1969
1965
|
define(function() {
|
|
1970
|
-
var
|
|
1971
|
-
factory(
|
|
1972
|
-
return
|
|
1966
|
+
var module3 = {};
|
|
1967
|
+
factory(module3);
|
|
1968
|
+
return module3;
|
|
1973
1969
|
});
|
|
1974
1970
|
} else {
|
|
1975
1971
|
factory(CRC32 = {});
|
|
@@ -2057,13 +2053,13 @@ var require_crc32 = __commonJS({
|
|
|
2057
2053
|
|
|
2058
2054
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/utils/common.js
|
|
2059
2055
|
var require_common = __commonJS({
|
|
2060
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/utils/common.js"(
|
|
2056
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/utils/common.js"(exports2) {
|
|
2061
2057
|
"use strict";
|
|
2062
2058
|
var TYPED_OK = typeof Uint8Array !== "undefined" && typeof Uint16Array !== "undefined" && typeof Int32Array !== "undefined";
|
|
2063
2059
|
function _has(obj, key) {
|
|
2064
2060
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
2065
2061
|
}
|
|
2066
|
-
|
|
2062
|
+
exports2.assign = function(obj) {
|
|
2067
2063
|
var sources = Array.prototype.slice.call(arguments, 1);
|
|
2068
2064
|
while (sources.length) {
|
|
2069
2065
|
var source = sources.shift();
|
|
@@ -2081,7 +2077,7 @@ var require_common = __commonJS({
|
|
|
2081
2077
|
}
|
|
2082
2078
|
return obj;
|
|
2083
2079
|
};
|
|
2084
|
-
|
|
2080
|
+
exports2.shrinkBuf = function(buf, size) {
|
|
2085
2081
|
if (buf.length === size) {
|
|
2086
2082
|
return buf;
|
|
2087
2083
|
}
|
|
@@ -2129,26 +2125,26 @@ var require_common = __commonJS({
|
|
|
2129
2125
|
return [].concat.apply([], chunks);
|
|
2130
2126
|
}
|
|
2131
2127
|
};
|
|
2132
|
-
|
|
2128
|
+
exports2.setTyped = function(on) {
|
|
2133
2129
|
if (on) {
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2130
|
+
exports2.Buf8 = Uint8Array;
|
|
2131
|
+
exports2.Buf16 = Uint16Array;
|
|
2132
|
+
exports2.Buf32 = Int32Array;
|
|
2133
|
+
exports2.assign(exports2, fnTyped);
|
|
2138
2134
|
} else {
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2135
|
+
exports2.Buf8 = Array;
|
|
2136
|
+
exports2.Buf16 = Array;
|
|
2137
|
+
exports2.Buf32 = Array;
|
|
2138
|
+
exports2.assign(exports2, fnUntyped);
|
|
2143
2139
|
}
|
|
2144
2140
|
};
|
|
2145
|
-
|
|
2141
|
+
exports2.setTyped(TYPED_OK);
|
|
2146
2142
|
}
|
|
2147
2143
|
});
|
|
2148
2144
|
|
|
2149
2145
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/trees.js
|
|
2150
2146
|
var require_trees = __commonJS({
|
|
2151
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/trees.js"(
|
|
2147
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/trees.js"(exports2) {
|
|
2152
2148
|
"use strict";
|
|
2153
2149
|
var utils = require_common();
|
|
2154
2150
|
var Z_FIXED = 4;
|
|
@@ -2780,17 +2776,17 @@ var require_trees = __commonJS({
|
|
|
2780
2776
|
}
|
|
2781
2777
|
return s.last_lit === s.lit_bufsize - 1;
|
|
2782
2778
|
}
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2779
|
+
exports2._tr_init = _tr_init;
|
|
2780
|
+
exports2._tr_stored_block = _tr_stored_block;
|
|
2781
|
+
exports2._tr_flush_block = _tr_flush_block;
|
|
2782
|
+
exports2._tr_tally = _tr_tally;
|
|
2783
|
+
exports2._tr_align = _tr_align;
|
|
2788
2784
|
}
|
|
2789
2785
|
});
|
|
2790
2786
|
|
|
2791
2787
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/adler32.js
|
|
2792
2788
|
var require_adler32 = __commonJS({
|
|
2793
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/adler32.js"(
|
|
2789
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/adler32.js"(exports2, module2) {
|
|
2794
2790
|
"use strict";
|
|
2795
2791
|
function adler32(adler, buf, len, pos) {
|
|
2796
2792
|
var s1 = adler & 65535 | 0, s2 = adler >>> 16 & 65535 | 0, n = 0;
|
|
@@ -2806,13 +2802,13 @@ var require_adler32 = __commonJS({
|
|
|
2806
2802
|
}
|
|
2807
2803
|
return s1 | s2 << 16 | 0;
|
|
2808
2804
|
}
|
|
2809
|
-
|
|
2805
|
+
module2.exports = adler32;
|
|
2810
2806
|
}
|
|
2811
2807
|
});
|
|
2812
2808
|
|
|
2813
2809
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/crc32.js
|
|
2814
2810
|
var require_crc322 = __commonJS({
|
|
2815
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/crc32.js"(
|
|
2811
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/crc32.js"(exports2, module2) {
|
|
2816
2812
|
"use strict";
|
|
2817
2813
|
function makeTable() {
|
|
2818
2814
|
var c, table = [];
|
|
@@ -2834,15 +2830,15 @@ var require_crc322 = __commonJS({
|
|
|
2834
2830
|
}
|
|
2835
2831
|
return crc ^ -1;
|
|
2836
2832
|
}
|
|
2837
|
-
|
|
2833
|
+
module2.exports = crc32;
|
|
2838
2834
|
}
|
|
2839
2835
|
});
|
|
2840
2836
|
|
|
2841
2837
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/messages.js
|
|
2842
2838
|
var require_messages = __commonJS({
|
|
2843
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/messages.js"(
|
|
2839
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/messages.js"(exports2, module2) {
|
|
2844
2840
|
"use strict";
|
|
2845
|
-
|
|
2841
|
+
module2.exports = {
|
|
2846
2842
|
2: "need dictionary",
|
|
2847
2843
|
/* Z_NEED_DICT 2 */
|
|
2848
2844
|
1: "stream end",
|
|
@@ -2867,7 +2863,7 @@ var require_messages = __commonJS({
|
|
|
2867
2863
|
|
|
2868
2864
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/deflate.js
|
|
2869
2865
|
var require_deflate = __commonJS({
|
|
2870
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/deflate.js"(
|
|
2866
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/deflate.js"(exports2) {
|
|
2871
2867
|
"use strict";
|
|
2872
2868
|
var utils = require_common();
|
|
2873
2869
|
var trees = require_trees();
|
|
@@ -3902,21 +3898,21 @@ var require_deflate = __commonJS({
|
|
|
3902
3898
|
s.wrap = wrap;
|
|
3903
3899
|
return Z_OK;
|
|
3904
3900
|
}
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3901
|
+
exports2.deflateInit = deflateInit;
|
|
3902
|
+
exports2.deflateInit2 = deflateInit2;
|
|
3903
|
+
exports2.deflateReset = deflateReset;
|
|
3904
|
+
exports2.deflateResetKeep = deflateResetKeep;
|
|
3905
|
+
exports2.deflateSetHeader = deflateSetHeader;
|
|
3906
|
+
exports2.deflate = deflate;
|
|
3907
|
+
exports2.deflateEnd = deflateEnd;
|
|
3908
|
+
exports2.deflateSetDictionary = deflateSetDictionary;
|
|
3909
|
+
exports2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
3914
3910
|
}
|
|
3915
3911
|
});
|
|
3916
3912
|
|
|
3917
3913
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/utils/strings.js
|
|
3918
3914
|
var require_strings = __commonJS({
|
|
3919
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/utils/strings.js"(
|
|
3915
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/utils/strings.js"(exports2) {
|
|
3920
3916
|
"use strict";
|
|
3921
3917
|
var utils = require_common();
|
|
3922
3918
|
var STR_APPLY_OK = true;
|
|
@@ -3937,7 +3933,7 @@ var require_strings = __commonJS({
|
|
|
3937
3933
|
}
|
|
3938
3934
|
var q;
|
|
3939
3935
|
_utf8len[254] = _utf8len[254] = 1;
|
|
3940
|
-
|
|
3936
|
+
exports2.string2buf = function(str) {
|
|
3941
3937
|
var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;
|
|
3942
3938
|
for (m_pos = 0; m_pos < str_len; m_pos++) {
|
|
3943
3939
|
c = str.charCodeAt(m_pos);
|
|
@@ -3990,17 +3986,17 @@ var require_strings = __commonJS({
|
|
|
3990
3986
|
}
|
|
3991
3987
|
return result;
|
|
3992
3988
|
}
|
|
3993
|
-
|
|
3989
|
+
exports2.buf2binstring = function(buf) {
|
|
3994
3990
|
return buf2binstring(buf, buf.length);
|
|
3995
3991
|
};
|
|
3996
|
-
|
|
3992
|
+
exports2.binstring2buf = function(str) {
|
|
3997
3993
|
var buf = new utils.Buf8(str.length);
|
|
3998
3994
|
for (var i = 0, len = buf.length; i < len; i++) {
|
|
3999
3995
|
buf[i] = str.charCodeAt(i);
|
|
4000
3996
|
}
|
|
4001
3997
|
return buf;
|
|
4002
3998
|
};
|
|
4003
|
-
|
|
3999
|
+
exports2.buf2string = function(buf, max) {
|
|
4004
4000
|
var i, out, c, c_len;
|
|
4005
4001
|
var len = max || buf.length;
|
|
4006
4002
|
var utf16buf = new Array(len * 2);
|
|
@@ -4035,7 +4031,7 @@ var require_strings = __commonJS({
|
|
|
4035
4031
|
}
|
|
4036
4032
|
return buf2binstring(utf16buf, out);
|
|
4037
4033
|
};
|
|
4038
|
-
|
|
4034
|
+
exports2.utf8border = function(buf, max) {
|
|
4039
4035
|
var pos;
|
|
4040
4036
|
max = max || buf.length;
|
|
4041
4037
|
if (max > buf.length) {
|
|
@@ -4058,7 +4054,7 @@ var require_strings = __commonJS({
|
|
|
4058
4054
|
|
|
4059
4055
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/zstream.js
|
|
4060
4056
|
var require_zstream = __commonJS({
|
|
4061
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/zstream.js"(
|
|
4057
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/zstream.js"(exports2, module2) {
|
|
4062
4058
|
"use strict";
|
|
4063
4059
|
function ZStream() {
|
|
4064
4060
|
this.input = null;
|
|
@@ -4074,13 +4070,13 @@ var require_zstream = __commonJS({
|
|
|
4074
4070
|
this.data_type = 2;
|
|
4075
4071
|
this.adler = 0;
|
|
4076
4072
|
}
|
|
4077
|
-
|
|
4073
|
+
module2.exports = ZStream;
|
|
4078
4074
|
}
|
|
4079
4075
|
});
|
|
4080
4076
|
|
|
4081
4077
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/deflate.js
|
|
4082
4078
|
var require_deflate2 = __commonJS({
|
|
4083
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/deflate.js"(
|
|
4079
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/deflate.js"(exports2) {
|
|
4084
4080
|
"use strict";
|
|
4085
4081
|
var zlib_deflate = require_deflate();
|
|
4086
4082
|
var utils = require_common();
|
|
@@ -4232,20 +4228,20 @@ var require_deflate2 = __commonJS({
|
|
|
4232
4228
|
options.gzip = true;
|
|
4233
4229
|
return deflate(input, options);
|
|
4234
4230
|
}
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4231
|
+
exports2.Deflate = Deflate;
|
|
4232
|
+
exports2.deflate = deflate;
|
|
4233
|
+
exports2.deflateRaw = deflateRaw;
|
|
4234
|
+
exports2.gzip = gzip;
|
|
4239
4235
|
}
|
|
4240
4236
|
});
|
|
4241
4237
|
|
|
4242
4238
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inffast.js
|
|
4243
4239
|
var require_inffast = __commonJS({
|
|
4244
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inffast.js"(
|
|
4240
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inffast.js"(exports2, module2) {
|
|
4245
4241
|
"use strict";
|
|
4246
4242
|
var BAD = 30;
|
|
4247
4243
|
var TYPE = 12;
|
|
4248
|
-
|
|
4244
|
+
module2.exports = function inflate_fast(strm, start) {
|
|
4249
4245
|
var state;
|
|
4250
4246
|
var _in;
|
|
4251
4247
|
var last;
|
|
@@ -4470,7 +4466,7 @@ var require_inffast = __commonJS({
|
|
|
4470
4466
|
|
|
4471
4467
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inftrees.js
|
|
4472
4468
|
var require_inftrees = __commonJS({
|
|
4473
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inftrees.js"(
|
|
4469
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inftrees.js"(exports2, module2) {
|
|
4474
4470
|
"use strict";
|
|
4475
4471
|
var utils = require_common();
|
|
4476
4472
|
var MAXBITS = 15;
|
|
@@ -4617,7 +4613,7 @@ var require_inftrees = __commonJS({
|
|
|
4617
4613
|
64,
|
|
4618
4614
|
64
|
|
4619
4615
|
];
|
|
4620
|
-
|
|
4616
|
+
module2.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts) {
|
|
4621
4617
|
var bits = opts.bits;
|
|
4622
4618
|
var len = 0;
|
|
4623
4619
|
var sym = 0;
|
|
@@ -4786,7 +4782,7 @@ var require_inftrees = __commonJS({
|
|
|
4786
4782
|
|
|
4787
4783
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inflate.js
|
|
4788
4784
|
var require_inflate = __commonJS({
|
|
4789
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inflate.js"(
|
|
4785
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/inflate.js"(exports2) {
|
|
4790
4786
|
"use strict";
|
|
4791
4787
|
var utils = require_common();
|
|
4792
4788
|
var adler32 = require_adler32();
|
|
@@ -6010,24 +6006,24 @@ var require_inflate = __commonJS({
|
|
|
6010
6006
|
state.havedict = 1;
|
|
6011
6007
|
return Z_OK;
|
|
6012
6008
|
}
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6009
|
+
exports2.inflateReset = inflateReset;
|
|
6010
|
+
exports2.inflateReset2 = inflateReset2;
|
|
6011
|
+
exports2.inflateResetKeep = inflateResetKeep;
|
|
6012
|
+
exports2.inflateInit = inflateInit;
|
|
6013
|
+
exports2.inflateInit2 = inflateInit2;
|
|
6014
|
+
exports2.inflate = inflate;
|
|
6015
|
+
exports2.inflateEnd = inflateEnd;
|
|
6016
|
+
exports2.inflateGetHeader = inflateGetHeader;
|
|
6017
|
+
exports2.inflateSetDictionary = inflateSetDictionary;
|
|
6018
|
+
exports2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
6023
6019
|
}
|
|
6024
6020
|
});
|
|
6025
6021
|
|
|
6026
6022
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/constants.js
|
|
6027
6023
|
var require_constants = __commonJS({
|
|
6028
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/constants.js"(
|
|
6024
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/constants.js"(exports2, module2) {
|
|
6029
6025
|
"use strict";
|
|
6030
|
-
|
|
6026
|
+
module2.exports = {
|
|
6031
6027
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
6032
6028
|
Z_NO_FLUSH: 0,
|
|
6033
6029
|
Z_PARTIAL_FLUSH: 1,
|
|
@@ -6072,7 +6068,7 @@ var require_constants = __commonJS({
|
|
|
6072
6068
|
|
|
6073
6069
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/gzheader.js
|
|
6074
6070
|
var require_gzheader = __commonJS({
|
|
6075
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/gzheader.js"(
|
|
6071
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/gzheader.js"(exports2, module2) {
|
|
6076
6072
|
"use strict";
|
|
6077
6073
|
function GZheader() {
|
|
6078
6074
|
this.text = 0;
|
|
@@ -6086,13 +6082,13 @@ var require_gzheader = __commonJS({
|
|
|
6086
6082
|
this.hcrc = 0;
|
|
6087
6083
|
this.done = false;
|
|
6088
6084
|
}
|
|
6089
|
-
|
|
6085
|
+
module2.exports = GZheader;
|
|
6090
6086
|
}
|
|
6091
6087
|
});
|
|
6092
6088
|
|
|
6093
6089
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/inflate.js
|
|
6094
6090
|
var require_inflate2 = __commonJS({
|
|
6095
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/inflate.js"(
|
|
6091
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/inflate.js"(exports2) {
|
|
6096
6092
|
"use strict";
|
|
6097
6093
|
var zlib_inflate = require_inflate();
|
|
6098
6094
|
var utils = require_common();
|
|
@@ -6257,16 +6253,16 @@ var require_inflate2 = __commonJS({
|
|
|
6257
6253
|
options.raw = true;
|
|
6258
6254
|
return inflate(input, options);
|
|
6259
6255
|
}
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6256
|
+
exports2.Inflate = Inflate;
|
|
6257
|
+
exports2.inflate = inflate;
|
|
6258
|
+
exports2.inflateRaw = inflateRaw;
|
|
6259
|
+
exports2.ungzip = inflate;
|
|
6264
6260
|
}
|
|
6265
6261
|
});
|
|
6266
6262
|
|
|
6267
6263
|
// ../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/index.js
|
|
6268
6264
|
var require_pako = __commonJS({
|
|
6269
|
-
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/index.js"(
|
|
6265
|
+
"../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/index.js"(exports2, module2) {
|
|
6270
6266
|
"use strict";
|
|
6271
6267
|
var assign = require_common().assign;
|
|
6272
6268
|
var deflate = require_deflate2();
|
|
@@ -6274,13 +6270,13 @@ var require_pako = __commonJS({
|
|
|
6274
6270
|
var constants = require_constants();
|
|
6275
6271
|
var pako = {};
|
|
6276
6272
|
assign(pako, deflate, inflate, constants);
|
|
6277
|
-
|
|
6273
|
+
module2.exports = pako;
|
|
6278
6274
|
}
|
|
6279
6275
|
});
|
|
6280
6276
|
|
|
6281
6277
|
// ../../node_modules/.pnpm/pify@4.0.1/node_modules/pify/index.js
|
|
6282
6278
|
var require_pify = __commonJS({
|
|
6283
|
-
"../../node_modules/.pnpm/pify@4.0.1/node_modules/pify/index.js"(
|
|
6279
|
+
"../../node_modules/.pnpm/pify@4.0.1/node_modules/pify/index.js"(exports2, module2) {
|
|
6284
6280
|
"use strict";
|
|
6285
6281
|
var processFn = (fn, options) => function(...args) {
|
|
6286
6282
|
const P = options.promiseModule;
|
|
@@ -6312,7 +6308,7 @@ var require_pify = __commonJS({
|
|
|
6312
6308
|
fn.apply(this, args);
|
|
6313
6309
|
});
|
|
6314
6310
|
};
|
|
6315
|
-
|
|
6311
|
+
module2.exports = (input, options) => {
|
|
6316
6312
|
options = Object.assign({
|
|
6317
6313
|
exclude: [/.+(Sync|Stream)$/],
|
|
6318
6314
|
errorFirst: true,
|
|
@@ -6345,7 +6341,7 @@ var require_pify = __commonJS({
|
|
|
6345
6341
|
|
|
6346
6342
|
// ../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js
|
|
6347
6343
|
var require_ignore = __commonJS({
|
|
6348
|
-
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(
|
|
6344
|
+
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports2, module2) {
|
|
6349
6345
|
function makeArray(subject) {
|
|
6350
6346
|
return Array.isArray(subject) ? subject : [subject];
|
|
6351
6347
|
}
|
|
@@ -6717,7 +6713,7 @@ var require_ignore = __commonJS({
|
|
|
6717
6713
|
var isPathValid = (path7) => checkPath(path7 && checkPath.convert(path7), path7, RETURN_FALSE);
|
|
6718
6714
|
factory.isPathValid = isPathValid;
|
|
6719
6715
|
factory.default = factory;
|
|
6720
|
-
|
|
6716
|
+
module2.exports = factory;
|
|
6721
6717
|
if (
|
|
6722
6718
|
// Detect `process` so that it can run in browsers.
|
|
6723
6719
|
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
@@ -6732,7 +6728,7 @@ var require_ignore = __commonJS({
|
|
|
6732
6728
|
|
|
6733
6729
|
// ../../node_modules/.pnpm/clean-git-ref@2.0.1/node_modules/clean-git-ref/lib/index.js
|
|
6734
6730
|
var require_lib2 = __commonJS({
|
|
6735
|
-
"../../node_modules/.pnpm/clean-git-ref@2.0.1/node_modules/clean-git-ref/lib/index.js"(
|
|
6731
|
+
"../../node_modules/.pnpm/clean-git-ref@2.0.1/node_modules/clean-git-ref/lib/index.js"(exports2, module2) {
|
|
6736
6732
|
"use strict";
|
|
6737
6733
|
function escapeRegExp(string) {
|
|
6738
6734
|
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -6759,14 +6755,14 @@ var require_lib2 = __commonJS({
|
|
|
6759
6755
|
return value;
|
|
6760
6756
|
}
|
|
6761
6757
|
};
|
|
6762
|
-
|
|
6758
|
+
module2.exports = CleanGitRef;
|
|
6763
6759
|
}
|
|
6764
6760
|
});
|
|
6765
6761
|
|
|
6766
6762
|
// ../../node_modules/.pnpm/diff3@0.0.3/node_modules/diff3/onp.js
|
|
6767
6763
|
var require_onp = __commonJS({
|
|
6768
|
-
"../../node_modules/.pnpm/diff3@0.0.3/node_modules/diff3/onp.js"(
|
|
6769
|
-
|
|
6764
|
+
"../../node_modules/.pnpm/diff3@0.0.3/node_modules/diff3/onp.js"(exports2, module2) {
|
|
6765
|
+
module2.exports = function(a_, b_) {
|
|
6770
6766
|
var a = a_, b = b_, m = a.length, n = b.length, reverse = false, ed = null, offset = m + 1, path7 = [], pathposi = [], ses = [], lcs = "", SES_DELETE = -1, SES_COMMON = 0, SES_ADD = 1;
|
|
6771
6767
|
var tmp1, tmp2;
|
|
6772
6768
|
var init = function() {
|
|
@@ -6894,7 +6890,7 @@ var require_onp = __commonJS({
|
|
|
6894
6890
|
|
|
6895
6891
|
// ../../node_modules/.pnpm/diff3@0.0.3/node_modules/diff3/diff3.js
|
|
6896
6892
|
var require_diff3 = __commonJS({
|
|
6897
|
-
"../../node_modules/.pnpm/diff3@0.0.3/node_modules/diff3/diff3.js"(
|
|
6893
|
+
"../../node_modules/.pnpm/diff3@0.0.3/node_modules/diff3/diff3.js"(exports2, module2) {
|
|
6898
6894
|
var onp = require_onp();
|
|
6899
6895
|
function longestCommonSubsequence(file1, file2) {
|
|
6900
6896
|
var diff2 = new onp(file1, file2);
|
|
@@ -7090,15 +7086,15 @@ var require_diff3 = __commonJS({
|
|
|
7090
7086
|
flushOk();
|
|
7091
7087
|
return result;
|
|
7092
7088
|
}
|
|
7093
|
-
|
|
7089
|
+
module2.exports = diff3Merge;
|
|
7094
7090
|
}
|
|
7095
7091
|
});
|
|
7096
7092
|
|
|
7097
7093
|
// ../../node_modules/.pnpm/isomorphic-git@1.37.2/node_modules/isomorphic-git/index.cjs
|
|
7098
7094
|
var require_isomorphic_git = __commonJS({
|
|
7099
|
-
"../../node_modules/.pnpm/isomorphic-git@1.37.2/node_modules/isomorphic-git/index.cjs"(
|
|
7095
|
+
"../../node_modules/.pnpm/isomorphic-git@1.37.2/node_modules/isomorphic-git/index.cjs"(exports2) {
|
|
7100
7096
|
"use strict";
|
|
7101
|
-
Object.defineProperty(
|
|
7097
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7102
7098
|
function _interopDefault(ex) {
|
|
7103
7099
|
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
7104
7100
|
}
|
|
@@ -18345,81 +18341,88 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
|
|
|
18345
18341
|
writeTree,
|
|
18346
18342
|
stash
|
|
18347
18343
|
};
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18344
|
+
exports2.Errors = Errors;
|
|
18345
|
+
exports2.STAGE = STAGE;
|
|
18346
|
+
exports2.TREE = TREE;
|
|
18347
|
+
exports2.WORKDIR = WORKDIR;
|
|
18348
|
+
exports2.abortMerge = abortMerge;
|
|
18349
|
+
exports2.add = add;
|
|
18350
|
+
exports2.addNote = addNote;
|
|
18351
|
+
exports2.addRemote = addRemote;
|
|
18352
|
+
exports2.annotatedTag = annotatedTag;
|
|
18353
|
+
exports2.branch = branch;
|
|
18354
|
+
exports2.checkout = checkout;
|
|
18355
|
+
exports2.cherryPick = cherryPick;
|
|
18356
|
+
exports2.clone = clone;
|
|
18357
|
+
exports2.commit = commit;
|
|
18358
|
+
exports2.currentBranch = currentBranch;
|
|
18359
|
+
exports2.default = index;
|
|
18360
|
+
exports2.deleteBranch = deleteBranch;
|
|
18361
|
+
exports2.deleteRef = deleteRef;
|
|
18362
|
+
exports2.deleteRemote = deleteRemote;
|
|
18363
|
+
exports2.deleteTag = deleteTag;
|
|
18364
|
+
exports2.expandOid = expandOid;
|
|
18365
|
+
exports2.expandRef = expandRef;
|
|
18366
|
+
exports2.fastForward = fastForward;
|
|
18367
|
+
exports2.fetch = fetch;
|
|
18368
|
+
exports2.findMergeBase = findMergeBase;
|
|
18369
|
+
exports2.findRoot = findRoot;
|
|
18370
|
+
exports2.getConfig = getConfig;
|
|
18371
|
+
exports2.getConfigAll = getConfigAll;
|
|
18372
|
+
exports2.getRemoteInfo = getRemoteInfo;
|
|
18373
|
+
exports2.getRemoteInfo2 = getRemoteInfo2;
|
|
18374
|
+
exports2.hashBlob = hashBlob;
|
|
18375
|
+
exports2.indexPack = indexPack;
|
|
18376
|
+
exports2.init = init;
|
|
18377
|
+
exports2.isDescendent = isDescendent;
|
|
18378
|
+
exports2.isIgnored = isIgnored;
|
|
18379
|
+
exports2.listBranches = listBranches;
|
|
18380
|
+
exports2.listFiles = listFiles;
|
|
18381
|
+
exports2.listNotes = listNotes;
|
|
18382
|
+
exports2.listRefs = listRefs;
|
|
18383
|
+
exports2.listRemotes = listRemotes;
|
|
18384
|
+
exports2.listServerRefs = listServerRefs;
|
|
18385
|
+
exports2.listTags = listTags;
|
|
18386
|
+
exports2.log = log;
|
|
18387
|
+
exports2.merge = merge;
|
|
18388
|
+
exports2.packObjects = packObjects;
|
|
18389
|
+
exports2.pull = pull;
|
|
18390
|
+
exports2.push = push;
|
|
18391
|
+
exports2.readBlob = readBlob;
|
|
18392
|
+
exports2.readCommit = readCommit;
|
|
18393
|
+
exports2.readNote = readNote;
|
|
18394
|
+
exports2.readObject = readObject;
|
|
18395
|
+
exports2.readTag = readTag;
|
|
18396
|
+
exports2.readTree = readTree;
|
|
18397
|
+
exports2.remove = remove;
|
|
18398
|
+
exports2.removeNote = removeNote;
|
|
18399
|
+
exports2.renameBranch = renameBranch;
|
|
18400
|
+
exports2.resetIndex = resetIndex;
|
|
18401
|
+
exports2.resolveRef = resolveRef;
|
|
18402
|
+
exports2.setConfig = setConfig;
|
|
18403
|
+
exports2.stash = stash;
|
|
18404
|
+
exports2.status = status;
|
|
18405
|
+
exports2.statusMatrix = statusMatrix;
|
|
18406
|
+
exports2.tag = tag;
|
|
18407
|
+
exports2.updateIndex = updateIndex$1;
|
|
18408
|
+
exports2.version = version;
|
|
18409
|
+
exports2.walk = walk;
|
|
18410
|
+
exports2.writeBlob = writeBlob;
|
|
18411
|
+
exports2.writeCommit = writeCommit;
|
|
18412
|
+
exports2.writeObject = writeObject;
|
|
18413
|
+
exports2.writeRef = writeRef;
|
|
18414
|
+
exports2.writeTag = writeTag;
|
|
18415
|
+
exports2.writeTree = writeTree;
|
|
18420
18416
|
}
|
|
18421
18417
|
});
|
|
18422
18418
|
|
|
18419
|
+
// src/index.ts
|
|
18420
|
+
var index_exports = {};
|
|
18421
|
+
__export(index_exports, {
|
|
18422
|
+
default: () => mindkeeperPlugin
|
|
18423
|
+
});
|
|
18424
|
+
module.exports = __toCommonJS(index_exports);
|
|
18425
|
+
|
|
18423
18426
|
// node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
18424
18427
|
var value_exports = {};
|
|
18425
18428
|
__export(value_exports, {
|
|
@@ -21193,47 +21196,41 @@ function getTracker2(ref) {
|
|
|
21193
21196
|
}
|
|
21194
21197
|
function registerTrackerCli(api, trackerRef) {
|
|
21195
21198
|
if (!api.registerCli) return;
|
|
21196
|
-
api.registerCli(
|
|
21197
|
-
|
|
21198
|
-
|
|
21199
|
-
|
|
21200
|
-
|
|
21201
|
-
|
|
21202
|
-
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21206
|
-
|
|
21207
|
-
|
|
21208
|
-
|
|
21209
|
-
|
|
21210
|
-
|
|
21211
|
-
|
|
21212
|
-
|
|
21213
|
-
|
|
21214
|
-
|
|
21215
|
-
|
|
21216
|
-
|
|
21217
|
-
|
|
21218
|
-
mindCmd,
|
|
21219
|
-
"snapshot [name]",
|
|
21220
|
-
"Create a named snapshot",
|
|
21221
|
-
async (...args) => {
|
|
21199
|
+
api.registerCli(
|
|
21200
|
+
(ctx) => {
|
|
21201
|
+
const mindCmd = ctx.program.command("mind").description("mindkeeper version control");
|
|
21202
|
+
mindCmd.command("status").description("Show tracking status").action(async () => {
|
|
21203
|
+
const status = await getTracker2(trackerRef).status();
|
|
21204
|
+
console.log(`Workspace: ${status.workDir}`);
|
|
21205
|
+
console.log(`Pending changes: ${status.pendingChanges.length}`);
|
|
21206
|
+
console.log(`Named snapshots: ${status.snapshots.length}`);
|
|
21207
|
+
});
|
|
21208
|
+
mindCmd.command("history [file]").description("View change history").action(async (...args) => {
|
|
21209
|
+
const file = args[0];
|
|
21210
|
+
const commits = await getTracker2(trackerRef).history({ file, limit: 20 });
|
|
21211
|
+
if (commits.length === 0) {
|
|
21212
|
+
console.log("No history found.");
|
|
21213
|
+
return;
|
|
21214
|
+
}
|
|
21215
|
+
for (const c of commits) {
|
|
21216
|
+
const date = c.date.toISOString().replace("T", " ").slice(0, 19);
|
|
21217
|
+
console.log(`${c.oid.slice(0, 8)} ${date} ${c.message}`);
|
|
21218
|
+
}
|
|
21219
|
+
});
|
|
21220
|
+
mindCmd.command("snapshot [name]").description("Create a named snapshot").action(async (...args) => {
|
|
21222
21221
|
const name = args[0];
|
|
21223
21222
|
const commit = await getTracker2(trackerRef).snapshot({ name });
|
|
21224
21223
|
console.log(`Snapshot created: ${commit.oid.slice(0, 8)} ${commit.message}`);
|
|
21225
21224
|
if (name) console.log(`Tagged as: ${name}`);
|
|
21226
|
-
}
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
function addSubcommand(parent, name, description, handler) {
|
|
21231
|
-
parent.command(name).description(description).action(handler);
|
|
21225
|
+
});
|
|
21226
|
+
},
|
|
21227
|
+
{ commands: ["mind"] }
|
|
21228
|
+
);
|
|
21232
21229
|
}
|
|
21233
21230
|
|
|
21234
21231
|
// ../core/src/tracker.ts
|
|
21235
|
-
|
|
21236
|
-
|
|
21232
|
+
var import_promises3 = __toESM(require("node:fs/promises"), 1);
|
|
21233
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
21237
21234
|
|
|
21238
21235
|
// ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
|
|
21239
21236
|
var balanced = (a, b, str) => {
|
|
@@ -23045,42 +23042,42 @@ minimatch.escape = escape;
|
|
|
23045
23042
|
minimatch.unescape = unescape;
|
|
23046
23043
|
|
|
23047
23044
|
// ../core/src/store/git-store.ts
|
|
23045
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
23046
|
+
var import_promises = __toESM(require("node:fs/promises"), 1);
|
|
23047
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
23048
23048
|
var import_isomorphic_git = __toESM(require_isomorphic_git(), 1);
|
|
23049
|
-
import fs from "node:fs";
|
|
23050
|
-
import fsPromises from "node:fs/promises";
|
|
23051
|
-
import path2 from "node:path";
|
|
23052
23049
|
var DEFAULT_AUTHOR = { name: "mindkeeper", email: "tracker@local" };
|
|
23053
23050
|
var IsomorphicGitStore = class {
|
|
23054
23051
|
workDir;
|
|
23055
23052
|
gitDir;
|
|
23056
23053
|
author;
|
|
23057
23054
|
constructor(options) {
|
|
23058
|
-
this.workDir =
|
|
23059
|
-
this.gitDir =
|
|
23055
|
+
this.workDir = import_node_path.default.resolve(options.workDir);
|
|
23056
|
+
this.gitDir = import_node_path.default.resolve(options.gitDir);
|
|
23060
23057
|
this.author = options.author ?? DEFAULT_AUTHOR;
|
|
23061
23058
|
}
|
|
23062
23059
|
async init() {
|
|
23063
|
-
await
|
|
23060
|
+
await import_promises.default.mkdir(this.gitDir, { recursive: true });
|
|
23064
23061
|
try {
|
|
23065
|
-
await import_isomorphic_git.default.resolveRef({ fs, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23062
|
+
await import_isomorphic_git.default.resolveRef({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23066
23063
|
} catch {
|
|
23067
|
-
await import_isomorphic_git.default.init({ fs, dir: this.workDir, gitdir: this.gitDir, defaultBranch: "main" });
|
|
23064
|
+
await import_isomorphic_git.default.init({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, defaultBranch: "main" });
|
|
23068
23065
|
}
|
|
23069
23066
|
}
|
|
23070
23067
|
async addFiles(filepaths) {
|
|
23071
23068
|
for (const filepath of filepaths) {
|
|
23072
|
-
const fullPath =
|
|
23069
|
+
const fullPath = import_node_path.default.join(this.workDir, filepath);
|
|
23073
23070
|
try {
|
|
23074
|
-
await
|
|
23075
|
-
await import_isomorphic_git.default.add({ fs, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23071
|
+
await import_promises.default.access(fullPath);
|
|
23072
|
+
await import_isomorphic_git.default.add({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23076
23073
|
} catch {
|
|
23077
|
-
await import_isomorphic_git.default.remove({ fs, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23074
|
+
await import_isomorphic_git.default.remove({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23078
23075
|
}
|
|
23079
23076
|
}
|
|
23080
23077
|
}
|
|
23081
23078
|
async commit(message) {
|
|
23082
23079
|
const oid = await import_isomorphic_git.default.commit({
|
|
23083
|
-
fs,
|
|
23080
|
+
fs: import_node_fs.default,
|
|
23084
23081
|
dir: this.workDir,
|
|
23085
23082
|
gitdir: this.gitDir,
|
|
23086
23083
|
message,
|
|
@@ -23093,7 +23090,7 @@ var IsomorphicGitStore = class {
|
|
|
23093
23090
|
let commits;
|
|
23094
23091
|
try {
|
|
23095
23092
|
commits = await import_isomorphic_git.default.log({
|
|
23096
|
-
fs,
|
|
23093
|
+
fs: import_node_fs.default,
|
|
23097
23094
|
dir: this.workDir,
|
|
23098
23095
|
gitdir: this.gitDir,
|
|
23099
23096
|
depth,
|
|
@@ -23132,7 +23129,7 @@ var IsomorphicGitStore = class {
|
|
|
23132
23129
|
async readBlobOid(commitOid, filepath) {
|
|
23133
23130
|
try {
|
|
23134
23131
|
const { oid } = await import_isomorphic_git.default.readBlob({
|
|
23135
|
-
fs,
|
|
23132
|
+
fs: import_node_fs.default,
|
|
23136
23133
|
dir: this.workDir,
|
|
23137
23134
|
gitdir: this.gitDir,
|
|
23138
23135
|
oid: commitOid,
|
|
@@ -23146,7 +23143,7 @@ var IsomorphicGitStore = class {
|
|
|
23146
23143
|
async readFile(filepath, commitOid) {
|
|
23147
23144
|
try {
|
|
23148
23145
|
const { blob } = await import_isomorphic_git.default.readBlob({
|
|
23149
|
-
fs,
|
|
23146
|
+
fs: import_node_fs.default,
|
|
23150
23147
|
dir: this.workDir,
|
|
23151
23148
|
gitdir: this.gitDir,
|
|
23152
23149
|
oid: commitOid,
|
|
@@ -23159,24 +23156,24 @@ var IsomorphicGitStore = class {
|
|
|
23159
23156
|
}
|
|
23160
23157
|
async restoreFile(filepath, commitOid) {
|
|
23161
23158
|
const content = await this.readFile(filepath, commitOid);
|
|
23162
|
-
const fullPath =
|
|
23159
|
+
const fullPath = import_node_path.default.join(this.workDir, filepath);
|
|
23163
23160
|
if (content === null) {
|
|
23164
|
-
await
|
|
23161
|
+
await import_promises.default.unlink(fullPath).catch(() => {
|
|
23165
23162
|
});
|
|
23166
23163
|
} else {
|
|
23167
|
-
await
|
|
23168
|
-
await
|
|
23164
|
+
await import_promises.default.mkdir(import_node_path.default.dirname(fullPath), { recursive: true });
|
|
23165
|
+
await import_promises.default.writeFile(fullPath, content, "utf-8");
|
|
23169
23166
|
}
|
|
23170
23167
|
}
|
|
23171
23168
|
async createTag(name, commitOid) {
|
|
23172
23169
|
const ref = commitOid ?? await import_isomorphic_git.default.resolveRef({
|
|
23173
|
-
fs,
|
|
23170
|
+
fs: import_node_fs.default,
|
|
23174
23171
|
dir: this.workDir,
|
|
23175
23172
|
gitdir: this.gitDir,
|
|
23176
23173
|
ref: "HEAD"
|
|
23177
23174
|
});
|
|
23178
23175
|
await import_isomorphic_git.default.tag({
|
|
23179
|
-
fs,
|
|
23176
|
+
fs: import_node_fs.default,
|
|
23180
23177
|
dir: this.workDir,
|
|
23181
23178
|
gitdir: this.gitDir,
|
|
23182
23179
|
ref: name,
|
|
@@ -23184,12 +23181,12 @@ var IsomorphicGitStore = class {
|
|
|
23184
23181
|
});
|
|
23185
23182
|
}
|
|
23186
23183
|
async listTags() {
|
|
23187
|
-
const tags = await import_isomorphic_git.default.listTags({ fs, dir: this.workDir, gitdir: this.gitDir });
|
|
23184
|
+
const tags = await import_isomorphic_git.default.listTags({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir });
|
|
23188
23185
|
const result = [];
|
|
23189
23186
|
for (const name of tags) {
|
|
23190
23187
|
try {
|
|
23191
23188
|
const oid = await import_isomorphic_git.default.resolveRef({
|
|
23192
|
-
fs,
|
|
23189
|
+
fs: import_node_fs.default,
|
|
23193
23190
|
dir: this.workDir,
|
|
23194
23191
|
gitdir: this.gitDir,
|
|
23195
23192
|
ref: `refs/tags/${name}`
|
|
@@ -23211,15 +23208,15 @@ var IsomorphicGitStore = class {
|
|
|
23211
23208
|
const filesToCheck = filepaths ?? await this.listWorkdirFiles();
|
|
23212
23209
|
let headOid = null;
|
|
23213
23210
|
try {
|
|
23214
|
-
headOid = await import_isomorphic_git.default.resolveRef({ fs, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23211
|
+
headOid = await import_isomorphic_git.default.resolveRef({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23215
23212
|
} catch {
|
|
23216
23213
|
}
|
|
23217
23214
|
const entries = [];
|
|
23218
23215
|
for (const filepath of filesToCheck) {
|
|
23219
|
-
const fullPath =
|
|
23216
|
+
const fullPath = import_node_path.default.join(this.workDir, filepath);
|
|
23220
23217
|
let workdirContent = null;
|
|
23221
23218
|
try {
|
|
23222
|
-
workdirContent = await
|
|
23219
|
+
workdirContent = await import_promises.default.readFile(fullPath);
|
|
23223
23220
|
} catch {
|
|
23224
23221
|
workdirContent = null;
|
|
23225
23222
|
}
|
|
@@ -23254,13 +23251,13 @@ var IsomorphicGitStore = class {
|
|
|
23254
23251
|
async walkDir(root, dir, results) {
|
|
23255
23252
|
let entries;
|
|
23256
23253
|
try {
|
|
23257
|
-
entries = await
|
|
23254
|
+
entries = await import_promises.default.readdir(dir, { withFileTypes: true });
|
|
23258
23255
|
} catch {
|
|
23259
23256
|
return;
|
|
23260
23257
|
}
|
|
23261
23258
|
for (const entry of entries) {
|
|
23262
|
-
const fullPath =
|
|
23263
|
-
const relative3 =
|
|
23259
|
+
const fullPath = import_node_path.default.join(dir, entry.name);
|
|
23260
|
+
const relative3 = import_node_path.default.relative(root, fullPath);
|
|
23264
23261
|
if (relative3.startsWith(".mindkeeper") || relative3.startsWith(".git")) continue;
|
|
23265
23262
|
if (entry.isDirectory()) {
|
|
23266
23263
|
await this.walkDir(root, fullPath, results);
|
|
@@ -23272,7 +23269,7 @@ var IsomorphicGitStore = class {
|
|
|
23272
23269
|
async getCommitFiles(commitOid) {
|
|
23273
23270
|
const files = [];
|
|
23274
23271
|
await import_isomorphic_git.default.walk({
|
|
23275
|
-
fs,
|
|
23272
|
+
fs: import_node_fs.default,
|
|
23276
23273
|
dir: this.workDir,
|
|
23277
23274
|
gitdir: this.gitDir,
|
|
23278
23275
|
trees: [import_isomorphic_git.default.TREE({ ref: commitOid })],
|
|
@@ -23292,9 +23289,9 @@ var IsomorphicGitStore = class {
|
|
|
23292
23289
|
};
|
|
23293
23290
|
|
|
23294
23291
|
// ../core/src/config.ts
|
|
23295
|
-
|
|
23296
|
-
|
|
23297
|
-
|
|
23292
|
+
var import_promises2 = __toESM(require("node:fs/promises"), 1);
|
|
23293
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
23294
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
23298
23295
|
var SENSITIVE_FIELDS = ["commitMessage.llm.apiKey"];
|
|
23299
23296
|
var DEFAULT_CONFIG = {
|
|
23300
23297
|
tracking: {
|
|
@@ -23345,7 +23342,7 @@ function validateNoSensitiveFields(config, configPath) {
|
|
|
23345
23342
|
}
|
|
23346
23343
|
async function readJsonFile(filepath) {
|
|
23347
23344
|
try {
|
|
23348
|
-
const content = await
|
|
23345
|
+
const content = await import_promises2.default.readFile(filepath, "utf-8");
|
|
23349
23346
|
return JSON.parse(content);
|
|
23350
23347
|
} catch {
|
|
23351
23348
|
return null;
|
|
@@ -23368,10 +23365,10 @@ function deepMerge(target, source) {
|
|
|
23368
23365
|
return result;
|
|
23369
23366
|
}
|
|
23370
23367
|
function getGlobalConfigPath() {
|
|
23371
|
-
return
|
|
23368
|
+
return import_node_path2.default.join(import_node_os.default.homedir(), ".config", "mindkeeper", "config.json");
|
|
23372
23369
|
}
|
|
23373
23370
|
function getWorkspaceConfigPath(workDir) {
|
|
23374
|
-
return
|
|
23371
|
+
return import_node_path2.default.join(workDir, ".mindkeeper.json");
|
|
23375
23372
|
}
|
|
23376
23373
|
async function loadConfig(workDir) {
|
|
23377
23374
|
let merged = structuredClone(
|
|
@@ -24289,8 +24286,8 @@ var Tracker = class {
|
|
|
24289
24286
|
workDir;
|
|
24290
24287
|
gitDir;
|
|
24291
24288
|
constructor(options) {
|
|
24292
|
-
this.workDir =
|
|
24293
|
-
this.gitDir = options.gitDir ?
|
|
24289
|
+
this.workDir = import_node_path3.default.resolve(options.workDir);
|
|
24290
|
+
this.gitDir = options.gitDir ? import_node_path3.default.resolve(options.gitDir) : import_node_path3.default.join(this.workDir, GITDIR_NAME);
|
|
24294
24291
|
this.config = options.config ?? getDefaultConfig();
|
|
24295
24292
|
this.llmProvider = options.llmProvider;
|
|
24296
24293
|
this.store = new IsomorphicGitStore({
|
|
@@ -24462,33 +24459,33 @@ var Tracker = class {
|
|
|
24462
24459
|
});
|
|
24463
24460
|
}
|
|
24464
24461
|
async ensureGitignore() {
|
|
24465
|
-
const gitignorePath =
|
|
24462
|
+
const gitignorePath = import_node_path3.default.join(this.workDir, ".gitignore");
|
|
24466
24463
|
const entry = ".mindkeeper/";
|
|
24467
24464
|
try {
|
|
24468
|
-
const content = await
|
|
24465
|
+
const content = await import_promises3.default.readFile(gitignorePath, "utf-8");
|
|
24469
24466
|
if (content.includes(entry)) return;
|
|
24470
24467
|
const newContent = content.endsWith("\n") ? `${content}${entry}
|
|
24471
24468
|
` : `${content}
|
|
24472
24469
|
${entry}
|
|
24473
24470
|
`;
|
|
24474
|
-
await
|
|
24471
|
+
await import_promises3.default.writeFile(gitignorePath, newContent, "utf-8");
|
|
24475
24472
|
} catch {
|
|
24476
|
-
await
|
|
24473
|
+
await import_promises3.default.writeFile(gitignorePath, `${entry}
|
|
24477
24474
|
`, "utf-8");
|
|
24478
24475
|
}
|
|
24479
24476
|
}
|
|
24480
24477
|
};
|
|
24481
24478
|
|
|
24482
24479
|
// ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/index.js
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24480
|
+
var import_fs2 = require("fs");
|
|
24481
|
+
var import_promises6 = require("fs/promises");
|
|
24482
|
+
var import_events = require("events");
|
|
24483
|
+
var sysPath2 = __toESM(require("path"), 1);
|
|
24487
24484
|
|
|
24488
24485
|
// ../../node_modules/.pnpm/readdirp@4.1.2/node_modules/readdirp/esm/index.js
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24486
|
+
var import_promises4 = require("node:fs/promises");
|
|
24487
|
+
var import_node_stream = require("node:stream");
|
|
24488
|
+
var import_node_path4 = require("node:path");
|
|
24492
24489
|
var EntryTypes = {
|
|
24493
24490
|
FILE_TYPE: "files",
|
|
24494
24491
|
DIR_TYPE: "directories",
|
|
@@ -24542,7 +24539,7 @@ var normalizeFilter = (filter2) => {
|
|
|
24542
24539
|
}
|
|
24543
24540
|
return emptyFn;
|
|
24544
24541
|
};
|
|
24545
|
-
var ReaddirpStream = class extends Readable {
|
|
24542
|
+
var ReaddirpStream = class extends import_node_stream.Readable {
|
|
24546
24543
|
constructor(options = {}) {
|
|
24547
24544
|
super({
|
|
24548
24545
|
objectMode: true,
|
|
@@ -24553,7 +24550,7 @@ var ReaddirpStream = class extends Readable {
|
|
|
24553
24550
|
const { root, type } = opts;
|
|
24554
24551
|
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
24555
24552
|
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
24556
|
-
const statMethod = opts.lstat ? lstat : stat;
|
|
24553
|
+
const statMethod = opts.lstat ? import_promises4.lstat : import_promises4.stat;
|
|
24557
24554
|
if (wantBigintFsStats) {
|
|
24558
24555
|
this._stat = (path7) => statMethod(path7, { bigint: true });
|
|
24559
24556
|
} else {
|
|
@@ -24563,7 +24560,7 @@ var ReaddirpStream = class extends Readable {
|
|
|
24563
24560
|
this._wantsDir = type ? DIR_TYPES.has(type) : false;
|
|
24564
24561
|
this._wantsFile = type ? FILE_TYPES.has(type) : false;
|
|
24565
24562
|
this._wantsEverything = type === EntryTypes.EVERYTHING_TYPE;
|
|
24566
|
-
this._root =
|
|
24563
|
+
this._root = (0, import_node_path4.resolve)(root);
|
|
24567
24564
|
this._isDirent = !opts.alwaysStat;
|
|
24568
24565
|
this._statsProp = this._isDirent ? "dirent" : "stats";
|
|
24569
24566
|
this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
|
|
@@ -24624,7 +24621,7 @@ var ReaddirpStream = class extends Readable {
|
|
|
24624
24621
|
async _exploreDir(path7, depth) {
|
|
24625
24622
|
let files;
|
|
24626
24623
|
try {
|
|
24627
|
-
files = await readdir(path7, this._rdOptions);
|
|
24624
|
+
files = await (0, import_promises4.readdir)(path7, this._rdOptions);
|
|
24628
24625
|
} catch (error) {
|
|
24629
24626
|
this._onError(error);
|
|
24630
24627
|
}
|
|
@@ -24634,8 +24631,8 @@ var ReaddirpStream = class extends Readable {
|
|
|
24634
24631
|
let entry;
|
|
24635
24632
|
const basename3 = this._isDirent ? dirent.name : dirent;
|
|
24636
24633
|
try {
|
|
24637
|
-
const fullPath =
|
|
24638
|
-
entry = { path:
|
|
24634
|
+
const fullPath = (0, import_node_path4.resolve)((0, import_node_path4.join)(path7, basename3));
|
|
24635
|
+
entry = { path: (0, import_node_path4.relative)(this._root, fullPath), fullPath, basename: basename3 };
|
|
24639
24636
|
entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
|
|
24640
24637
|
} catch (err) {
|
|
24641
24638
|
this._onError(err);
|
|
@@ -24662,14 +24659,14 @@ var ReaddirpStream = class extends Readable {
|
|
|
24662
24659
|
if (stats && stats.isSymbolicLink()) {
|
|
24663
24660
|
const full = entry.fullPath;
|
|
24664
24661
|
try {
|
|
24665
|
-
const entryRealPath = await realpath(full);
|
|
24666
|
-
const entryRealPathStats = await lstat(entryRealPath);
|
|
24662
|
+
const entryRealPath = await (0, import_promises4.realpath)(full);
|
|
24663
|
+
const entryRealPathStats = await (0, import_promises4.lstat)(entryRealPath);
|
|
24667
24664
|
if (entryRealPathStats.isFile()) {
|
|
24668
24665
|
return "file";
|
|
24669
24666
|
}
|
|
24670
24667
|
if (entryRealPathStats.isDirectory()) {
|
|
24671
24668
|
const len = entryRealPath.length;
|
|
24672
|
-
if (full.startsWith(entryRealPath) && full.substr(len, 1) ===
|
|
24669
|
+
if (full.startsWith(entryRealPath) && full.substr(len, 1) === import_node_path4.sep) {
|
|
24673
24670
|
const recursiveError = new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
|
|
24674
24671
|
recursiveError.code = RECURSIVE_ERROR_CODE;
|
|
24675
24672
|
return this._onError(recursiveError);
|
|
@@ -24705,10 +24702,10 @@ function readdirp(root, options = {}) {
|
|
|
24705
24702
|
}
|
|
24706
24703
|
|
|
24707
24704
|
// ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/handler.js
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24705
|
+
var import_fs = require("fs");
|
|
24706
|
+
var import_promises5 = require("fs/promises");
|
|
24707
|
+
var sysPath = __toESM(require("path"), 1);
|
|
24708
|
+
var import_os = require("os");
|
|
24712
24709
|
var STR_DATA = "data";
|
|
24713
24710
|
var STR_END = "end";
|
|
24714
24711
|
var STR_CLOSE = "close";
|
|
@@ -24719,7 +24716,7 @@ var isWindows = pl === "win32";
|
|
|
24719
24716
|
var isMacos = pl === "darwin";
|
|
24720
24717
|
var isLinux = pl === "linux";
|
|
24721
24718
|
var isFreeBSD = pl === "freebsd";
|
|
24722
|
-
var isIBMi =
|
|
24719
|
+
var isIBMi = (0, import_os.type)() === "OS400";
|
|
24723
24720
|
var EVENTS = {
|
|
24724
24721
|
ALL: "all",
|
|
24725
24722
|
READY: "ready",
|
|
@@ -24733,7 +24730,7 @@ var EVENTS = {
|
|
|
24733
24730
|
};
|
|
24734
24731
|
var EV = EVENTS;
|
|
24735
24732
|
var THROTTLE_MODE_WATCH = "watch";
|
|
24736
|
-
var statMethods = { lstat:
|
|
24733
|
+
var statMethods = { lstat: import_promises5.lstat, stat: import_promises5.stat };
|
|
24737
24734
|
var KEY_LISTENERS = "listeners";
|
|
24738
24735
|
var KEY_ERR = "errHandlers";
|
|
24739
24736
|
var KEY_RAW = "rawEmitters";
|
|
@@ -25043,7 +25040,7 @@ function createFsWatchInstance(path7, options, listener, errHandler, emitRaw) {
|
|
|
25043
25040
|
}
|
|
25044
25041
|
};
|
|
25045
25042
|
try {
|
|
25046
|
-
return
|
|
25043
|
+
return (0, import_fs.watch)(path7, {
|
|
25047
25044
|
persistent: options.persistent
|
|
25048
25045
|
}, handleEvent);
|
|
25049
25046
|
} catch (error) {
|
|
@@ -25090,7 +25087,7 @@ var setFsWatchListener = (path7, fullPath, options, handlers) => {
|
|
|
25090
25087
|
cont.watcherUnusable = true;
|
|
25091
25088
|
if (isWindows && error.code === "EPERM") {
|
|
25092
25089
|
try {
|
|
25093
|
-
const fd = await open(path7, "r");
|
|
25090
|
+
const fd = await (0, import_promises5.open)(path7, "r");
|
|
25094
25091
|
await fd.close();
|
|
25095
25092
|
broadcastErr(error);
|
|
25096
25093
|
} catch (err) {
|
|
@@ -25126,7 +25123,7 @@ var setFsWatchFileListener = (path7, fullPath, options, handlers) => {
|
|
|
25126
25123
|
let cont = FsWatchFileInstances.get(fullPath);
|
|
25127
25124
|
const copts = cont && cont.options;
|
|
25128
25125
|
if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
|
|
25129
|
-
unwatchFile(fullPath);
|
|
25126
|
+
(0, import_fs.unwatchFile)(fullPath);
|
|
25130
25127
|
cont = void 0;
|
|
25131
25128
|
}
|
|
25132
25129
|
if (cont) {
|
|
@@ -25137,7 +25134,7 @@ var setFsWatchFileListener = (path7, fullPath, options, handlers) => {
|
|
|
25137
25134
|
listeners: listener,
|
|
25138
25135
|
rawEmitters: rawEmitter,
|
|
25139
25136
|
options,
|
|
25140
|
-
watcher: watchFile(fullPath, options, (curr, prev) => {
|
|
25137
|
+
watcher: (0, import_fs.watchFile)(fullPath, options, (curr, prev) => {
|
|
25141
25138
|
foreach(cont.rawEmitters, (rawEmitter2) => {
|
|
25142
25139
|
rawEmitter2(EV.CHANGE, fullPath, { curr, prev });
|
|
25143
25140
|
});
|
|
@@ -25154,7 +25151,7 @@ var setFsWatchFileListener = (path7, fullPath, options, handlers) => {
|
|
|
25154
25151
|
delFromSet(cont, KEY_RAW, rawEmitter);
|
|
25155
25152
|
if (isEmptySet(cont.listeners)) {
|
|
25156
25153
|
FsWatchFileInstances.delete(fullPath);
|
|
25157
|
-
unwatchFile(fullPath);
|
|
25154
|
+
(0, import_fs.unwatchFile)(fullPath);
|
|
25158
25155
|
cont.options = cont.watcher = void 0;
|
|
25159
25156
|
Object.freeze(cont);
|
|
25160
25157
|
}
|
|
@@ -25219,7 +25216,7 @@ var NodeFsHandler = class {
|
|
|
25219
25216
|
return;
|
|
25220
25217
|
if (!newStats || newStats.mtimeMs === 0) {
|
|
25221
25218
|
try {
|
|
25222
|
-
const newStats2 = await
|
|
25219
|
+
const newStats2 = await (0, import_promises5.stat)(file);
|
|
25223
25220
|
if (this.fsw.closed)
|
|
25224
25221
|
return;
|
|
25225
25222
|
const at = newStats2.atimeMs;
|
|
@@ -25274,7 +25271,7 @@ var NodeFsHandler = class {
|
|
|
25274
25271
|
this.fsw._incrReadyCount();
|
|
25275
25272
|
let linkPath;
|
|
25276
25273
|
try {
|
|
25277
|
-
linkPath = await
|
|
25274
|
+
linkPath = await (0, import_promises5.realpath)(path7);
|
|
25278
25275
|
} catch (e) {
|
|
25279
25276
|
this.fsw._emitReady();
|
|
25280
25277
|
return true;
|
|
@@ -25422,7 +25419,7 @@ var NodeFsHandler = class {
|
|
|
25422
25419
|
let closer;
|
|
25423
25420
|
if (stats.isDirectory()) {
|
|
25424
25421
|
const absPath = sysPath.resolve(path7);
|
|
25425
|
-
const targetPath = follow ? await
|
|
25422
|
+
const targetPath = follow ? await (0, import_promises5.realpath)(path7) : path7;
|
|
25426
25423
|
if (this.fsw.closed)
|
|
25427
25424
|
return;
|
|
25428
25425
|
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
|
@@ -25432,7 +25429,7 @@ var NodeFsHandler = class {
|
|
|
25432
25429
|
this.fsw._symlinkPaths.set(absPath, targetPath);
|
|
25433
25430
|
}
|
|
25434
25431
|
} else if (stats.isSymbolicLink()) {
|
|
25435
|
-
const targetPath = follow ? await
|
|
25432
|
+
const targetPath = follow ? await (0, import_promises5.realpath)(path7) : path7;
|
|
25436
25433
|
if (this.fsw.closed)
|
|
25437
25434
|
return;
|
|
25438
25435
|
const parent = sysPath.dirname(wh.watchPath);
|
|
@@ -25593,7 +25590,7 @@ var DirEntry = class {
|
|
|
25593
25590
|
return;
|
|
25594
25591
|
const dir = this.path;
|
|
25595
25592
|
try {
|
|
25596
|
-
await
|
|
25593
|
+
await (0, import_promises6.readdir)(dir);
|
|
25597
25594
|
} catch (err) {
|
|
25598
25595
|
if (this._removeWatcher) {
|
|
25599
25596
|
this._removeWatcher(sysPath2.dirname(dir), sysPath2.basename(dir));
|
|
@@ -25651,7 +25648,7 @@ var WatchHelper = class {
|
|
|
25651
25648
|
return this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
25652
25649
|
}
|
|
25653
25650
|
};
|
|
25654
|
-
var FSWatcher = class extends EventEmitter {
|
|
25651
|
+
var FSWatcher = class extends import_events.EventEmitter {
|
|
25655
25652
|
// Not indenting methods for history sake; for now.
|
|
25656
25653
|
constructor(_opts = {}) {
|
|
25657
25654
|
super();
|
|
@@ -25918,7 +25915,7 @@ var FSWatcher = class extends EventEmitter {
|
|
|
25918
25915
|
const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path7) : path7;
|
|
25919
25916
|
let stats2;
|
|
25920
25917
|
try {
|
|
25921
|
-
stats2 = await
|
|
25918
|
+
stats2 = await (0, import_promises6.stat)(fullPath);
|
|
25922
25919
|
} catch (err) {
|
|
25923
25920
|
}
|
|
25924
25921
|
if (!stats2 || this.closed)
|
|
@@ -25997,7 +25994,7 @@ var FSWatcher = class extends EventEmitter {
|
|
|
25997
25994
|
const now = /* @__PURE__ */ new Date();
|
|
25998
25995
|
const writes = this._pendingWrites;
|
|
25999
25996
|
function awaitWriteFinishFn(prevStat) {
|
|
26000
|
-
|
|
25997
|
+
(0, import_fs2.stat)(fullPath, (err, curStat) => {
|
|
26001
25998
|
if (err || !writes.has(path7)) {
|
|
26002
25999
|
if (err && err.code !== "ENOENT")
|
|
26003
26000
|
awfEmit(err);
|
|
@@ -26170,8 +26167,8 @@ function watch(paths, options = {}) {
|
|
|
26170
26167
|
}
|
|
26171
26168
|
|
|
26172
26169
|
// ../core/src/watcher.ts
|
|
26173
|
-
|
|
26174
|
-
|
|
26170
|
+
var import_promises7 = __toESM(require("node:fs/promises"), 1);
|
|
26171
|
+
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
26175
26172
|
var LOCKFILE_NAME = "watcher.lock";
|
|
26176
26173
|
var Watcher = class {
|
|
26177
26174
|
tracker;
|
|
@@ -26185,7 +26182,7 @@ var Watcher = class {
|
|
|
26185
26182
|
constructor(options) {
|
|
26186
26183
|
this.tracker = options.tracker;
|
|
26187
26184
|
this.debounceMs = options.debounceMs ?? options.tracker.getConfig().snapshot.debounceMs;
|
|
26188
|
-
this.lockfilePath =
|
|
26185
|
+
this.lockfilePath = import_node_path5.default.join(options.tracker.gitDir, LOCKFILE_NAME);
|
|
26189
26186
|
this.onSnapshot = options.onSnapshot;
|
|
26190
26187
|
this.onError = options.onError;
|
|
26191
26188
|
}
|
|
@@ -26193,14 +26190,14 @@ var Watcher = class {
|
|
|
26193
26190
|
await this.acquireLock();
|
|
26194
26191
|
const config = this.tracker.getConfig();
|
|
26195
26192
|
const watchPaths = config.tracking.include.map(
|
|
26196
|
-
(pattern) =>
|
|
26193
|
+
(pattern) => import_node_path5.default.join(this.tracker.workDir, pattern)
|
|
26197
26194
|
);
|
|
26198
26195
|
this.watcher = watch(watchPaths, {
|
|
26199
26196
|
ignoreInitial: true,
|
|
26200
26197
|
persistent: true,
|
|
26201
26198
|
ignored: [
|
|
26202
|
-
|
|
26203
|
-
|
|
26199
|
+
import_node_path5.default.join(this.tracker.workDir, ".mindkeeper/**"),
|
|
26200
|
+
import_node_path5.default.join(this.tracker.workDir, ".git/**")
|
|
26204
26201
|
]
|
|
26205
26202
|
});
|
|
26206
26203
|
this.watcher.on("change", (filePath) => this.handleChange(filePath));
|
|
@@ -26223,7 +26220,7 @@ var Watcher = class {
|
|
|
26223
26220
|
await this.releaseLock();
|
|
26224
26221
|
}
|
|
26225
26222
|
handleChange(filePath) {
|
|
26226
|
-
const relative3 =
|
|
26223
|
+
const relative3 = import_node_path5.default.relative(this.tracker.workDir, filePath);
|
|
26227
26224
|
this.pendingChanges.add(relative3);
|
|
26228
26225
|
if (this.debounceTimer) {
|
|
26229
26226
|
clearTimeout(this.debounceTimer);
|
|
@@ -26247,7 +26244,7 @@ var Watcher = class {
|
|
|
26247
26244
|
}
|
|
26248
26245
|
async acquireLock() {
|
|
26249
26246
|
try {
|
|
26250
|
-
const content = await
|
|
26247
|
+
const content = await import_promises7.default.readFile(this.lockfilePath, "utf-8");
|
|
26251
26248
|
const pid = parseInt(content.trim(), 10);
|
|
26252
26249
|
if (!isNaN(pid) && isProcessRunning(pid)) {
|
|
26253
26250
|
throw new Error(
|
|
@@ -26259,12 +26256,12 @@ var Watcher = class {
|
|
|
26259
26256
|
throw err;
|
|
26260
26257
|
}
|
|
26261
26258
|
}
|
|
26262
|
-
await
|
|
26263
|
-
await
|
|
26259
|
+
await import_promises7.default.mkdir(import_node_path5.default.dirname(this.lockfilePath), { recursive: true });
|
|
26260
|
+
await import_promises7.default.writeFile(this.lockfilePath, String(process.pid), "utf-8");
|
|
26264
26261
|
}
|
|
26265
26262
|
async releaseLock() {
|
|
26266
26263
|
try {
|
|
26267
|
-
await
|
|
26264
|
+
await import_promises7.default.unlink(this.lockfilePath);
|
|
26268
26265
|
} catch {
|
|
26269
26266
|
}
|
|
26270
26267
|
}
|
|
@@ -26279,9 +26276,9 @@ function isProcessRunning(pid) {
|
|
|
26279
26276
|
}
|
|
26280
26277
|
|
|
26281
26278
|
// src/auth-resolver.ts
|
|
26282
|
-
|
|
26283
|
-
|
|
26284
|
-
|
|
26279
|
+
var import_promises8 = __toESM(require("node:fs/promises"));
|
|
26280
|
+
var import_node_path6 = __toESM(require("node:path"));
|
|
26281
|
+
var import_node_os2 = __toESM(require("node:os"));
|
|
26285
26282
|
function normalizeProvider(provider) {
|
|
26286
26283
|
return provider.toLowerCase().replace(/-/g, "").replace(/_/g, "");
|
|
26287
26284
|
}
|
|
@@ -26294,7 +26291,7 @@ async function readAuthProfileKey(provider) {
|
|
|
26294
26291
|
const candidates = buildAuthProfilePaths();
|
|
26295
26292
|
for (const filepath of candidates) {
|
|
26296
26293
|
try {
|
|
26297
|
-
const content = await
|
|
26294
|
+
const content = await import_promises8.default.readFile(filepath, "utf-8");
|
|
26298
26295
|
const store = JSON.parse(content);
|
|
26299
26296
|
if (!store.profiles || typeof store.profiles !== "object") continue;
|
|
26300
26297
|
const normalized = normalizeProvider(provider);
|
|
@@ -26319,15 +26316,15 @@ async function readAuthProfileKey(provider) {
|
|
|
26319
26316
|
return null;
|
|
26320
26317
|
}
|
|
26321
26318
|
function buildAuthProfilePaths() {
|
|
26322
|
-
const home =
|
|
26319
|
+
const home = import_node_os2.default.homedir();
|
|
26323
26320
|
const paths = [];
|
|
26324
26321
|
const envHome = process.env.OPENCLAW_HOME;
|
|
26325
26322
|
if (envHome) {
|
|
26326
|
-
paths.push(
|
|
26323
|
+
paths.push(import_node_path6.default.join(envHome, "auth-profiles.json"));
|
|
26327
26324
|
}
|
|
26328
26325
|
paths.push(
|
|
26329
|
-
|
|
26330
|
-
|
|
26326
|
+
import_node_path6.default.join(home, ".openclaw", "auth-profiles.json"),
|
|
26327
|
+
import_node_path6.default.join(home, ".config", "openclaw", "auth-profiles.json")
|
|
26331
26328
|
);
|
|
26332
26329
|
return paths;
|
|
26333
26330
|
}
|
|
@@ -26396,7 +26393,7 @@ async function createOpenClawLlmProvider(api) {
|
|
|
26396
26393
|
async generateCommitMessage(diffs) {
|
|
26397
26394
|
const diffText = diffs.map((d) => `--- ${d.file} ---
|
|
26398
26395
|
${d.unified}`).join("\n").slice(0, MAX_DIFF_CHARS);
|
|
26399
|
-
const { callLlm } = await import("./llm-client.
|
|
26396
|
+
const { callLlm } = await import("./llm-client.cjs");
|
|
26400
26397
|
return callLlm({
|
|
26401
26398
|
provider: modelSpec.provider,
|
|
26402
26399
|
model: modelSpec.model,
|
|
@@ -26489,9 +26486,6 @@ function mindkeeperPlugin(api) {
|
|
|
26489
26486
|
api.registerService?.(watcherService);
|
|
26490
26487
|
api.log?.info?.("[mindkeeper] Plugin loaded.");
|
|
26491
26488
|
}
|
|
26492
|
-
export {
|
|
26493
|
-
mindkeeperPlugin as default
|
|
26494
|
-
};
|
|
26495
26489
|
/*! Bundled license information:
|
|
26496
26490
|
|
|
26497
26491
|
safe-buffer/index.js:
|