mindkeeper-openclaw 0.2.10 → 0.2.12
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 +446 -447
- 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, {
|
|
@@ -21232,8 +21235,8 @@ function addSubcommand(parent, name, description, handler) {
|
|
|
21232
21235
|
}
|
|
21233
21236
|
|
|
21234
21237
|
// ../core/src/tracker.ts
|
|
21235
|
-
|
|
21236
|
-
|
|
21238
|
+
var import_promises3 = __toESM(require("node:fs/promises"), 1);
|
|
21239
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
21237
21240
|
|
|
21238
21241
|
// ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
|
|
21239
21242
|
var balanced = (a, b, str) => {
|
|
@@ -23045,42 +23048,42 @@ minimatch.escape = escape;
|
|
|
23045
23048
|
minimatch.unescape = unescape;
|
|
23046
23049
|
|
|
23047
23050
|
// ../core/src/store/git-store.ts
|
|
23051
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
23052
|
+
var import_promises = __toESM(require("node:fs/promises"), 1);
|
|
23053
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
23048
23054
|
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
23055
|
var DEFAULT_AUTHOR = { name: "mindkeeper", email: "tracker@local" };
|
|
23053
23056
|
var IsomorphicGitStore = class {
|
|
23054
23057
|
workDir;
|
|
23055
23058
|
gitDir;
|
|
23056
23059
|
author;
|
|
23057
23060
|
constructor(options) {
|
|
23058
|
-
this.workDir =
|
|
23059
|
-
this.gitDir =
|
|
23061
|
+
this.workDir = import_node_path.default.resolve(options.workDir);
|
|
23062
|
+
this.gitDir = import_node_path.default.resolve(options.gitDir);
|
|
23060
23063
|
this.author = options.author ?? DEFAULT_AUTHOR;
|
|
23061
23064
|
}
|
|
23062
23065
|
async init() {
|
|
23063
|
-
await
|
|
23066
|
+
await import_promises.default.mkdir(this.gitDir, { recursive: true });
|
|
23064
23067
|
try {
|
|
23065
|
-
await import_isomorphic_git.default.resolveRef({ fs, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23068
|
+
await import_isomorphic_git.default.resolveRef({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23066
23069
|
} catch {
|
|
23067
|
-
await import_isomorphic_git.default.init({ fs, dir: this.workDir, gitdir: this.gitDir, defaultBranch: "main" });
|
|
23070
|
+
await import_isomorphic_git.default.init({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, defaultBranch: "main" });
|
|
23068
23071
|
}
|
|
23069
23072
|
}
|
|
23070
23073
|
async addFiles(filepaths) {
|
|
23071
23074
|
for (const filepath of filepaths) {
|
|
23072
|
-
const fullPath =
|
|
23075
|
+
const fullPath = import_node_path.default.join(this.workDir, filepath);
|
|
23073
23076
|
try {
|
|
23074
|
-
await
|
|
23075
|
-
await import_isomorphic_git.default.add({ fs, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23077
|
+
await import_promises.default.access(fullPath);
|
|
23078
|
+
await import_isomorphic_git.default.add({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23076
23079
|
} catch {
|
|
23077
|
-
await import_isomorphic_git.default.remove({ fs, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23080
|
+
await import_isomorphic_git.default.remove({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, filepath });
|
|
23078
23081
|
}
|
|
23079
23082
|
}
|
|
23080
23083
|
}
|
|
23081
23084
|
async commit(message) {
|
|
23082
23085
|
const oid = await import_isomorphic_git.default.commit({
|
|
23083
|
-
fs,
|
|
23086
|
+
fs: import_node_fs.default,
|
|
23084
23087
|
dir: this.workDir,
|
|
23085
23088
|
gitdir: this.gitDir,
|
|
23086
23089
|
message,
|
|
@@ -23093,7 +23096,7 @@ var IsomorphicGitStore = class {
|
|
|
23093
23096
|
let commits;
|
|
23094
23097
|
try {
|
|
23095
23098
|
commits = await import_isomorphic_git.default.log({
|
|
23096
|
-
fs,
|
|
23099
|
+
fs: import_node_fs.default,
|
|
23097
23100
|
dir: this.workDir,
|
|
23098
23101
|
gitdir: this.gitDir,
|
|
23099
23102
|
depth,
|
|
@@ -23132,7 +23135,7 @@ var IsomorphicGitStore = class {
|
|
|
23132
23135
|
async readBlobOid(commitOid, filepath) {
|
|
23133
23136
|
try {
|
|
23134
23137
|
const { oid } = await import_isomorphic_git.default.readBlob({
|
|
23135
|
-
fs,
|
|
23138
|
+
fs: import_node_fs.default,
|
|
23136
23139
|
dir: this.workDir,
|
|
23137
23140
|
gitdir: this.gitDir,
|
|
23138
23141
|
oid: commitOid,
|
|
@@ -23146,7 +23149,7 @@ var IsomorphicGitStore = class {
|
|
|
23146
23149
|
async readFile(filepath, commitOid) {
|
|
23147
23150
|
try {
|
|
23148
23151
|
const { blob } = await import_isomorphic_git.default.readBlob({
|
|
23149
|
-
fs,
|
|
23152
|
+
fs: import_node_fs.default,
|
|
23150
23153
|
dir: this.workDir,
|
|
23151
23154
|
gitdir: this.gitDir,
|
|
23152
23155
|
oid: commitOid,
|
|
@@ -23159,24 +23162,24 @@ var IsomorphicGitStore = class {
|
|
|
23159
23162
|
}
|
|
23160
23163
|
async restoreFile(filepath, commitOid) {
|
|
23161
23164
|
const content = await this.readFile(filepath, commitOid);
|
|
23162
|
-
const fullPath =
|
|
23165
|
+
const fullPath = import_node_path.default.join(this.workDir, filepath);
|
|
23163
23166
|
if (content === null) {
|
|
23164
|
-
await
|
|
23167
|
+
await import_promises.default.unlink(fullPath).catch(() => {
|
|
23165
23168
|
});
|
|
23166
23169
|
} else {
|
|
23167
|
-
await
|
|
23168
|
-
await
|
|
23170
|
+
await import_promises.default.mkdir(import_node_path.default.dirname(fullPath), { recursive: true });
|
|
23171
|
+
await import_promises.default.writeFile(fullPath, content, "utf-8");
|
|
23169
23172
|
}
|
|
23170
23173
|
}
|
|
23171
23174
|
async createTag(name, commitOid) {
|
|
23172
23175
|
const ref = commitOid ?? await import_isomorphic_git.default.resolveRef({
|
|
23173
|
-
fs,
|
|
23176
|
+
fs: import_node_fs.default,
|
|
23174
23177
|
dir: this.workDir,
|
|
23175
23178
|
gitdir: this.gitDir,
|
|
23176
23179
|
ref: "HEAD"
|
|
23177
23180
|
});
|
|
23178
23181
|
await import_isomorphic_git.default.tag({
|
|
23179
|
-
fs,
|
|
23182
|
+
fs: import_node_fs.default,
|
|
23180
23183
|
dir: this.workDir,
|
|
23181
23184
|
gitdir: this.gitDir,
|
|
23182
23185
|
ref: name,
|
|
@@ -23184,12 +23187,12 @@ var IsomorphicGitStore = class {
|
|
|
23184
23187
|
});
|
|
23185
23188
|
}
|
|
23186
23189
|
async listTags() {
|
|
23187
|
-
const tags = await import_isomorphic_git.default.listTags({ fs, dir: this.workDir, gitdir: this.gitDir });
|
|
23190
|
+
const tags = await import_isomorphic_git.default.listTags({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir });
|
|
23188
23191
|
const result = [];
|
|
23189
23192
|
for (const name of tags) {
|
|
23190
23193
|
try {
|
|
23191
23194
|
const oid = await import_isomorphic_git.default.resolveRef({
|
|
23192
|
-
fs,
|
|
23195
|
+
fs: import_node_fs.default,
|
|
23193
23196
|
dir: this.workDir,
|
|
23194
23197
|
gitdir: this.gitDir,
|
|
23195
23198
|
ref: `refs/tags/${name}`
|
|
@@ -23211,15 +23214,15 @@ var IsomorphicGitStore = class {
|
|
|
23211
23214
|
const filesToCheck = filepaths ?? await this.listWorkdirFiles();
|
|
23212
23215
|
let headOid = null;
|
|
23213
23216
|
try {
|
|
23214
|
-
headOid = await import_isomorphic_git.default.resolveRef({ fs, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23217
|
+
headOid = await import_isomorphic_git.default.resolveRef({ fs: import_node_fs.default, dir: this.workDir, gitdir: this.gitDir, ref: "HEAD" });
|
|
23215
23218
|
} catch {
|
|
23216
23219
|
}
|
|
23217
23220
|
const entries = [];
|
|
23218
23221
|
for (const filepath of filesToCheck) {
|
|
23219
|
-
const fullPath =
|
|
23222
|
+
const fullPath = import_node_path.default.join(this.workDir, filepath);
|
|
23220
23223
|
let workdirContent = null;
|
|
23221
23224
|
try {
|
|
23222
|
-
workdirContent = await
|
|
23225
|
+
workdirContent = await import_promises.default.readFile(fullPath);
|
|
23223
23226
|
} catch {
|
|
23224
23227
|
workdirContent = null;
|
|
23225
23228
|
}
|
|
@@ -23254,13 +23257,13 @@ var IsomorphicGitStore = class {
|
|
|
23254
23257
|
async walkDir(root, dir, results) {
|
|
23255
23258
|
let entries;
|
|
23256
23259
|
try {
|
|
23257
|
-
entries = await
|
|
23260
|
+
entries = await import_promises.default.readdir(dir, { withFileTypes: true });
|
|
23258
23261
|
} catch {
|
|
23259
23262
|
return;
|
|
23260
23263
|
}
|
|
23261
23264
|
for (const entry of entries) {
|
|
23262
|
-
const fullPath =
|
|
23263
|
-
const relative3 =
|
|
23265
|
+
const fullPath = import_node_path.default.join(dir, entry.name);
|
|
23266
|
+
const relative3 = import_node_path.default.relative(root, fullPath);
|
|
23264
23267
|
if (relative3.startsWith(".mindkeeper") || relative3.startsWith(".git")) continue;
|
|
23265
23268
|
if (entry.isDirectory()) {
|
|
23266
23269
|
await this.walkDir(root, fullPath, results);
|
|
@@ -23272,7 +23275,7 @@ var IsomorphicGitStore = class {
|
|
|
23272
23275
|
async getCommitFiles(commitOid) {
|
|
23273
23276
|
const files = [];
|
|
23274
23277
|
await import_isomorphic_git.default.walk({
|
|
23275
|
-
fs,
|
|
23278
|
+
fs: import_node_fs.default,
|
|
23276
23279
|
dir: this.workDir,
|
|
23277
23280
|
gitdir: this.gitDir,
|
|
23278
23281
|
trees: [import_isomorphic_git.default.TREE({ ref: commitOid })],
|
|
@@ -23292,9 +23295,9 @@ var IsomorphicGitStore = class {
|
|
|
23292
23295
|
};
|
|
23293
23296
|
|
|
23294
23297
|
// ../core/src/config.ts
|
|
23295
|
-
|
|
23296
|
-
|
|
23297
|
-
|
|
23298
|
+
var import_promises2 = __toESM(require("node:fs/promises"), 1);
|
|
23299
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
23300
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
23298
23301
|
var SENSITIVE_FIELDS = ["commitMessage.llm.apiKey"];
|
|
23299
23302
|
var DEFAULT_CONFIG = {
|
|
23300
23303
|
tracking: {
|
|
@@ -23345,7 +23348,7 @@ function validateNoSensitiveFields(config, configPath) {
|
|
|
23345
23348
|
}
|
|
23346
23349
|
async function readJsonFile(filepath) {
|
|
23347
23350
|
try {
|
|
23348
|
-
const content = await
|
|
23351
|
+
const content = await import_promises2.default.readFile(filepath, "utf-8");
|
|
23349
23352
|
return JSON.parse(content);
|
|
23350
23353
|
} catch {
|
|
23351
23354
|
return null;
|
|
@@ -23368,10 +23371,10 @@ function deepMerge(target, source) {
|
|
|
23368
23371
|
return result;
|
|
23369
23372
|
}
|
|
23370
23373
|
function getGlobalConfigPath() {
|
|
23371
|
-
return
|
|
23374
|
+
return import_node_path2.default.join(import_node_os.default.homedir(), ".config", "mindkeeper", "config.json");
|
|
23372
23375
|
}
|
|
23373
23376
|
function getWorkspaceConfigPath(workDir) {
|
|
23374
|
-
return
|
|
23377
|
+
return import_node_path2.default.join(workDir, ".mindkeeper.json");
|
|
23375
23378
|
}
|
|
23376
23379
|
async function loadConfig(workDir) {
|
|
23377
23380
|
let merged = structuredClone(
|
|
@@ -24289,8 +24292,8 @@ var Tracker = class {
|
|
|
24289
24292
|
workDir;
|
|
24290
24293
|
gitDir;
|
|
24291
24294
|
constructor(options) {
|
|
24292
|
-
this.workDir =
|
|
24293
|
-
this.gitDir = options.gitDir ?
|
|
24295
|
+
this.workDir = import_node_path3.default.resolve(options.workDir);
|
|
24296
|
+
this.gitDir = options.gitDir ? import_node_path3.default.resolve(options.gitDir) : import_node_path3.default.join(this.workDir, GITDIR_NAME);
|
|
24294
24297
|
this.config = options.config ?? getDefaultConfig();
|
|
24295
24298
|
this.llmProvider = options.llmProvider;
|
|
24296
24299
|
this.store = new IsomorphicGitStore({
|
|
@@ -24462,33 +24465,33 @@ var Tracker = class {
|
|
|
24462
24465
|
});
|
|
24463
24466
|
}
|
|
24464
24467
|
async ensureGitignore() {
|
|
24465
|
-
const gitignorePath =
|
|
24468
|
+
const gitignorePath = import_node_path3.default.join(this.workDir, ".gitignore");
|
|
24466
24469
|
const entry = ".mindkeeper/";
|
|
24467
24470
|
try {
|
|
24468
|
-
const content = await
|
|
24471
|
+
const content = await import_promises3.default.readFile(gitignorePath, "utf-8");
|
|
24469
24472
|
if (content.includes(entry)) return;
|
|
24470
24473
|
const newContent = content.endsWith("\n") ? `${content}${entry}
|
|
24471
24474
|
` : `${content}
|
|
24472
24475
|
${entry}
|
|
24473
24476
|
`;
|
|
24474
|
-
await
|
|
24477
|
+
await import_promises3.default.writeFile(gitignorePath, newContent, "utf-8");
|
|
24475
24478
|
} catch {
|
|
24476
|
-
await
|
|
24479
|
+
await import_promises3.default.writeFile(gitignorePath, `${entry}
|
|
24477
24480
|
`, "utf-8");
|
|
24478
24481
|
}
|
|
24479
24482
|
}
|
|
24480
24483
|
};
|
|
24481
24484
|
|
|
24482
24485
|
// ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/index.js
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24486
|
+
var import_fs2 = require("fs");
|
|
24487
|
+
var import_promises6 = require("fs/promises");
|
|
24488
|
+
var import_events = require("events");
|
|
24489
|
+
var sysPath2 = __toESM(require("path"), 1);
|
|
24487
24490
|
|
|
24488
24491
|
// ../../node_modules/.pnpm/readdirp@4.1.2/node_modules/readdirp/esm/index.js
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
+
var import_promises4 = require("node:fs/promises");
|
|
24493
|
+
var import_node_stream = require("node:stream");
|
|
24494
|
+
var import_node_path4 = require("node:path");
|
|
24492
24495
|
var EntryTypes = {
|
|
24493
24496
|
FILE_TYPE: "files",
|
|
24494
24497
|
DIR_TYPE: "directories",
|
|
@@ -24542,7 +24545,7 @@ var normalizeFilter = (filter2) => {
|
|
|
24542
24545
|
}
|
|
24543
24546
|
return emptyFn;
|
|
24544
24547
|
};
|
|
24545
|
-
var ReaddirpStream = class extends Readable {
|
|
24548
|
+
var ReaddirpStream = class extends import_node_stream.Readable {
|
|
24546
24549
|
constructor(options = {}) {
|
|
24547
24550
|
super({
|
|
24548
24551
|
objectMode: true,
|
|
@@ -24553,7 +24556,7 @@ var ReaddirpStream = class extends Readable {
|
|
|
24553
24556
|
const { root, type } = opts;
|
|
24554
24557
|
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
24555
24558
|
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
24556
|
-
const statMethod = opts.lstat ? lstat : stat;
|
|
24559
|
+
const statMethod = opts.lstat ? import_promises4.lstat : import_promises4.stat;
|
|
24557
24560
|
if (wantBigintFsStats) {
|
|
24558
24561
|
this._stat = (path7) => statMethod(path7, { bigint: true });
|
|
24559
24562
|
} else {
|
|
@@ -24563,7 +24566,7 @@ var ReaddirpStream = class extends Readable {
|
|
|
24563
24566
|
this._wantsDir = type ? DIR_TYPES.has(type) : false;
|
|
24564
24567
|
this._wantsFile = type ? FILE_TYPES.has(type) : false;
|
|
24565
24568
|
this._wantsEverything = type === EntryTypes.EVERYTHING_TYPE;
|
|
24566
|
-
this._root =
|
|
24569
|
+
this._root = (0, import_node_path4.resolve)(root);
|
|
24567
24570
|
this._isDirent = !opts.alwaysStat;
|
|
24568
24571
|
this._statsProp = this._isDirent ? "dirent" : "stats";
|
|
24569
24572
|
this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
|
|
@@ -24624,7 +24627,7 @@ var ReaddirpStream = class extends Readable {
|
|
|
24624
24627
|
async _exploreDir(path7, depth) {
|
|
24625
24628
|
let files;
|
|
24626
24629
|
try {
|
|
24627
|
-
files = await readdir(path7, this._rdOptions);
|
|
24630
|
+
files = await (0, import_promises4.readdir)(path7, this._rdOptions);
|
|
24628
24631
|
} catch (error) {
|
|
24629
24632
|
this._onError(error);
|
|
24630
24633
|
}
|
|
@@ -24634,8 +24637,8 @@ var ReaddirpStream = class extends Readable {
|
|
|
24634
24637
|
let entry;
|
|
24635
24638
|
const basename3 = this._isDirent ? dirent.name : dirent;
|
|
24636
24639
|
try {
|
|
24637
|
-
const fullPath =
|
|
24638
|
-
entry = { path:
|
|
24640
|
+
const fullPath = (0, import_node_path4.resolve)((0, import_node_path4.join)(path7, basename3));
|
|
24641
|
+
entry = { path: (0, import_node_path4.relative)(this._root, fullPath), fullPath, basename: basename3 };
|
|
24639
24642
|
entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
|
|
24640
24643
|
} catch (err) {
|
|
24641
24644
|
this._onError(err);
|
|
@@ -24662,14 +24665,14 @@ var ReaddirpStream = class extends Readable {
|
|
|
24662
24665
|
if (stats && stats.isSymbolicLink()) {
|
|
24663
24666
|
const full = entry.fullPath;
|
|
24664
24667
|
try {
|
|
24665
|
-
const entryRealPath = await realpath(full);
|
|
24666
|
-
const entryRealPathStats = await lstat(entryRealPath);
|
|
24668
|
+
const entryRealPath = await (0, import_promises4.realpath)(full);
|
|
24669
|
+
const entryRealPathStats = await (0, import_promises4.lstat)(entryRealPath);
|
|
24667
24670
|
if (entryRealPathStats.isFile()) {
|
|
24668
24671
|
return "file";
|
|
24669
24672
|
}
|
|
24670
24673
|
if (entryRealPathStats.isDirectory()) {
|
|
24671
24674
|
const len = entryRealPath.length;
|
|
24672
|
-
if (full.startsWith(entryRealPath) && full.substr(len, 1) ===
|
|
24675
|
+
if (full.startsWith(entryRealPath) && full.substr(len, 1) === import_node_path4.sep) {
|
|
24673
24676
|
const recursiveError = new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
|
|
24674
24677
|
recursiveError.code = RECURSIVE_ERROR_CODE;
|
|
24675
24678
|
return this._onError(recursiveError);
|
|
@@ -24705,10 +24708,10 @@ function readdirp(root, options = {}) {
|
|
|
24705
24708
|
}
|
|
24706
24709
|
|
|
24707
24710
|
// ../../node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/handler.js
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24711
|
+
var import_fs = require("fs");
|
|
24712
|
+
var import_promises5 = require("fs/promises");
|
|
24713
|
+
var sysPath = __toESM(require("path"), 1);
|
|
24714
|
+
var import_os = require("os");
|
|
24712
24715
|
var STR_DATA = "data";
|
|
24713
24716
|
var STR_END = "end";
|
|
24714
24717
|
var STR_CLOSE = "close";
|
|
@@ -24719,7 +24722,7 @@ var isWindows = pl === "win32";
|
|
|
24719
24722
|
var isMacos = pl === "darwin";
|
|
24720
24723
|
var isLinux = pl === "linux";
|
|
24721
24724
|
var isFreeBSD = pl === "freebsd";
|
|
24722
|
-
var isIBMi =
|
|
24725
|
+
var isIBMi = (0, import_os.type)() === "OS400";
|
|
24723
24726
|
var EVENTS = {
|
|
24724
24727
|
ALL: "all",
|
|
24725
24728
|
READY: "ready",
|
|
@@ -24733,7 +24736,7 @@ var EVENTS = {
|
|
|
24733
24736
|
};
|
|
24734
24737
|
var EV = EVENTS;
|
|
24735
24738
|
var THROTTLE_MODE_WATCH = "watch";
|
|
24736
|
-
var statMethods = { lstat:
|
|
24739
|
+
var statMethods = { lstat: import_promises5.lstat, stat: import_promises5.stat };
|
|
24737
24740
|
var KEY_LISTENERS = "listeners";
|
|
24738
24741
|
var KEY_ERR = "errHandlers";
|
|
24739
24742
|
var KEY_RAW = "rawEmitters";
|
|
@@ -25043,7 +25046,7 @@ function createFsWatchInstance(path7, options, listener, errHandler, emitRaw) {
|
|
|
25043
25046
|
}
|
|
25044
25047
|
};
|
|
25045
25048
|
try {
|
|
25046
|
-
return
|
|
25049
|
+
return (0, import_fs.watch)(path7, {
|
|
25047
25050
|
persistent: options.persistent
|
|
25048
25051
|
}, handleEvent);
|
|
25049
25052
|
} catch (error) {
|
|
@@ -25090,7 +25093,7 @@ var setFsWatchListener = (path7, fullPath, options, handlers) => {
|
|
|
25090
25093
|
cont.watcherUnusable = true;
|
|
25091
25094
|
if (isWindows && error.code === "EPERM") {
|
|
25092
25095
|
try {
|
|
25093
|
-
const fd = await open(path7, "r");
|
|
25096
|
+
const fd = await (0, import_promises5.open)(path7, "r");
|
|
25094
25097
|
await fd.close();
|
|
25095
25098
|
broadcastErr(error);
|
|
25096
25099
|
} catch (err) {
|
|
@@ -25126,7 +25129,7 @@ var setFsWatchFileListener = (path7, fullPath, options, handlers) => {
|
|
|
25126
25129
|
let cont = FsWatchFileInstances.get(fullPath);
|
|
25127
25130
|
const copts = cont && cont.options;
|
|
25128
25131
|
if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
|
|
25129
|
-
unwatchFile(fullPath);
|
|
25132
|
+
(0, import_fs.unwatchFile)(fullPath);
|
|
25130
25133
|
cont = void 0;
|
|
25131
25134
|
}
|
|
25132
25135
|
if (cont) {
|
|
@@ -25137,7 +25140,7 @@ var setFsWatchFileListener = (path7, fullPath, options, handlers) => {
|
|
|
25137
25140
|
listeners: listener,
|
|
25138
25141
|
rawEmitters: rawEmitter,
|
|
25139
25142
|
options,
|
|
25140
|
-
watcher: watchFile(fullPath, options, (curr, prev) => {
|
|
25143
|
+
watcher: (0, import_fs.watchFile)(fullPath, options, (curr, prev) => {
|
|
25141
25144
|
foreach(cont.rawEmitters, (rawEmitter2) => {
|
|
25142
25145
|
rawEmitter2(EV.CHANGE, fullPath, { curr, prev });
|
|
25143
25146
|
});
|
|
@@ -25154,7 +25157,7 @@ var setFsWatchFileListener = (path7, fullPath, options, handlers) => {
|
|
|
25154
25157
|
delFromSet(cont, KEY_RAW, rawEmitter);
|
|
25155
25158
|
if (isEmptySet(cont.listeners)) {
|
|
25156
25159
|
FsWatchFileInstances.delete(fullPath);
|
|
25157
|
-
unwatchFile(fullPath);
|
|
25160
|
+
(0, import_fs.unwatchFile)(fullPath);
|
|
25158
25161
|
cont.options = cont.watcher = void 0;
|
|
25159
25162
|
Object.freeze(cont);
|
|
25160
25163
|
}
|
|
@@ -25219,7 +25222,7 @@ var NodeFsHandler = class {
|
|
|
25219
25222
|
return;
|
|
25220
25223
|
if (!newStats || newStats.mtimeMs === 0) {
|
|
25221
25224
|
try {
|
|
25222
|
-
const newStats2 = await
|
|
25225
|
+
const newStats2 = await (0, import_promises5.stat)(file);
|
|
25223
25226
|
if (this.fsw.closed)
|
|
25224
25227
|
return;
|
|
25225
25228
|
const at = newStats2.atimeMs;
|
|
@@ -25274,7 +25277,7 @@ var NodeFsHandler = class {
|
|
|
25274
25277
|
this.fsw._incrReadyCount();
|
|
25275
25278
|
let linkPath;
|
|
25276
25279
|
try {
|
|
25277
|
-
linkPath = await
|
|
25280
|
+
linkPath = await (0, import_promises5.realpath)(path7);
|
|
25278
25281
|
} catch (e) {
|
|
25279
25282
|
this.fsw._emitReady();
|
|
25280
25283
|
return true;
|
|
@@ -25422,7 +25425,7 @@ var NodeFsHandler = class {
|
|
|
25422
25425
|
let closer;
|
|
25423
25426
|
if (stats.isDirectory()) {
|
|
25424
25427
|
const absPath = sysPath.resolve(path7);
|
|
25425
|
-
const targetPath = follow ? await
|
|
25428
|
+
const targetPath = follow ? await (0, import_promises5.realpath)(path7) : path7;
|
|
25426
25429
|
if (this.fsw.closed)
|
|
25427
25430
|
return;
|
|
25428
25431
|
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
|
@@ -25432,7 +25435,7 @@ var NodeFsHandler = class {
|
|
|
25432
25435
|
this.fsw._symlinkPaths.set(absPath, targetPath);
|
|
25433
25436
|
}
|
|
25434
25437
|
} else if (stats.isSymbolicLink()) {
|
|
25435
|
-
const targetPath = follow ? await
|
|
25438
|
+
const targetPath = follow ? await (0, import_promises5.realpath)(path7) : path7;
|
|
25436
25439
|
if (this.fsw.closed)
|
|
25437
25440
|
return;
|
|
25438
25441
|
const parent = sysPath.dirname(wh.watchPath);
|
|
@@ -25593,7 +25596,7 @@ var DirEntry = class {
|
|
|
25593
25596
|
return;
|
|
25594
25597
|
const dir = this.path;
|
|
25595
25598
|
try {
|
|
25596
|
-
await
|
|
25599
|
+
await (0, import_promises6.readdir)(dir);
|
|
25597
25600
|
} catch (err) {
|
|
25598
25601
|
if (this._removeWatcher) {
|
|
25599
25602
|
this._removeWatcher(sysPath2.dirname(dir), sysPath2.basename(dir));
|
|
@@ -25651,7 +25654,7 @@ var WatchHelper = class {
|
|
|
25651
25654
|
return this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
25652
25655
|
}
|
|
25653
25656
|
};
|
|
25654
|
-
var FSWatcher = class extends EventEmitter {
|
|
25657
|
+
var FSWatcher = class extends import_events.EventEmitter {
|
|
25655
25658
|
// Not indenting methods for history sake; for now.
|
|
25656
25659
|
constructor(_opts = {}) {
|
|
25657
25660
|
super();
|
|
@@ -25918,7 +25921,7 @@ var FSWatcher = class extends EventEmitter {
|
|
|
25918
25921
|
const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path7) : path7;
|
|
25919
25922
|
let stats2;
|
|
25920
25923
|
try {
|
|
25921
|
-
stats2 = await
|
|
25924
|
+
stats2 = await (0, import_promises6.stat)(fullPath);
|
|
25922
25925
|
} catch (err) {
|
|
25923
25926
|
}
|
|
25924
25927
|
if (!stats2 || this.closed)
|
|
@@ -25997,7 +26000,7 @@ var FSWatcher = class extends EventEmitter {
|
|
|
25997
26000
|
const now = /* @__PURE__ */ new Date();
|
|
25998
26001
|
const writes = this._pendingWrites;
|
|
25999
26002
|
function awaitWriteFinishFn(prevStat) {
|
|
26000
|
-
|
|
26003
|
+
(0, import_fs2.stat)(fullPath, (err, curStat) => {
|
|
26001
26004
|
if (err || !writes.has(path7)) {
|
|
26002
26005
|
if (err && err.code !== "ENOENT")
|
|
26003
26006
|
awfEmit(err);
|
|
@@ -26170,8 +26173,8 @@ function watch(paths, options = {}) {
|
|
|
26170
26173
|
}
|
|
26171
26174
|
|
|
26172
26175
|
// ../core/src/watcher.ts
|
|
26173
|
-
|
|
26174
|
-
|
|
26176
|
+
var import_promises7 = __toESM(require("node:fs/promises"), 1);
|
|
26177
|
+
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
26175
26178
|
var LOCKFILE_NAME = "watcher.lock";
|
|
26176
26179
|
var Watcher = class {
|
|
26177
26180
|
tracker;
|
|
@@ -26185,7 +26188,7 @@ var Watcher = class {
|
|
|
26185
26188
|
constructor(options) {
|
|
26186
26189
|
this.tracker = options.tracker;
|
|
26187
26190
|
this.debounceMs = options.debounceMs ?? options.tracker.getConfig().snapshot.debounceMs;
|
|
26188
|
-
this.lockfilePath =
|
|
26191
|
+
this.lockfilePath = import_node_path5.default.join(options.tracker.gitDir, LOCKFILE_NAME);
|
|
26189
26192
|
this.onSnapshot = options.onSnapshot;
|
|
26190
26193
|
this.onError = options.onError;
|
|
26191
26194
|
}
|
|
@@ -26193,14 +26196,14 @@ var Watcher = class {
|
|
|
26193
26196
|
await this.acquireLock();
|
|
26194
26197
|
const config = this.tracker.getConfig();
|
|
26195
26198
|
const watchPaths = config.tracking.include.map(
|
|
26196
|
-
(pattern) =>
|
|
26199
|
+
(pattern) => import_node_path5.default.join(this.tracker.workDir, pattern)
|
|
26197
26200
|
);
|
|
26198
26201
|
this.watcher = watch(watchPaths, {
|
|
26199
26202
|
ignoreInitial: true,
|
|
26200
26203
|
persistent: true,
|
|
26201
26204
|
ignored: [
|
|
26202
|
-
|
|
26203
|
-
|
|
26205
|
+
import_node_path5.default.join(this.tracker.workDir, ".mindkeeper/**"),
|
|
26206
|
+
import_node_path5.default.join(this.tracker.workDir, ".git/**")
|
|
26204
26207
|
]
|
|
26205
26208
|
});
|
|
26206
26209
|
this.watcher.on("change", (filePath) => this.handleChange(filePath));
|
|
@@ -26223,7 +26226,7 @@ var Watcher = class {
|
|
|
26223
26226
|
await this.releaseLock();
|
|
26224
26227
|
}
|
|
26225
26228
|
handleChange(filePath) {
|
|
26226
|
-
const relative3 =
|
|
26229
|
+
const relative3 = import_node_path5.default.relative(this.tracker.workDir, filePath);
|
|
26227
26230
|
this.pendingChanges.add(relative3);
|
|
26228
26231
|
if (this.debounceTimer) {
|
|
26229
26232
|
clearTimeout(this.debounceTimer);
|
|
@@ -26247,7 +26250,7 @@ var Watcher = class {
|
|
|
26247
26250
|
}
|
|
26248
26251
|
async acquireLock() {
|
|
26249
26252
|
try {
|
|
26250
|
-
const content = await
|
|
26253
|
+
const content = await import_promises7.default.readFile(this.lockfilePath, "utf-8");
|
|
26251
26254
|
const pid = parseInt(content.trim(), 10);
|
|
26252
26255
|
if (!isNaN(pid) && isProcessRunning(pid)) {
|
|
26253
26256
|
throw new Error(
|
|
@@ -26259,12 +26262,12 @@ var Watcher = class {
|
|
|
26259
26262
|
throw err;
|
|
26260
26263
|
}
|
|
26261
26264
|
}
|
|
26262
|
-
await
|
|
26263
|
-
await
|
|
26265
|
+
await import_promises7.default.mkdir(import_node_path5.default.dirname(this.lockfilePath), { recursive: true });
|
|
26266
|
+
await import_promises7.default.writeFile(this.lockfilePath, String(process.pid), "utf-8");
|
|
26264
26267
|
}
|
|
26265
26268
|
async releaseLock() {
|
|
26266
26269
|
try {
|
|
26267
|
-
await
|
|
26270
|
+
await import_promises7.default.unlink(this.lockfilePath);
|
|
26268
26271
|
} catch {
|
|
26269
26272
|
}
|
|
26270
26273
|
}
|
|
@@ -26278,54 +26281,10 @@ function isProcessRunning(pid) {
|
|
|
26278
26281
|
}
|
|
26279
26282
|
}
|
|
26280
26283
|
|
|
26281
|
-
// src/service.ts
|
|
26282
|
-
function createWatcherService(api, trackerRef, llmProvider) {
|
|
26283
|
-
let watcher = null;
|
|
26284
|
-
const log = {
|
|
26285
|
-
info: (msg) => api.log?.info?.(msg),
|
|
26286
|
-
warn: (msg) => api.log?.warn?.(msg),
|
|
26287
|
-
error: (msg) => api.log?.error?.(msg)
|
|
26288
|
-
};
|
|
26289
|
-
return {
|
|
26290
|
-
id: "mindkeeper-watcher",
|
|
26291
|
-
async start(ctx) {
|
|
26292
|
-
const workspaceDir = ctx.workspaceDir ?? process.env.OPENCLAW_WORKSPACE;
|
|
26293
|
-
if (!workspaceDir) {
|
|
26294
|
-
log.warn("[mindkeeper] No workspace directory in service context. Watcher disabled.");
|
|
26295
|
-
return;
|
|
26296
|
-
}
|
|
26297
|
-
const tracker = new Tracker({ workDir: workspaceDir, llmProvider });
|
|
26298
|
-
await tracker.init();
|
|
26299
|
-
trackerRef.current = tracker;
|
|
26300
|
-
watcher = new Watcher({
|
|
26301
|
-
tracker,
|
|
26302
|
-
onSnapshot: (commit) => {
|
|
26303
|
-
log.info(`[mindkeeper] Auto-snapshot ${commit.oid.slice(0, 8)}: ${commit.message}`);
|
|
26304
|
-
},
|
|
26305
|
-
onError: (err) => {
|
|
26306
|
-
log.error(`[mindkeeper] Watcher error: ${err.message}`);
|
|
26307
|
-
}
|
|
26308
|
-
});
|
|
26309
|
-
await watcher.start();
|
|
26310
|
-
log.info(
|
|
26311
|
-
`[mindkeeper] Watching ${workspaceDir} (debounce: ${tracker.getConfig().snapshot.debounceMs}ms)`
|
|
26312
|
-
);
|
|
26313
|
-
},
|
|
26314
|
-
async stop() {
|
|
26315
|
-
if (watcher) {
|
|
26316
|
-
await watcher.stop();
|
|
26317
|
-
watcher = null;
|
|
26318
|
-
log.info("[mindkeeper] Watcher stopped.");
|
|
26319
|
-
}
|
|
26320
|
-
trackerRef.current = null;
|
|
26321
|
-
}
|
|
26322
|
-
};
|
|
26323
|
-
}
|
|
26324
|
-
|
|
26325
26284
|
// src/auth-resolver.ts
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26285
|
+
var import_promises8 = __toESM(require("node:fs/promises"));
|
|
26286
|
+
var import_node_path6 = __toESM(require("node:path"));
|
|
26287
|
+
var import_node_os2 = __toESM(require("node:os"));
|
|
26329
26288
|
function normalizeProvider(provider) {
|
|
26330
26289
|
return provider.toLowerCase().replace(/-/g, "").replace(/_/g, "");
|
|
26331
26290
|
}
|
|
@@ -26338,7 +26297,7 @@ async function readAuthProfileKey(provider) {
|
|
|
26338
26297
|
const candidates = buildAuthProfilePaths();
|
|
26339
26298
|
for (const filepath of candidates) {
|
|
26340
26299
|
try {
|
|
26341
|
-
const content = await
|
|
26300
|
+
const content = await import_promises8.default.readFile(filepath, "utf-8");
|
|
26342
26301
|
const store = JSON.parse(content);
|
|
26343
26302
|
if (!store.profiles || typeof store.profiles !== "object") continue;
|
|
26344
26303
|
const normalized = normalizeProvider(provider);
|
|
@@ -26363,15 +26322,15 @@ async function readAuthProfileKey(provider) {
|
|
|
26363
26322
|
return null;
|
|
26364
26323
|
}
|
|
26365
26324
|
function buildAuthProfilePaths() {
|
|
26366
|
-
const home =
|
|
26325
|
+
const home = import_node_os2.default.homedir();
|
|
26367
26326
|
const paths = [];
|
|
26368
26327
|
const envHome = process.env.OPENCLAW_HOME;
|
|
26369
26328
|
if (envHome) {
|
|
26370
|
-
paths.push(
|
|
26329
|
+
paths.push(import_node_path6.default.join(envHome, "auth-profiles.json"));
|
|
26371
26330
|
}
|
|
26372
26331
|
paths.push(
|
|
26373
|
-
|
|
26374
|
-
|
|
26332
|
+
import_node_path6.default.join(home, ".openclaw", "auth-profiles.json"),
|
|
26333
|
+
import_node_path6.default.join(home, ".config", "openclaw", "auth-profiles.json")
|
|
26375
26334
|
);
|
|
26376
26335
|
return paths;
|
|
26377
26336
|
}
|
|
@@ -26440,7 +26399,7 @@ async function createOpenClawLlmProvider(api) {
|
|
|
26440
26399
|
async generateCommitMessage(diffs) {
|
|
26441
26400
|
const diffText = diffs.map((d) => `--- ${d.file} ---
|
|
26442
26401
|
${d.unified}`).join("\n").slice(0, MAX_DIFF_CHARS);
|
|
26443
|
-
const { callLlm } = await import("./llm-client.
|
|
26402
|
+
const { callLlm } = await import("./llm-client.cjs");
|
|
26444
26403
|
return callLlm({
|
|
26445
26404
|
provider: modelSpec.provider,
|
|
26446
26405
|
model: modelSpec.model,
|
|
@@ -26476,23 +26435,63 @@ function resolveModelFromConfig(config) {
|
|
|
26476
26435
|
return { provider, model, baseUrl };
|
|
26477
26436
|
}
|
|
26478
26437
|
|
|
26438
|
+
// src/service.ts
|
|
26439
|
+
function createWatcherService(api, trackerRef) {
|
|
26440
|
+
let watcher = null;
|
|
26441
|
+
const log = {
|
|
26442
|
+
info: (msg) => api.log?.info?.(msg),
|
|
26443
|
+
warn: (msg) => api.log?.warn?.(msg),
|
|
26444
|
+
error: (msg) => api.log?.error?.(msg)
|
|
26445
|
+
};
|
|
26446
|
+
return {
|
|
26447
|
+
id: "mindkeeper-watcher",
|
|
26448
|
+
async start(ctx) {
|
|
26449
|
+
const workspaceDir = ctx.workspaceDir ?? process.env.OPENCLAW_WORKSPACE;
|
|
26450
|
+
if (!workspaceDir) {
|
|
26451
|
+
log.warn("[mindkeeper] No workspace directory in service context. Watcher disabled.");
|
|
26452
|
+
return;
|
|
26453
|
+
}
|
|
26454
|
+
const llmProvider = await createOpenClawLlmProvider({
|
|
26455
|
+
config: ctx.config,
|
|
26456
|
+
log
|
|
26457
|
+
});
|
|
26458
|
+
const tracker = new Tracker({ workDir: workspaceDir, llmProvider: llmProvider ?? void 0 });
|
|
26459
|
+
await tracker.init();
|
|
26460
|
+
trackerRef.current = tracker;
|
|
26461
|
+
watcher = new Watcher({
|
|
26462
|
+
tracker,
|
|
26463
|
+
onSnapshot: (commit) => {
|
|
26464
|
+
log.info(`[mindkeeper] Auto-snapshot ${commit.oid.slice(0, 8)}: ${commit.message}`);
|
|
26465
|
+
},
|
|
26466
|
+
onError: (err) => {
|
|
26467
|
+
log.error(`[mindkeeper] Watcher error: ${err.message}`);
|
|
26468
|
+
}
|
|
26469
|
+
});
|
|
26470
|
+
await watcher.start();
|
|
26471
|
+
log.info(
|
|
26472
|
+
`[mindkeeper] Watching ${workspaceDir} (debounce: ${tracker.getConfig().snapshot.debounceMs}ms)`
|
|
26473
|
+
);
|
|
26474
|
+
},
|
|
26475
|
+
async stop() {
|
|
26476
|
+
if (watcher) {
|
|
26477
|
+
await watcher.stop();
|
|
26478
|
+
watcher = null;
|
|
26479
|
+
log.info("[mindkeeper] Watcher stopped.");
|
|
26480
|
+
}
|
|
26481
|
+
trackerRef.current = null;
|
|
26482
|
+
}
|
|
26483
|
+
};
|
|
26484
|
+
}
|
|
26485
|
+
|
|
26479
26486
|
// src/index.ts
|
|
26480
|
-
|
|
26481
|
-
const llmProvider = await createOpenClawLlmProvider({
|
|
26482
|
-
config: api.config,
|
|
26483
|
-
pluginConfig: api.pluginConfig,
|
|
26484
|
-
log: api.log
|
|
26485
|
-
});
|
|
26487
|
+
function mindkeeperPlugin(api) {
|
|
26486
26488
|
const trackerRef = { current: null };
|
|
26487
26489
|
registerTrackerTools(api, trackerRef);
|
|
26488
26490
|
registerTrackerCli(api, trackerRef);
|
|
26489
|
-
const watcherService = createWatcherService(api, trackerRef
|
|
26491
|
+
const watcherService = createWatcherService(api, trackerRef);
|
|
26490
26492
|
api.registerService?.(watcherService);
|
|
26491
26493
|
api.log?.info?.("[mindkeeper] Plugin loaded.");
|
|
26492
26494
|
}
|
|
26493
|
-
export {
|
|
26494
|
-
mindkeeperPlugin as default
|
|
26495
|
-
};
|
|
26496
26495
|
/*! Bundled license information:
|
|
26497
26496
|
|
|
26498
26497
|
safe-buffer/index.js:
|