@slayzone/cli 0.36.0-beta.16 → 0.36.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -14
- package/dist/slay.js +971 -728
- package/package.json +1 -1
package/dist/slay.js
CHANGED
|
@@ -26,9 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
|
|
29
|
-
//
|
|
29
|
+
// node_modules/commander/lib/error.js
|
|
30
30
|
var require_error = __commonJS({
|
|
31
|
-
"
|
|
31
|
+
"node_modules/commander/lib/error.js"(exports2) {
|
|
32
32
|
var CommanderError2 = class extends Error {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs the CommanderError class
|
|
@@ -61,9 +61,9 @@ var require_error = __commonJS({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
//
|
|
64
|
+
// node_modules/commander/lib/argument.js
|
|
65
65
|
var require_argument = __commonJS({
|
|
66
|
-
"
|
|
66
|
+
"node_modules/commander/lib/argument.js"(exports2) {
|
|
67
67
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
68
68
|
var Argument2 = class {
|
|
69
69
|
/**
|
|
@@ -188,9 +188,9 @@ var require_argument = __commonJS({
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
|
|
191
|
-
//
|
|
191
|
+
// node_modules/commander/lib/help.js
|
|
192
192
|
var require_help = __commonJS({
|
|
193
|
-
"
|
|
193
|
+
"node_modules/commander/lib/help.js"(exports2) {
|
|
194
194
|
var { humanReadableArgName } = require_argument();
|
|
195
195
|
var Help2 = class {
|
|
196
196
|
constructor() {
|
|
@@ -757,9 +757,9 @@ ${itemIndentStr}`);
|
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
759
|
|
|
760
|
-
//
|
|
760
|
+
// node_modules/commander/lib/option.js
|
|
761
761
|
var require_option = __commonJS({
|
|
762
|
-
"
|
|
762
|
+
"node_modules/commander/lib/option.js"(exports2) {
|
|
763
763
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
764
764
|
var Option2 = class {
|
|
765
765
|
/**
|
|
@@ -1058,9 +1058,9 @@ var require_option = __commonJS({
|
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
1060
|
|
|
1061
|
-
//
|
|
1061
|
+
// node_modules/commander/lib/suggestSimilar.js
|
|
1062
1062
|
var require_suggestSimilar = __commonJS({
|
|
1063
|
-
"
|
|
1063
|
+
"node_modules/commander/lib/suggestSimilar.js"(exports2) {
|
|
1064
1064
|
var maxDistance = 3;
|
|
1065
1065
|
function editDistance(a, b) {
|
|
1066
1066
|
if (Math.abs(a.length - b.length) > maxDistance)
|
|
@@ -1138,9 +1138,9 @@ var require_suggestSimilar = __commonJS({
|
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
1140
|
|
|
1141
|
-
//
|
|
1141
|
+
// node_modules/commander/lib/command.js
|
|
1142
1142
|
var require_command = __commonJS({
|
|
1143
|
-
"
|
|
1143
|
+
"node_modules/commander/lib/command.js"(exports2) {
|
|
1144
1144
|
var EventEmitter = require("node:events").EventEmitter;
|
|
1145
1145
|
var childProcess = require("node:child_process");
|
|
1146
1146
|
var path10 = require("node:path");
|
|
@@ -3297,9 +3297,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3297
3297
|
}
|
|
3298
3298
|
});
|
|
3299
3299
|
|
|
3300
|
-
//
|
|
3300
|
+
// node_modules/commander/index.js
|
|
3301
3301
|
var require_commander = __commonJS({
|
|
3302
|
-
"
|
|
3302
|
+
"node_modules/commander/index.js"(exports2) {
|
|
3303
3303
|
var { Argument: Argument2 } = require_argument();
|
|
3304
3304
|
var { Command: Command2 } = require_command();
|
|
3305
3305
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -3319,17 +3319,17 @@ var require_commander = __commonJS({
|
|
|
3319
3319
|
}
|
|
3320
3320
|
});
|
|
3321
3321
|
|
|
3322
|
-
// ../../../node_modules
|
|
3322
|
+
// ../../../node_modules/readdir-glob/node_modules/minimatch/lib/path.js
|
|
3323
3323
|
var require_path = __commonJS({
|
|
3324
|
-
"../../../node_modules
|
|
3324
|
+
"../../../node_modules/readdir-glob/node_modules/minimatch/lib/path.js"(exports2, module2) {
|
|
3325
3325
|
var isWindows = typeof process === "object" && process && process.platform === "win32";
|
|
3326
3326
|
module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
|
|
3327
3327
|
}
|
|
3328
3328
|
});
|
|
3329
3329
|
|
|
3330
|
-
// ../../../node_modules
|
|
3330
|
+
// ../../../node_modules/balanced-match/index.js
|
|
3331
3331
|
var require_balanced_match = __commonJS({
|
|
3332
|
-
"../../../node_modules
|
|
3332
|
+
"../../../node_modules/balanced-match/index.js"(exports2, module2) {
|
|
3333
3333
|
"use strict";
|
|
3334
3334
|
module2.exports = balanced;
|
|
3335
3335
|
function balanced(a, b, str2) {
|
|
@@ -3385,9 +3385,9 @@ var require_balanced_match = __commonJS({
|
|
|
3385
3385
|
}
|
|
3386
3386
|
});
|
|
3387
3387
|
|
|
3388
|
-
// ../../../node_modules
|
|
3388
|
+
// ../../../node_modules/brace-expansion/index.js
|
|
3389
3389
|
var require_brace_expansion = __commonJS({
|
|
3390
|
-
"../../../node_modules
|
|
3390
|
+
"../../../node_modules/brace-expansion/index.js"(exports2, module2) {
|
|
3391
3391
|
var balanced = require_balanced_match();
|
|
3392
3392
|
module2.exports = expandTop;
|
|
3393
3393
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
@@ -3535,9 +3535,9 @@ var require_brace_expansion = __commonJS({
|
|
|
3535
3535
|
}
|
|
3536
3536
|
});
|
|
3537
3537
|
|
|
3538
|
-
// ../../../node_modules
|
|
3538
|
+
// ../../../node_modules/readdir-glob/node_modules/minimatch/minimatch.js
|
|
3539
3539
|
var require_minimatch = __commonJS({
|
|
3540
|
-
"../../../node_modules
|
|
3540
|
+
"../../../node_modules/readdir-glob/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
3541
3541
|
var minimatch = module2.exports = (p2, pattern, options = {}) => {
|
|
3542
3542
|
assertValidPattern(pattern);
|
|
3543
3543
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -4091,9 +4091,9 @@ var require_minimatch = __commonJS({
|
|
|
4091
4091
|
}
|
|
4092
4092
|
});
|
|
4093
4093
|
|
|
4094
|
-
// ../../../node_modules
|
|
4094
|
+
// ../../../node_modules/readdir-glob/index.js
|
|
4095
4095
|
var require_readdir_glob = __commonJS({
|
|
4096
|
-
"../../../node_modules
|
|
4096
|
+
"../../../node_modules/readdir-glob/index.js"(exports2, module2) {
|
|
4097
4097
|
module2.exports = readdirGlob;
|
|
4098
4098
|
var fs7 = require("fs");
|
|
4099
4099
|
var { EventEmitter } = require("events");
|
|
@@ -4313,9 +4313,9 @@ var require_readdir_glob = __commonJS({
|
|
|
4313
4313
|
}
|
|
4314
4314
|
});
|
|
4315
4315
|
|
|
4316
|
-
// ../../../node_modules
|
|
4316
|
+
// ../../../node_modules/async/dist/async.js
|
|
4317
4317
|
var require_async = __commonJS({
|
|
4318
|
-
"../../../node_modules
|
|
4318
|
+
"../../../node_modules/async/dist/async.js"(exports2, module2) {
|
|
4319
4319
|
(function(global2, factory) {
|
|
4320
4320
|
typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.async = {}));
|
|
4321
4321
|
})(exports2, (function(exports3) {
|
|
@@ -6173,9 +6173,9 @@ var require_async = __commonJS({
|
|
|
6173
6173
|
}
|
|
6174
6174
|
});
|
|
6175
6175
|
|
|
6176
|
-
// ../../../node_modules
|
|
6176
|
+
// ../../../node_modules/graceful-fs/polyfills.js
|
|
6177
6177
|
var require_polyfills = __commonJS({
|
|
6178
|
-
"../../../node_modules
|
|
6178
|
+
"../../../node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
6179
6179
|
var constants = require("constants");
|
|
6180
6180
|
var origCwd = process.cwd;
|
|
6181
6181
|
var cwd = null;
|
|
@@ -6461,9 +6461,9 @@ var require_polyfills = __commonJS({
|
|
|
6461
6461
|
}
|
|
6462
6462
|
});
|
|
6463
6463
|
|
|
6464
|
-
// ../../../node_modules
|
|
6464
|
+
// ../../../node_modules/graceful-fs/legacy-streams.js
|
|
6465
6465
|
var require_legacy_streams = __commonJS({
|
|
6466
|
-
"../../../node_modules
|
|
6466
|
+
"../../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
6467
6467
|
var Stream = require("stream").Stream;
|
|
6468
6468
|
module2.exports = legacy;
|
|
6469
6469
|
function legacy(fs7) {
|
|
@@ -6557,9 +6557,9 @@ var require_legacy_streams = __commonJS({
|
|
|
6557
6557
|
}
|
|
6558
6558
|
});
|
|
6559
6559
|
|
|
6560
|
-
// ../../../node_modules
|
|
6560
|
+
// ../../../node_modules/graceful-fs/clone.js
|
|
6561
6561
|
var require_clone = __commonJS({
|
|
6562
|
-
"../../../node_modules
|
|
6562
|
+
"../../../node_modules/graceful-fs/clone.js"(exports2, module2) {
|
|
6563
6563
|
"use strict";
|
|
6564
6564
|
module2.exports = clone;
|
|
6565
6565
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -6580,9 +6580,9 @@ var require_clone = __commonJS({
|
|
|
6580
6580
|
}
|
|
6581
6581
|
});
|
|
6582
6582
|
|
|
6583
|
-
// ../../../node_modules
|
|
6583
|
+
// ../../../node_modules/graceful-fs/graceful-fs.js
|
|
6584
6584
|
var require_graceful_fs = __commonJS({
|
|
6585
|
-
"../../../node_modules
|
|
6585
|
+
"../../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
6586
6586
|
var fs7 = require("fs");
|
|
6587
6587
|
var polyfills = require_polyfills();
|
|
6588
6588
|
var legacy = require_legacy_streams();
|
|
@@ -6665,8 +6665,8 @@ var require_graceful_fs = __commonJS({
|
|
|
6665
6665
|
fs8.createReadStream = createReadStream;
|
|
6666
6666
|
fs8.createWriteStream = createWriteStream;
|
|
6667
6667
|
var fs$readFile = fs8.readFile;
|
|
6668
|
-
fs8.readFile =
|
|
6669
|
-
function
|
|
6668
|
+
fs8.readFile = readFile2;
|
|
6669
|
+
function readFile2(path10, options, cb) {
|
|
6670
6670
|
if (typeof options === "function")
|
|
6671
6671
|
cb = options, options = null;
|
|
6672
6672
|
return go$readFile(path10, options, cb);
|
|
@@ -6950,9 +6950,9 @@ var require_graceful_fs = __commonJS({
|
|
|
6950
6950
|
}
|
|
6951
6951
|
});
|
|
6952
6952
|
|
|
6953
|
-
// ../../../node_modules
|
|
6953
|
+
// ../../../node_modules/is-stream/index.js
|
|
6954
6954
|
var require_is_stream = __commonJS({
|
|
6955
|
-
"../../../node_modules
|
|
6955
|
+
"../../../node_modules/is-stream/index.js"(exports2, module2) {
|
|
6956
6956
|
"use strict";
|
|
6957
6957
|
var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
6958
6958
|
isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
@@ -6963,9 +6963,9 @@ var require_is_stream = __commonJS({
|
|
|
6963
6963
|
}
|
|
6964
6964
|
});
|
|
6965
6965
|
|
|
6966
|
-
// ../../../node_modules
|
|
6966
|
+
// ../../../node_modules/process-nextick-args/index.js
|
|
6967
6967
|
var require_process_nextick_args = __commonJS({
|
|
6968
|
-
"../../../node_modules
|
|
6968
|
+
"../../../node_modules/process-nextick-args/index.js"(exports2, module2) {
|
|
6969
6969
|
"use strict";
|
|
6970
6970
|
if (typeof process === "undefined" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0) {
|
|
6971
6971
|
module2.exports = { nextTick };
|
|
@@ -7008,9 +7008,9 @@ var require_process_nextick_args = __commonJS({
|
|
|
7008
7008
|
}
|
|
7009
7009
|
});
|
|
7010
7010
|
|
|
7011
|
-
// ../../../node_modules
|
|
7011
|
+
// ../../../node_modules/lazystream/node_modules/isarray/index.js
|
|
7012
7012
|
var require_isarray = __commonJS({
|
|
7013
|
-
"../../../node_modules
|
|
7013
|
+
"../../../node_modules/lazystream/node_modules/isarray/index.js"(exports2, module2) {
|
|
7014
7014
|
var toString2 = {}.toString;
|
|
7015
7015
|
module2.exports = Array.isArray || function(arr) {
|
|
7016
7016
|
return toString2.call(arr) == "[object Array]";
|
|
@@ -7018,16 +7018,16 @@ var require_isarray = __commonJS({
|
|
|
7018
7018
|
}
|
|
7019
7019
|
});
|
|
7020
7020
|
|
|
7021
|
-
// ../../../node_modules
|
|
7021
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js
|
|
7022
7022
|
var require_stream = __commonJS({
|
|
7023
|
-
"../../../node_modules
|
|
7023
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
|
|
7024
7024
|
module2.exports = require("stream");
|
|
7025
7025
|
}
|
|
7026
7026
|
});
|
|
7027
7027
|
|
|
7028
|
-
// ../../../node_modules
|
|
7028
|
+
// ../../../node_modules/lazystream/node_modules/safe-buffer/index.js
|
|
7029
7029
|
var require_safe_buffer = __commonJS({
|
|
7030
|
-
"../../../node_modules
|
|
7030
|
+
"../../../node_modules/lazystream/node_modules/safe-buffer/index.js"(exports2, module2) {
|
|
7031
7031
|
var buffer = require("buffer");
|
|
7032
7032
|
var Buffer2 = buffer.Buffer;
|
|
7033
7033
|
function copyProps(src, dst) {
|
|
@@ -7082,9 +7082,9 @@ var require_safe_buffer = __commonJS({
|
|
|
7082
7082
|
}
|
|
7083
7083
|
});
|
|
7084
7084
|
|
|
7085
|
-
// ../../../node_modules
|
|
7085
|
+
// ../../../node_modules/core-util-is/lib/util.js
|
|
7086
7086
|
var require_util = __commonJS({
|
|
7087
|
-
"../../../node_modules
|
|
7087
|
+
"../../../node_modules/core-util-is/lib/util.js"(exports2) {
|
|
7088
7088
|
function isArray(arg) {
|
|
7089
7089
|
if (Array.isArray) {
|
|
7090
7090
|
return Array.isArray(arg);
|
|
@@ -7152,9 +7152,9 @@ var require_util = __commonJS({
|
|
|
7152
7152
|
}
|
|
7153
7153
|
});
|
|
7154
7154
|
|
|
7155
|
-
// ../../../node_modules
|
|
7155
|
+
// ../../../node_modules/inherits/inherits_browser.js
|
|
7156
7156
|
var require_inherits_browser = __commonJS({
|
|
7157
|
-
"../../../node_modules
|
|
7157
|
+
"../../../node_modules/inherits/inherits_browser.js"(exports2, module2) {
|
|
7158
7158
|
if (typeof Object.create === "function") {
|
|
7159
7159
|
module2.exports = function inherits(ctor, superCtor) {
|
|
7160
7160
|
if (superCtor) {
|
|
@@ -7184,9 +7184,9 @@ var require_inherits_browser = __commonJS({
|
|
|
7184
7184
|
}
|
|
7185
7185
|
});
|
|
7186
7186
|
|
|
7187
|
-
// ../../../node_modules
|
|
7187
|
+
// ../../../node_modules/inherits/inherits.js
|
|
7188
7188
|
var require_inherits = __commonJS({
|
|
7189
|
-
"../../../node_modules
|
|
7189
|
+
"../../../node_modules/inherits/inherits.js"(exports2, module2) {
|
|
7190
7190
|
try {
|
|
7191
7191
|
util = require("util");
|
|
7192
7192
|
if (typeof util.inherits !== "function") throw "";
|
|
@@ -7198,9 +7198,9 @@ var require_inherits = __commonJS({
|
|
|
7198
7198
|
}
|
|
7199
7199
|
});
|
|
7200
7200
|
|
|
7201
|
-
// ../../../node_modules
|
|
7201
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js
|
|
7202
7202
|
var require_BufferList = __commonJS({
|
|
7203
|
-
"../../../node_modules
|
|
7203
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js"(exports2, module2) {
|
|
7204
7204
|
"use strict";
|
|
7205
7205
|
function _classCallCheck(instance, Constructor) {
|
|
7206
7206
|
if (!(instance instanceof Constructor)) {
|
|
@@ -7244,7 +7244,7 @@ var require_BufferList = __commonJS({
|
|
|
7244
7244
|
this.head = this.tail = null;
|
|
7245
7245
|
this.length = 0;
|
|
7246
7246
|
};
|
|
7247
|
-
BufferList.prototype.join = function
|
|
7247
|
+
BufferList.prototype.join = function join8(s) {
|
|
7248
7248
|
if (this.length === 0) return "";
|
|
7249
7249
|
var p2 = this.head;
|
|
7250
7250
|
var ret = "" + p2.data;
|
|
@@ -7276,9 +7276,9 @@ var require_BufferList = __commonJS({
|
|
|
7276
7276
|
}
|
|
7277
7277
|
});
|
|
7278
7278
|
|
|
7279
|
-
// ../../../node_modules
|
|
7279
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
7280
7280
|
var require_destroy = __commonJS({
|
|
7281
|
-
"../../../node_modules
|
|
7281
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
7282
7282
|
"use strict";
|
|
7283
7283
|
var pna = require_process_nextick_args();
|
|
7284
7284
|
function destroy(err, cb) {
|
|
@@ -7345,16 +7345,16 @@ var require_destroy = __commonJS({
|
|
|
7345
7345
|
}
|
|
7346
7346
|
});
|
|
7347
7347
|
|
|
7348
|
-
// ../../../node_modules
|
|
7348
|
+
// ../../../node_modules/util-deprecate/node.js
|
|
7349
7349
|
var require_node = __commonJS({
|
|
7350
|
-
"../../../node_modules
|
|
7350
|
+
"../../../node_modules/util-deprecate/node.js"(exports2, module2) {
|
|
7351
7351
|
module2.exports = require("util").deprecate;
|
|
7352
7352
|
}
|
|
7353
7353
|
});
|
|
7354
7354
|
|
|
7355
|
-
// ../../../node_modules
|
|
7355
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js
|
|
7356
7356
|
var require_stream_writable = __commonJS({
|
|
7357
|
-
"../../../node_modules
|
|
7357
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
|
|
7358
7358
|
"use strict";
|
|
7359
7359
|
var pna = require_process_nextick_args();
|
|
7360
7360
|
module2.exports = Writable;
|
|
@@ -7792,9 +7792,9 @@ var require_stream_writable = __commonJS({
|
|
|
7792
7792
|
}
|
|
7793
7793
|
});
|
|
7794
7794
|
|
|
7795
|
-
// ../../../node_modules
|
|
7795
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js
|
|
7796
7796
|
var require_stream_duplex = __commonJS({
|
|
7797
|
-
"../../../node_modules
|
|
7797
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
|
|
7798
7798
|
"use strict";
|
|
7799
7799
|
var pna = require_process_nextick_args();
|
|
7800
7800
|
var objectKeys = Object.keys || function(obj) {
|
|
@@ -7869,9 +7869,9 @@ var require_stream_duplex = __commonJS({
|
|
|
7869
7869
|
}
|
|
7870
7870
|
});
|
|
7871
7871
|
|
|
7872
|
-
// ../../../node_modules
|
|
7872
|
+
// ../../../node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js
|
|
7873
7873
|
var require_string_decoder = __commonJS({
|
|
7874
|
-
"../../../node_modules
|
|
7874
|
+
"../../../node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
7875
7875
|
"use strict";
|
|
7876
7876
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
7877
7877
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
@@ -8107,9 +8107,9 @@ var require_string_decoder = __commonJS({
|
|
|
8107
8107
|
}
|
|
8108
8108
|
});
|
|
8109
8109
|
|
|
8110
|
-
// ../../../node_modules
|
|
8110
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js
|
|
8111
8111
|
var require_stream_readable = __commonJS({
|
|
8112
|
-
"../../../node_modules
|
|
8112
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
|
|
8113
8113
|
"use strict";
|
|
8114
8114
|
var pna = require_process_nextick_args();
|
|
8115
8115
|
module2.exports = Readable2;
|
|
@@ -8793,9 +8793,9 @@ var require_stream_readable = __commonJS({
|
|
|
8793
8793
|
}
|
|
8794
8794
|
});
|
|
8795
8795
|
|
|
8796
|
-
// ../../../node_modules
|
|
8796
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js
|
|
8797
8797
|
var require_stream_transform = __commonJS({
|
|
8798
|
-
"../../../node_modules
|
|
8798
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
|
|
8799
8799
|
"use strict";
|
|
8800
8800
|
module2.exports = Transform;
|
|
8801
8801
|
var Duplex = require_stream_duplex();
|
|
@@ -8893,9 +8893,9 @@ var require_stream_transform = __commonJS({
|
|
|
8893
8893
|
}
|
|
8894
8894
|
});
|
|
8895
8895
|
|
|
8896
|
-
// ../../../node_modules
|
|
8896
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js
|
|
8897
8897
|
var require_stream_passthrough = __commonJS({
|
|
8898
|
-
"../../../node_modules
|
|
8898
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
|
|
8899
8899
|
"use strict";
|
|
8900
8900
|
module2.exports = PassThrough;
|
|
8901
8901
|
var Transform = require_stream_transform();
|
|
@@ -8912,9 +8912,9 @@ var require_stream_passthrough = __commonJS({
|
|
|
8912
8912
|
}
|
|
8913
8913
|
});
|
|
8914
8914
|
|
|
8915
|
-
// ../../../node_modules
|
|
8915
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/readable.js
|
|
8916
8916
|
var require_readable = __commonJS({
|
|
8917
|
-
"../../../node_modules
|
|
8917
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/readable.js"(exports2, module2) {
|
|
8918
8918
|
var Stream = require("stream");
|
|
8919
8919
|
if (process.env.READABLE_STREAM === "disable" && Stream) {
|
|
8920
8920
|
module2.exports = Stream;
|
|
@@ -8937,16 +8937,16 @@ var require_readable = __commonJS({
|
|
|
8937
8937
|
}
|
|
8938
8938
|
});
|
|
8939
8939
|
|
|
8940
|
-
// ../../../node_modules
|
|
8940
|
+
// ../../../node_modules/lazystream/node_modules/readable-stream/passthrough.js
|
|
8941
8941
|
var require_passthrough = __commonJS({
|
|
8942
|
-
"../../../node_modules
|
|
8942
|
+
"../../../node_modules/lazystream/node_modules/readable-stream/passthrough.js"(exports2, module2) {
|
|
8943
8943
|
module2.exports = require_readable().PassThrough;
|
|
8944
8944
|
}
|
|
8945
8945
|
});
|
|
8946
8946
|
|
|
8947
|
-
// ../../../node_modules
|
|
8947
|
+
// ../../../node_modules/lazystream/lib/lazystream.js
|
|
8948
8948
|
var require_lazystream = __commonJS({
|
|
8949
|
-
"../../../node_modules
|
|
8949
|
+
"../../../node_modules/lazystream/lib/lazystream.js"(exports2, module2) {
|
|
8950
8950
|
var util = require("util");
|
|
8951
8951
|
var PassThrough = require_passthrough();
|
|
8952
8952
|
module2.exports = {
|
|
@@ -8989,9 +8989,9 @@ var require_lazystream = __commonJS({
|
|
|
8989
8989
|
}
|
|
8990
8990
|
});
|
|
8991
8991
|
|
|
8992
|
-
// ../../../node_modules
|
|
8992
|
+
// ../../../node_modules/normalize-path/index.js
|
|
8993
8993
|
var require_normalize_path = __commonJS({
|
|
8994
|
-
"../../../node_modules
|
|
8994
|
+
"../../../node_modules/normalize-path/index.js"(exports2, module2) {
|
|
8995
8995
|
module2.exports = function(path10, stripTrailing) {
|
|
8996
8996
|
if (typeof path10 !== "string") {
|
|
8997
8997
|
throw new TypeError("expected path to be a string");
|
|
@@ -9016,9 +9016,9 @@ var require_normalize_path = __commonJS({
|
|
|
9016
9016
|
}
|
|
9017
9017
|
});
|
|
9018
9018
|
|
|
9019
|
-
// ../../../node_modules
|
|
9019
|
+
// ../../../node_modules/lodash/identity.js
|
|
9020
9020
|
var require_identity = __commonJS({
|
|
9021
|
-
"../../../node_modules
|
|
9021
|
+
"../../../node_modules/lodash/identity.js"(exports2, module2) {
|
|
9022
9022
|
function identity(value) {
|
|
9023
9023
|
return value;
|
|
9024
9024
|
}
|
|
@@ -9026,9 +9026,9 @@ var require_identity = __commonJS({
|
|
|
9026
9026
|
}
|
|
9027
9027
|
});
|
|
9028
9028
|
|
|
9029
|
-
// ../../../node_modules
|
|
9029
|
+
// ../../../node_modules/lodash/_apply.js
|
|
9030
9030
|
var require_apply = __commonJS({
|
|
9031
|
-
"../../../node_modules
|
|
9031
|
+
"../../../node_modules/lodash/_apply.js"(exports2, module2) {
|
|
9032
9032
|
function apply(func, thisArg, args) {
|
|
9033
9033
|
switch (args.length) {
|
|
9034
9034
|
case 0:
|
|
@@ -9046,9 +9046,9 @@ var require_apply = __commonJS({
|
|
|
9046
9046
|
}
|
|
9047
9047
|
});
|
|
9048
9048
|
|
|
9049
|
-
// ../../../node_modules
|
|
9049
|
+
// ../../../node_modules/lodash/_overRest.js
|
|
9050
9050
|
var require_overRest = __commonJS({
|
|
9051
|
-
"../../../node_modules
|
|
9051
|
+
"../../../node_modules/lodash/_overRest.js"(exports2, module2) {
|
|
9052
9052
|
var apply = require_apply();
|
|
9053
9053
|
var nativeMax = Math.max;
|
|
9054
9054
|
function overRest(func, start, transform) {
|
|
@@ -9071,9 +9071,9 @@ var require_overRest = __commonJS({
|
|
|
9071
9071
|
}
|
|
9072
9072
|
});
|
|
9073
9073
|
|
|
9074
|
-
// ../../../node_modules
|
|
9074
|
+
// ../../../node_modules/lodash/constant.js
|
|
9075
9075
|
var require_constant = __commonJS({
|
|
9076
|
-
"../../../node_modules
|
|
9076
|
+
"../../../node_modules/lodash/constant.js"(exports2, module2) {
|
|
9077
9077
|
function constant(value) {
|
|
9078
9078
|
return function() {
|
|
9079
9079
|
return value;
|
|
@@ -9083,17 +9083,17 @@ var require_constant = __commonJS({
|
|
|
9083
9083
|
}
|
|
9084
9084
|
});
|
|
9085
9085
|
|
|
9086
|
-
// ../../../node_modules
|
|
9086
|
+
// ../../../node_modules/lodash/_freeGlobal.js
|
|
9087
9087
|
var require_freeGlobal = __commonJS({
|
|
9088
|
-
"../../../node_modules
|
|
9088
|
+
"../../../node_modules/lodash/_freeGlobal.js"(exports2, module2) {
|
|
9089
9089
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
9090
9090
|
module2.exports = freeGlobal;
|
|
9091
9091
|
}
|
|
9092
9092
|
});
|
|
9093
9093
|
|
|
9094
|
-
// ../../../node_modules
|
|
9094
|
+
// ../../../node_modules/lodash/_root.js
|
|
9095
9095
|
var require_root = __commonJS({
|
|
9096
|
-
"../../../node_modules
|
|
9096
|
+
"../../../node_modules/lodash/_root.js"(exports2, module2) {
|
|
9097
9097
|
var freeGlobal = require_freeGlobal();
|
|
9098
9098
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
9099
9099
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -9101,18 +9101,18 @@ var require_root = __commonJS({
|
|
|
9101
9101
|
}
|
|
9102
9102
|
});
|
|
9103
9103
|
|
|
9104
|
-
// ../../../node_modules
|
|
9104
|
+
// ../../../node_modules/lodash/_Symbol.js
|
|
9105
9105
|
var require_Symbol = __commonJS({
|
|
9106
|
-
"../../../node_modules
|
|
9106
|
+
"../../../node_modules/lodash/_Symbol.js"(exports2, module2) {
|
|
9107
9107
|
var root = require_root();
|
|
9108
9108
|
var Symbol2 = root.Symbol;
|
|
9109
9109
|
module2.exports = Symbol2;
|
|
9110
9110
|
}
|
|
9111
9111
|
});
|
|
9112
9112
|
|
|
9113
|
-
// ../../../node_modules
|
|
9113
|
+
// ../../../node_modules/lodash/_getRawTag.js
|
|
9114
9114
|
var require_getRawTag = __commonJS({
|
|
9115
|
-
"../../../node_modules
|
|
9115
|
+
"../../../node_modules/lodash/_getRawTag.js"(exports2, module2) {
|
|
9116
9116
|
var Symbol2 = require_Symbol();
|
|
9117
9117
|
var objectProto = Object.prototype;
|
|
9118
9118
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -9139,9 +9139,9 @@ var require_getRawTag = __commonJS({
|
|
|
9139
9139
|
}
|
|
9140
9140
|
});
|
|
9141
9141
|
|
|
9142
|
-
// ../../../node_modules
|
|
9142
|
+
// ../../../node_modules/lodash/_objectToString.js
|
|
9143
9143
|
var require_objectToString = __commonJS({
|
|
9144
|
-
"../../../node_modules
|
|
9144
|
+
"../../../node_modules/lodash/_objectToString.js"(exports2, module2) {
|
|
9145
9145
|
var objectProto = Object.prototype;
|
|
9146
9146
|
var nativeObjectToString = objectProto.toString;
|
|
9147
9147
|
function objectToString(value) {
|
|
@@ -9151,9 +9151,9 @@ var require_objectToString = __commonJS({
|
|
|
9151
9151
|
}
|
|
9152
9152
|
});
|
|
9153
9153
|
|
|
9154
|
-
// ../../../node_modules
|
|
9154
|
+
// ../../../node_modules/lodash/_baseGetTag.js
|
|
9155
9155
|
var require_baseGetTag = __commonJS({
|
|
9156
|
-
"../../../node_modules
|
|
9156
|
+
"../../../node_modules/lodash/_baseGetTag.js"(exports2, module2) {
|
|
9157
9157
|
var Symbol2 = require_Symbol();
|
|
9158
9158
|
var getRawTag = require_getRawTag();
|
|
9159
9159
|
var objectToString = require_objectToString();
|
|
@@ -9170,9 +9170,9 @@ var require_baseGetTag = __commonJS({
|
|
|
9170
9170
|
}
|
|
9171
9171
|
});
|
|
9172
9172
|
|
|
9173
|
-
// ../../../node_modules
|
|
9173
|
+
// ../../../node_modules/lodash/isObject.js
|
|
9174
9174
|
var require_isObject = __commonJS({
|
|
9175
|
-
"../../../node_modules
|
|
9175
|
+
"../../../node_modules/lodash/isObject.js"(exports2, module2) {
|
|
9176
9176
|
function isObject2(value) {
|
|
9177
9177
|
var type2 = typeof value;
|
|
9178
9178
|
return value != null && (type2 == "object" || type2 == "function");
|
|
@@ -9181,9 +9181,9 @@ var require_isObject = __commonJS({
|
|
|
9181
9181
|
}
|
|
9182
9182
|
});
|
|
9183
9183
|
|
|
9184
|
-
// ../../../node_modules
|
|
9184
|
+
// ../../../node_modules/lodash/isFunction.js
|
|
9185
9185
|
var require_isFunction = __commonJS({
|
|
9186
|
-
"../../../node_modules
|
|
9186
|
+
"../../../node_modules/lodash/isFunction.js"(exports2, module2) {
|
|
9187
9187
|
var baseGetTag = require_baseGetTag();
|
|
9188
9188
|
var isObject2 = require_isObject();
|
|
9189
9189
|
var asyncTag = "[object AsyncFunction]";
|
|
@@ -9201,18 +9201,18 @@ var require_isFunction = __commonJS({
|
|
|
9201
9201
|
}
|
|
9202
9202
|
});
|
|
9203
9203
|
|
|
9204
|
-
// ../../../node_modules
|
|
9204
|
+
// ../../../node_modules/lodash/_coreJsData.js
|
|
9205
9205
|
var require_coreJsData = __commonJS({
|
|
9206
|
-
"../../../node_modules
|
|
9206
|
+
"../../../node_modules/lodash/_coreJsData.js"(exports2, module2) {
|
|
9207
9207
|
var root = require_root();
|
|
9208
9208
|
var coreJsData = root["__core-js_shared__"];
|
|
9209
9209
|
module2.exports = coreJsData;
|
|
9210
9210
|
}
|
|
9211
9211
|
});
|
|
9212
9212
|
|
|
9213
|
-
// ../../../node_modules
|
|
9213
|
+
// ../../../node_modules/lodash/_isMasked.js
|
|
9214
9214
|
var require_isMasked = __commonJS({
|
|
9215
|
-
"../../../node_modules
|
|
9215
|
+
"../../../node_modules/lodash/_isMasked.js"(exports2, module2) {
|
|
9216
9216
|
var coreJsData = require_coreJsData();
|
|
9217
9217
|
var maskSrcKey = (function() {
|
|
9218
9218
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -9225,9 +9225,9 @@ var require_isMasked = __commonJS({
|
|
|
9225
9225
|
}
|
|
9226
9226
|
});
|
|
9227
9227
|
|
|
9228
|
-
// ../../../node_modules
|
|
9228
|
+
// ../../../node_modules/lodash/_toSource.js
|
|
9229
9229
|
var require_toSource = __commonJS({
|
|
9230
|
-
"../../../node_modules
|
|
9230
|
+
"../../../node_modules/lodash/_toSource.js"(exports2, module2) {
|
|
9231
9231
|
var funcProto = Function.prototype;
|
|
9232
9232
|
var funcToString = funcProto.toString;
|
|
9233
9233
|
function toSource(func) {
|
|
@@ -9247,9 +9247,9 @@ var require_toSource = __commonJS({
|
|
|
9247
9247
|
}
|
|
9248
9248
|
});
|
|
9249
9249
|
|
|
9250
|
-
// ../../../node_modules
|
|
9250
|
+
// ../../../node_modules/lodash/_baseIsNative.js
|
|
9251
9251
|
var require_baseIsNative = __commonJS({
|
|
9252
|
-
"../../../node_modules
|
|
9252
|
+
"../../../node_modules/lodash/_baseIsNative.js"(exports2, module2) {
|
|
9253
9253
|
var isFunction = require_isFunction();
|
|
9254
9254
|
var isMasked = require_isMasked();
|
|
9255
9255
|
var isObject2 = require_isObject();
|
|
@@ -9274,9 +9274,9 @@ var require_baseIsNative = __commonJS({
|
|
|
9274
9274
|
}
|
|
9275
9275
|
});
|
|
9276
9276
|
|
|
9277
|
-
// ../../../node_modules
|
|
9277
|
+
// ../../../node_modules/lodash/_getValue.js
|
|
9278
9278
|
var require_getValue = __commonJS({
|
|
9279
|
-
"../../../node_modules
|
|
9279
|
+
"../../../node_modules/lodash/_getValue.js"(exports2, module2) {
|
|
9280
9280
|
function getValue(object, key) {
|
|
9281
9281
|
return object == null ? void 0 : object[key];
|
|
9282
9282
|
}
|
|
@@ -9284,9 +9284,9 @@ var require_getValue = __commonJS({
|
|
|
9284
9284
|
}
|
|
9285
9285
|
});
|
|
9286
9286
|
|
|
9287
|
-
// ../../../node_modules
|
|
9287
|
+
// ../../../node_modules/lodash/_getNative.js
|
|
9288
9288
|
var require_getNative = __commonJS({
|
|
9289
|
-
"../../../node_modules
|
|
9289
|
+
"../../../node_modules/lodash/_getNative.js"(exports2, module2) {
|
|
9290
9290
|
var baseIsNative = require_baseIsNative();
|
|
9291
9291
|
var getValue = require_getValue();
|
|
9292
9292
|
function getNative(object, key) {
|
|
@@ -9297,9 +9297,9 @@ var require_getNative = __commonJS({
|
|
|
9297
9297
|
}
|
|
9298
9298
|
});
|
|
9299
9299
|
|
|
9300
|
-
// ../../../node_modules
|
|
9300
|
+
// ../../../node_modules/lodash/_defineProperty.js
|
|
9301
9301
|
var require_defineProperty = __commonJS({
|
|
9302
|
-
"../../../node_modules
|
|
9302
|
+
"../../../node_modules/lodash/_defineProperty.js"(exports2, module2) {
|
|
9303
9303
|
var getNative = require_getNative();
|
|
9304
9304
|
var defineProperty = (function() {
|
|
9305
9305
|
try {
|
|
@@ -9313,9 +9313,9 @@ var require_defineProperty = __commonJS({
|
|
|
9313
9313
|
}
|
|
9314
9314
|
});
|
|
9315
9315
|
|
|
9316
|
-
// ../../../node_modules
|
|
9316
|
+
// ../../../node_modules/lodash/_baseSetToString.js
|
|
9317
9317
|
var require_baseSetToString = __commonJS({
|
|
9318
|
-
"../../../node_modules
|
|
9318
|
+
"../../../node_modules/lodash/_baseSetToString.js"(exports2, module2) {
|
|
9319
9319
|
var constant = require_constant();
|
|
9320
9320
|
var defineProperty = require_defineProperty();
|
|
9321
9321
|
var identity = require_identity();
|
|
@@ -9331,9 +9331,9 @@ var require_baseSetToString = __commonJS({
|
|
|
9331
9331
|
}
|
|
9332
9332
|
});
|
|
9333
9333
|
|
|
9334
|
-
// ../../../node_modules
|
|
9334
|
+
// ../../../node_modules/lodash/_shortOut.js
|
|
9335
9335
|
var require_shortOut = __commonJS({
|
|
9336
|
-
"../../../node_modules
|
|
9336
|
+
"../../../node_modules/lodash/_shortOut.js"(exports2, module2) {
|
|
9337
9337
|
var HOT_COUNT = 800;
|
|
9338
9338
|
var HOT_SPAN = 16;
|
|
9339
9339
|
var nativeNow = Date.now;
|
|
@@ -9356,9 +9356,9 @@ var require_shortOut = __commonJS({
|
|
|
9356
9356
|
}
|
|
9357
9357
|
});
|
|
9358
9358
|
|
|
9359
|
-
// ../../../node_modules
|
|
9359
|
+
// ../../../node_modules/lodash/_setToString.js
|
|
9360
9360
|
var require_setToString = __commonJS({
|
|
9361
|
-
"../../../node_modules
|
|
9361
|
+
"../../../node_modules/lodash/_setToString.js"(exports2, module2) {
|
|
9362
9362
|
var baseSetToString = require_baseSetToString();
|
|
9363
9363
|
var shortOut = require_shortOut();
|
|
9364
9364
|
var setToString = shortOut(baseSetToString);
|
|
@@ -9366,9 +9366,9 @@ var require_setToString = __commonJS({
|
|
|
9366
9366
|
}
|
|
9367
9367
|
});
|
|
9368
9368
|
|
|
9369
|
-
// ../../../node_modules
|
|
9369
|
+
// ../../../node_modules/lodash/_baseRest.js
|
|
9370
9370
|
var require_baseRest = __commonJS({
|
|
9371
|
-
"../../../node_modules
|
|
9371
|
+
"../../../node_modules/lodash/_baseRest.js"(exports2, module2) {
|
|
9372
9372
|
var identity = require_identity();
|
|
9373
9373
|
var overRest = require_overRest();
|
|
9374
9374
|
var setToString = require_setToString();
|
|
@@ -9379,9 +9379,9 @@ var require_baseRest = __commonJS({
|
|
|
9379
9379
|
}
|
|
9380
9380
|
});
|
|
9381
9381
|
|
|
9382
|
-
// ../../../node_modules
|
|
9382
|
+
// ../../../node_modules/lodash/eq.js
|
|
9383
9383
|
var require_eq = __commonJS({
|
|
9384
|
-
"../../../node_modules
|
|
9384
|
+
"../../../node_modules/lodash/eq.js"(exports2, module2) {
|
|
9385
9385
|
function eq(value, other) {
|
|
9386
9386
|
return value === other || value !== value && other !== other;
|
|
9387
9387
|
}
|
|
@@ -9389,9 +9389,9 @@ var require_eq = __commonJS({
|
|
|
9389
9389
|
}
|
|
9390
9390
|
});
|
|
9391
9391
|
|
|
9392
|
-
// ../../../node_modules
|
|
9392
|
+
// ../../../node_modules/lodash/isLength.js
|
|
9393
9393
|
var require_isLength = __commonJS({
|
|
9394
|
-
"../../../node_modules
|
|
9394
|
+
"../../../node_modules/lodash/isLength.js"(exports2, module2) {
|
|
9395
9395
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
9396
9396
|
function isLength(value) {
|
|
9397
9397
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
@@ -9400,9 +9400,9 @@ var require_isLength = __commonJS({
|
|
|
9400
9400
|
}
|
|
9401
9401
|
});
|
|
9402
9402
|
|
|
9403
|
-
// ../../../node_modules
|
|
9403
|
+
// ../../../node_modules/lodash/isArrayLike.js
|
|
9404
9404
|
var require_isArrayLike = __commonJS({
|
|
9405
|
-
"../../../node_modules
|
|
9405
|
+
"../../../node_modules/lodash/isArrayLike.js"(exports2, module2) {
|
|
9406
9406
|
var isFunction = require_isFunction();
|
|
9407
9407
|
var isLength = require_isLength();
|
|
9408
9408
|
function isArrayLike(value) {
|
|
@@ -9412,9 +9412,9 @@ var require_isArrayLike = __commonJS({
|
|
|
9412
9412
|
}
|
|
9413
9413
|
});
|
|
9414
9414
|
|
|
9415
|
-
// ../../../node_modules
|
|
9415
|
+
// ../../../node_modules/lodash/_isIndex.js
|
|
9416
9416
|
var require_isIndex = __commonJS({
|
|
9417
|
-
"../../../node_modules
|
|
9417
|
+
"../../../node_modules/lodash/_isIndex.js"(exports2, module2) {
|
|
9418
9418
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
9419
9419
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
9420
9420
|
function isIndex(value, length) {
|
|
@@ -9426,9 +9426,9 @@ var require_isIndex = __commonJS({
|
|
|
9426
9426
|
}
|
|
9427
9427
|
});
|
|
9428
9428
|
|
|
9429
|
-
// ../../../node_modules
|
|
9429
|
+
// ../../../node_modules/lodash/_isIterateeCall.js
|
|
9430
9430
|
var require_isIterateeCall = __commonJS({
|
|
9431
|
-
"../../../node_modules
|
|
9431
|
+
"../../../node_modules/lodash/_isIterateeCall.js"(exports2, module2) {
|
|
9432
9432
|
var eq = require_eq();
|
|
9433
9433
|
var isArrayLike = require_isArrayLike();
|
|
9434
9434
|
var isIndex = require_isIndex();
|
|
@@ -9447,9 +9447,9 @@ var require_isIterateeCall = __commonJS({
|
|
|
9447
9447
|
}
|
|
9448
9448
|
});
|
|
9449
9449
|
|
|
9450
|
-
// ../../../node_modules
|
|
9450
|
+
// ../../../node_modules/lodash/_baseTimes.js
|
|
9451
9451
|
var require_baseTimes = __commonJS({
|
|
9452
|
-
"../../../node_modules
|
|
9452
|
+
"../../../node_modules/lodash/_baseTimes.js"(exports2, module2) {
|
|
9453
9453
|
function baseTimes(n, iteratee) {
|
|
9454
9454
|
var index = -1, result = Array(n);
|
|
9455
9455
|
while (++index < n) {
|
|
@@ -9461,9 +9461,9 @@ var require_baseTimes = __commonJS({
|
|
|
9461
9461
|
}
|
|
9462
9462
|
});
|
|
9463
9463
|
|
|
9464
|
-
// ../../../node_modules
|
|
9464
|
+
// ../../../node_modules/lodash/isObjectLike.js
|
|
9465
9465
|
var require_isObjectLike = __commonJS({
|
|
9466
|
-
"../../../node_modules
|
|
9466
|
+
"../../../node_modules/lodash/isObjectLike.js"(exports2, module2) {
|
|
9467
9467
|
function isObjectLike(value) {
|
|
9468
9468
|
return value != null && typeof value == "object";
|
|
9469
9469
|
}
|
|
@@ -9471,9 +9471,9 @@ var require_isObjectLike = __commonJS({
|
|
|
9471
9471
|
}
|
|
9472
9472
|
});
|
|
9473
9473
|
|
|
9474
|
-
// ../../../node_modules
|
|
9474
|
+
// ../../../node_modules/lodash/_baseIsArguments.js
|
|
9475
9475
|
var require_baseIsArguments = __commonJS({
|
|
9476
|
-
"../../../node_modules
|
|
9476
|
+
"../../../node_modules/lodash/_baseIsArguments.js"(exports2, module2) {
|
|
9477
9477
|
var baseGetTag = require_baseGetTag();
|
|
9478
9478
|
var isObjectLike = require_isObjectLike();
|
|
9479
9479
|
var argsTag = "[object Arguments]";
|
|
@@ -9484,9 +9484,9 @@ var require_baseIsArguments = __commonJS({
|
|
|
9484
9484
|
}
|
|
9485
9485
|
});
|
|
9486
9486
|
|
|
9487
|
-
// ../../../node_modules
|
|
9487
|
+
// ../../../node_modules/lodash/isArguments.js
|
|
9488
9488
|
var require_isArguments = __commonJS({
|
|
9489
|
-
"../../../node_modules
|
|
9489
|
+
"../../../node_modules/lodash/isArguments.js"(exports2, module2) {
|
|
9490
9490
|
var baseIsArguments = require_baseIsArguments();
|
|
9491
9491
|
var isObjectLike = require_isObjectLike();
|
|
9492
9492
|
var objectProto = Object.prototype;
|
|
@@ -9501,17 +9501,17 @@ var require_isArguments = __commonJS({
|
|
|
9501
9501
|
}
|
|
9502
9502
|
});
|
|
9503
9503
|
|
|
9504
|
-
// ../../../node_modules
|
|
9504
|
+
// ../../../node_modules/lodash/isArray.js
|
|
9505
9505
|
var require_isArray = __commonJS({
|
|
9506
|
-
"../../../node_modules
|
|
9506
|
+
"../../../node_modules/lodash/isArray.js"(exports2, module2) {
|
|
9507
9507
|
var isArray = Array.isArray;
|
|
9508
9508
|
module2.exports = isArray;
|
|
9509
9509
|
}
|
|
9510
9510
|
});
|
|
9511
9511
|
|
|
9512
|
-
// ../../../node_modules
|
|
9512
|
+
// ../../../node_modules/lodash/stubFalse.js
|
|
9513
9513
|
var require_stubFalse = __commonJS({
|
|
9514
|
-
"../../../node_modules
|
|
9514
|
+
"../../../node_modules/lodash/stubFalse.js"(exports2, module2) {
|
|
9515
9515
|
function stubFalse() {
|
|
9516
9516
|
return false;
|
|
9517
9517
|
}
|
|
@@ -9519,9 +9519,9 @@ var require_stubFalse = __commonJS({
|
|
|
9519
9519
|
}
|
|
9520
9520
|
});
|
|
9521
9521
|
|
|
9522
|
-
// ../../../node_modules
|
|
9522
|
+
// ../../../node_modules/lodash/isBuffer.js
|
|
9523
9523
|
var require_isBuffer = __commonJS({
|
|
9524
|
-
"../../../node_modules
|
|
9524
|
+
"../../../node_modules/lodash/isBuffer.js"(exports2, module2) {
|
|
9525
9525
|
var root = require_root();
|
|
9526
9526
|
var stubFalse = require_stubFalse();
|
|
9527
9527
|
var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
@@ -9534,9 +9534,9 @@ var require_isBuffer = __commonJS({
|
|
|
9534
9534
|
}
|
|
9535
9535
|
});
|
|
9536
9536
|
|
|
9537
|
-
// ../../../node_modules
|
|
9537
|
+
// ../../../node_modules/lodash/_baseIsTypedArray.js
|
|
9538
9538
|
var require_baseIsTypedArray = __commonJS({
|
|
9539
|
-
"../../../node_modules
|
|
9539
|
+
"../../../node_modules/lodash/_baseIsTypedArray.js"(exports2, module2) {
|
|
9540
9540
|
var baseGetTag = require_baseGetTag();
|
|
9541
9541
|
var isLength = require_isLength();
|
|
9542
9542
|
var isObjectLike = require_isObjectLike();
|
|
@@ -9574,9 +9574,9 @@ var require_baseIsTypedArray = __commonJS({
|
|
|
9574
9574
|
}
|
|
9575
9575
|
});
|
|
9576
9576
|
|
|
9577
|
-
// ../../../node_modules
|
|
9577
|
+
// ../../../node_modules/lodash/_baseUnary.js
|
|
9578
9578
|
var require_baseUnary = __commonJS({
|
|
9579
|
-
"../../../node_modules
|
|
9579
|
+
"../../../node_modules/lodash/_baseUnary.js"(exports2, module2) {
|
|
9580
9580
|
function baseUnary(func) {
|
|
9581
9581
|
return function(value) {
|
|
9582
9582
|
return func(value);
|
|
@@ -9586,9 +9586,9 @@ var require_baseUnary = __commonJS({
|
|
|
9586
9586
|
}
|
|
9587
9587
|
});
|
|
9588
9588
|
|
|
9589
|
-
// ../../../node_modules
|
|
9589
|
+
// ../../../node_modules/lodash/_nodeUtil.js
|
|
9590
9590
|
var require_nodeUtil = __commonJS({
|
|
9591
|
-
"../../../node_modules
|
|
9591
|
+
"../../../node_modules/lodash/_nodeUtil.js"(exports2, module2) {
|
|
9592
9592
|
var freeGlobal = require_freeGlobal();
|
|
9593
9593
|
var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
9594
9594
|
var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
|
|
@@ -9608,9 +9608,9 @@ var require_nodeUtil = __commonJS({
|
|
|
9608
9608
|
}
|
|
9609
9609
|
});
|
|
9610
9610
|
|
|
9611
|
-
// ../../../node_modules
|
|
9611
|
+
// ../../../node_modules/lodash/isTypedArray.js
|
|
9612
9612
|
var require_isTypedArray = __commonJS({
|
|
9613
|
-
"../../../node_modules
|
|
9613
|
+
"../../../node_modules/lodash/isTypedArray.js"(exports2, module2) {
|
|
9614
9614
|
var baseIsTypedArray = require_baseIsTypedArray();
|
|
9615
9615
|
var baseUnary = require_baseUnary();
|
|
9616
9616
|
var nodeUtil = require_nodeUtil();
|
|
@@ -9620,9 +9620,9 @@ var require_isTypedArray = __commonJS({
|
|
|
9620
9620
|
}
|
|
9621
9621
|
});
|
|
9622
9622
|
|
|
9623
|
-
// ../../../node_modules
|
|
9623
|
+
// ../../../node_modules/lodash/_arrayLikeKeys.js
|
|
9624
9624
|
var require_arrayLikeKeys = __commonJS({
|
|
9625
|
-
"../../../node_modules
|
|
9625
|
+
"../../../node_modules/lodash/_arrayLikeKeys.js"(exports2, module2) {
|
|
9626
9626
|
var baseTimes = require_baseTimes();
|
|
9627
9627
|
var isArguments = require_isArguments();
|
|
9628
9628
|
var isArray = require_isArray();
|
|
@@ -9648,9 +9648,9 @@ var require_arrayLikeKeys = __commonJS({
|
|
|
9648
9648
|
}
|
|
9649
9649
|
});
|
|
9650
9650
|
|
|
9651
|
-
// ../../../node_modules
|
|
9651
|
+
// ../../../node_modules/lodash/_isPrototype.js
|
|
9652
9652
|
var require_isPrototype = __commonJS({
|
|
9653
|
-
"../../../node_modules
|
|
9653
|
+
"../../../node_modules/lodash/_isPrototype.js"(exports2, module2) {
|
|
9654
9654
|
var objectProto = Object.prototype;
|
|
9655
9655
|
function isPrototype(value) {
|
|
9656
9656
|
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
@@ -9660,9 +9660,9 @@ var require_isPrototype = __commonJS({
|
|
|
9660
9660
|
}
|
|
9661
9661
|
});
|
|
9662
9662
|
|
|
9663
|
-
// ../../../node_modules
|
|
9663
|
+
// ../../../node_modules/lodash/_nativeKeysIn.js
|
|
9664
9664
|
var require_nativeKeysIn = __commonJS({
|
|
9665
|
-
"../../../node_modules
|
|
9665
|
+
"../../../node_modules/lodash/_nativeKeysIn.js"(exports2, module2) {
|
|
9666
9666
|
function nativeKeysIn(object) {
|
|
9667
9667
|
var result = [];
|
|
9668
9668
|
if (object != null) {
|
|
@@ -9676,9 +9676,9 @@ var require_nativeKeysIn = __commonJS({
|
|
|
9676
9676
|
}
|
|
9677
9677
|
});
|
|
9678
9678
|
|
|
9679
|
-
// ../../../node_modules
|
|
9679
|
+
// ../../../node_modules/lodash/_baseKeysIn.js
|
|
9680
9680
|
var require_baseKeysIn = __commonJS({
|
|
9681
|
-
"../../../node_modules
|
|
9681
|
+
"../../../node_modules/lodash/_baseKeysIn.js"(exports2, module2) {
|
|
9682
9682
|
var isObject2 = require_isObject();
|
|
9683
9683
|
var isPrototype = require_isPrototype();
|
|
9684
9684
|
var nativeKeysIn = require_nativeKeysIn();
|
|
@@ -9700,9 +9700,9 @@ var require_baseKeysIn = __commonJS({
|
|
|
9700
9700
|
}
|
|
9701
9701
|
});
|
|
9702
9702
|
|
|
9703
|
-
// ../../../node_modules
|
|
9703
|
+
// ../../../node_modules/lodash/keysIn.js
|
|
9704
9704
|
var require_keysIn = __commonJS({
|
|
9705
|
-
"../../../node_modules
|
|
9705
|
+
"../../../node_modules/lodash/keysIn.js"(exports2, module2) {
|
|
9706
9706
|
var arrayLikeKeys = require_arrayLikeKeys();
|
|
9707
9707
|
var baseKeysIn = require_baseKeysIn();
|
|
9708
9708
|
var isArrayLike = require_isArrayLike();
|
|
@@ -9713,9 +9713,9 @@ var require_keysIn = __commonJS({
|
|
|
9713
9713
|
}
|
|
9714
9714
|
});
|
|
9715
9715
|
|
|
9716
|
-
// ../../../node_modules
|
|
9716
|
+
// ../../../node_modules/lodash/defaults.js
|
|
9717
9717
|
var require_defaults = __commonJS({
|
|
9718
|
-
"../../../node_modules
|
|
9718
|
+
"../../../node_modules/lodash/defaults.js"(exports2, module2) {
|
|
9719
9719
|
var baseRest = require_baseRest();
|
|
9720
9720
|
var eq = require_eq();
|
|
9721
9721
|
var isIterateeCall = require_isIterateeCall();
|
|
@@ -9749,9 +9749,9 @@ var require_defaults = __commonJS({
|
|
|
9749
9749
|
}
|
|
9750
9750
|
});
|
|
9751
9751
|
|
|
9752
|
-
// ../../../node_modules
|
|
9752
|
+
// ../../../node_modules/readable-stream/lib/ours/primordials.js
|
|
9753
9753
|
var require_primordials = __commonJS({
|
|
9754
|
-
"../../../node_modules
|
|
9754
|
+
"../../../node_modules/readable-stream/lib/ours/primordials.js"(exports2, module2) {
|
|
9755
9755
|
"use strict";
|
|
9756
9756
|
var AggregateError = class extends Error {
|
|
9757
9757
|
constructor(errors) {
|
|
@@ -9870,9 +9870,9 @@ var require_primordials = __commonJS({
|
|
|
9870
9870
|
}
|
|
9871
9871
|
});
|
|
9872
9872
|
|
|
9873
|
-
// ../../../node_modules
|
|
9873
|
+
// ../../../node_modules/readable-stream/lib/ours/util/inspect.js
|
|
9874
9874
|
var require_inspect = __commonJS({
|
|
9875
|
-
"../../../node_modules
|
|
9875
|
+
"../../../node_modules/readable-stream/lib/ours/util/inspect.js"(exports2, module2) {
|
|
9876
9876
|
"use strict";
|
|
9877
9877
|
module2.exports = {
|
|
9878
9878
|
format(format, ...args) {
|
|
@@ -9921,9 +9921,9 @@ var require_inspect = __commonJS({
|
|
|
9921
9921
|
}
|
|
9922
9922
|
});
|
|
9923
9923
|
|
|
9924
|
-
// ../../../node_modules
|
|
9924
|
+
// ../../../node_modules/readable-stream/lib/ours/errors.js
|
|
9925
9925
|
var require_errors = __commonJS({
|
|
9926
|
-
"../../../node_modules
|
|
9926
|
+
"../../../node_modules/readable-stream/lib/ours/errors.js"(exports2, module2) {
|
|
9927
9927
|
"use strict";
|
|
9928
9928
|
var { format, inspect } = require_inspect();
|
|
9929
9929
|
var { AggregateError: CustomAggregateError } = require_primordials();
|
|
@@ -10239,9 +10239,9 @@ var require_errors = __commonJS({
|
|
|
10239
10239
|
}
|
|
10240
10240
|
});
|
|
10241
10241
|
|
|
10242
|
-
// ../../../node_modules
|
|
10242
|
+
// ../../../node_modules/event-target-shim/dist/event-target-shim.js
|
|
10243
10243
|
var require_event_target_shim = __commonJS({
|
|
10244
|
-
"../../../node_modules
|
|
10244
|
+
"../../../node_modules/event-target-shim/dist/event-target-shim.js"(exports2, module2) {
|
|
10245
10245
|
"use strict";
|
|
10246
10246
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10247
10247
|
var privateData = /* @__PURE__ */ new WeakMap();
|
|
@@ -10811,9 +10811,9 @@ var require_event_target_shim = __commonJS({
|
|
|
10811
10811
|
}
|
|
10812
10812
|
});
|
|
10813
10813
|
|
|
10814
|
-
// ../../../node_modules
|
|
10814
|
+
// ../../../node_modules/abort-controller/dist/abort-controller.js
|
|
10815
10815
|
var require_abort_controller = __commonJS({
|
|
10816
|
-
"../../../node_modules
|
|
10816
|
+
"../../../node_modules/abort-controller/dist/abort-controller.js"(exports2, module2) {
|
|
10817
10817
|
"use strict";
|
|
10818
10818
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10819
10819
|
var eventTargetShim = require_event_target_shim();
|
|
@@ -10907,9 +10907,9 @@ var require_abort_controller = __commonJS({
|
|
|
10907
10907
|
}
|
|
10908
10908
|
});
|
|
10909
10909
|
|
|
10910
|
-
// ../../../node_modules
|
|
10910
|
+
// ../../../node_modules/readable-stream/lib/ours/util.js
|
|
10911
10911
|
var require_util2 = __commonJS({
|
|
10912
|
-
"../../../node_modules
|
|
10912
|
+
"../../../node_modules/readable-stream/lib/ours/util.js"(exports2, module2) {
|
|
10913
10913
|
"use strict";
|
|
10914
10914
|
var bufferModule = require("buffer");
|
|
10915
10915
|
var { format, inspect } = require_inspect();
|
|
@@ -11046,9 +11046,9 @@ var require_util2 = __commonJS({
|
|
|
11046
11046
|
}
|
|
11047
11047
|
});
|
|
11048
11048
|
|
|
11049
|
-
// ../../../node_modules
|
|
11049
|
+
// ../../../node_modules/readable-stream/lib/internal/validators.js
|
|
11050
11050
|
var require_validators = __commonJS({
|
|
11051
|
-
"../../../node_modules
|
|
11051
|
+
"../../../node_modules/readable-stream/lib/internal/validators.js"(exports2, module2) {
|
|
11052
11052
|
"use strict";
|
|
11053
11053
|
var {
|
|
11054
11054
|
ArrayIsArray,
|
|
@@ -11310,16 +11310,16 @@ var require_validators = __commonJS({
|
|
|
11310
11310
|
}
|
|
11311
11311
|
});
|
|
11312
11312
|
|
|
11313
|
-
// ../../../node_modules
|
|
11313
|
+
// ../../../node_modules/process/index.js
|
|
11314
11314
|
var require_process = __commonJS({
|
|
11315
|
-
"../../../node_modules
|
|
11315
|
+
"../../../node_modules/process/index.js"(exports2, module2) {
|
|
11316
11316
|
module2.exports = global.process;
|
|
11317
11317
|
}
|
|
11318
11318
|
});
|
|
11319
11319
|
|
|
11320
|
-
// ../../../node_modules
|
|
11320
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/utils.js
|
|
11321
11321
|
var require_utils = __commonJS({
|
|
11322
|
-
"../../../node_modules
|
|
11322
|
+
"../../../node_modules/readable-stream/lib/internal/streams/utils.js"(exports2, module2) {
|
|
11323
11323
|
"use strict";
|
|
11324
11324
|
var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials();
|
|
11325
11325
|
var kIsDestroyed = SymbolFor("nodejs.stream.destroyed");
|
|
@@ -11526,9 +11526,9 @@ var require_utils = __commonJS({
|
|
|
11526
11526
|
}
|
|
11527
11527
|
});
|
|
11528
11528
|
|
|
11529
|
-
// ../../../node_modules
|
|
11529
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
11530
11530
|
var require_end_of_stream = __commonJS({
|
|
11531
|
-
"../../../node_modules
|
|
11531
|
+
"../../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
|
|
11532
11532
|
"use strict";
|
|
11533
11533
|
var process2 = require_process();
|
|
11534
11534
|
var { AbortError, codes } = require_errors();
|
|
@@ -11778,9 +11778,9 @@ var require_end_of_stream = __commonJS({
|
|
|
11778
11778
|
}
|
|
11779
11779
|
});
|
|
11780
11780
|
|
|
11781
|
-
// ../../../node_modules
|
|
11781
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
11782
11782
|
var require_destroy2 = __commonJS({
|
|
11783
|
-
"../../../node_modules
|
|
11783
|
+
"../../../node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
11784
11784
|
"use strict";
|
|
11785
11785
|
var process2 = require_process();
|
|
11786
11786
|
var {
|
|
@@ -12043,9 +12043,9 @@ var require_destroy2 = __commonJS({
|
|
|
12043
12043
|
}
|
|
12044
12044
|
});
|
|
12045
12045
|
|
|
12046
|
-
// ../../../node_modules
|
|
12046
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/legacy.js
|
|
12047
12047
|
var require_legacy = __commonJS({
|
|
12048
|
-
"../../../node_modules
|
|
12048
|
+
"../../../node_modules/readable-stream/lib/internal/streams/legacy.js"(exports2, module2) {
|
|
12049
12049
|
"use strict";
|
|
12050
12050
|
var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials();
|
|
12051
12051
|
var { EventEmitter: EE } = require("events");
|
|
@@ -12121,9 +12121,9 @@ var require_legacy = __commonJS({
|
|
|
12121
12121
|
}
|
|
12122
12122
|
});
|
|
12123
12123
|
|
|
12124
|
-
// ../../../node_modules
|
|
12124
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/add-abort-signal.js
|
|
12125
12125
|
var require_add_abort_signal = __commonJS({
|
|
12126
|
-
"../../../node_modules
|
|
12126
|
+
"../../../node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(exports2, module2) {
|
|
12127
12127
|
"use strict";
|
|
12128
12128
|
var { SymbolDispose } = require_primordials();
|
|
12129
12129
|
var { AbortError, codes } = require_errors();
|
|
@@ -12172,9 +12172,9 @@ var require_add_abort_signal = __commonJS({
|
|
|
12172
12172
|
}
|
|
12173
12173
|
});
|
|
12174
12174
|
|
|
12175
|
-
// ../../../node_modules
|
|
12175
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
12176
12176
|
var require_buffer_list = __commonJS({
|
|
12177
|
-
"../../../node_modules
|
|
12177
|
+
"../../../node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
|
|
12178
12178
|
"use strict";
|
|
12179
12179
|
var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials();
|
|
12180
12180
|
var { Buffer: Buffer2 } = require("buffer");
|
|
@@ -12327,9 +12327,9 @@ var require_buffer_list = __commonJS({
|
|
|
12327
12327
|
}
|
|
12328
12328
|
});
|
|
12329
12329
|
|
|
12330
|
-
// ../../../node_modules
|
|
12330
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/state.js
|
|
12331
12331
|
var require_state = __commonJS({
|
|
12332
|
-
"../../../node_modules
|
|
12332
|
+
"../../../node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
|
|
12333
12333
|
"use strict";
|
|
12334
12334
|
var { MathFloor, NumberIsInteger } = require_primordials();
|
|
12335
12335
|
var { validateInteger } = require_validators();
|
|
@@ -12369,9 +12369,9 @@ var require_state = __commonJS({
|
|
|
12369
12369
|
}
|
|
12370
12370
|
});
|
|
12371
12371
|
|
|
12372
|
-
// ../../../node_modules
|
|
12372
|
+
// ../../../node_modules/safe-buffer/index.js
|
|
12373
12373
|
var require_safe_buffer2 = __commonJS({
|
|
12374
|
-
"../../../node_modules
|
|
12374
|
+
"../../../node_modules/safe-buffer/index.js"(exports2, module2) {
|
|
12375
12375
|
var buffer = require("buffer");
|
|
12376
12376
|
var Buffer2 = buffer.Buffer;
|
|
12377
12377
|
function copyProps(src, dst) {
|
|
@@ -12427,9 +12427,9 @@ var require_safe_buffer2 = __commonJS({
|
|
|
12427
12427
|
}
|
|
12428
12428
|
});
|
|
12429
12429
|
|
|
12430
|
-
// ../../../node_modules
|
|
12430
|
+
// ../../../node_modules/string_decoder/lib/string_decoder.js
|
|
12431
12431
|
var require_string_decoder2 = __commonJS({
|
|
12432
|
-
"../../../node_modules
|
|
12432
|
+
"../../../node_modules/string_decoder/lib/string_decoder.js"(exports2) {
|
|
12433
12433
|
"use strict";
|
|
12434
12434
|
var Buffer2 = require_safe_buffer2().Buffer;
|
|
12435
12435
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
@@ -12665,9 +12665,9 @@ var require_string_decoder2 = __commonJS({
|
|
|
12665
12665
|
}
|
|
12666
12666
|
});
|
|
12667
12667
|
|
|
12668
|
-
// ../../../node_modules
|
|
12668
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/from.js
|
|
12669
12669
|
var require_from = __commonJS({
|
|
12670
|
-
"../../../node_modules
|
|
12670
|
+
"../../../node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
12671
12671
|
"use strict";
|
|
12672
12672
|
var process2 = require_process();
|
|
12673
12673
|
var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
|
|
@@ -12760,9 +12760,9 @@ var require_from = __commonJS({
|
|
|
12760
12760
|
}
|
|
12761
12761
|
});
|
|
12762
12762
|
|
|
12763
|
-
// ../../../node_modules
|
|
12763
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/readable.js
|
|
12764
12764
|
var require_readable2 = __commonJS({
|
|
12765
|
-
"../../../node_modules
|
|
12765
|
+
"../../../node_modules/readable-stream/lib/internal/streams/readable.js"(exports2, module2) {
|
|
12766
12766
|
"use strict";
|
|
12767
12767
|
var process2 = require_process();
|
|
12768
12768
|
var {
|
|
@@ -13726,9 +13726,9 @@ var require_readable2 = __commonJS({
|
|
|
13726
13726
|
}
|
|
13727
13727
|
});
|
|
13728
13728
|
|
|
13729
|
-
// ../../../node_modules
|
|
13729
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/writable.js
|
|
13730
13730
|
var require_writable = __commonJS({
|
|
13731
|
-
"../../../node_modules
|
|
13731
|
+
"../../../node_modules/readable-stream/lib/internal/streams/writable.js"(exports2, module2) {
|
|
13732
13732
|
"use strict";
|
|
13733
13733
|
var process2 = require_process();
|
|
13734
13734
|
var {
|
|
@@ -14347,9 +14347,9 @@ var require_writable = __commonJS({
|
|
|
14347
14347
|
}
|
|
14348
14348
|
});
|
|
14349
14349
|
|
|
14350
|
-
// ../../../node_modules
|
|
14350
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/duplexify.js
|
|
14351
14351
|
var require_duplexify = __commonJS({
|
|
14352
|
-
"../../../node_modules
|
|
14352
|
+
"../../../node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports2, module2) {
|
|
14353
14353
|
var process2 = require_process();
|
|
14354
14354
|
var bufferModule = require("buffer");
|
|
14355
14355
|
var {
|
|
@@ -14694,9 +14694,9 @@ var require_duplexify = __commonJS({
|
|
|
14694
14694
|
}
|
|
14695
14695
|
});
|
|
14696
14696
|
|
|
14697
|
-
// ../../../node_modules
|
|
14697
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/duplex.js
|
|
14698
14698
|
var require_duplex = __commonJS({
|
|
14699
|
-
"../../../node_modules
|
|
14699
|
+
"../../../node_modules/readable-stream/lib/internal/streams/duplex.js"(exports2, module2) {
|
|
14700
14700
|
"use strict";
|
|
14701
14701
|
var {
|
|
14702
14702
|
ObjectDefineProperties,
|
|
@@ -14811,9 +14811,9 @@ var require_duplex = __commonJS({
|
|
|
14811
14811
|
}
|
|
14812
14812
|
});
|
|
14813
14813
|
|
|
14814
|
-
// ../../../node_modules
|
|
14814
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/transform.js
|
|
14815
14815
|
var require_transform = __commonJS({
|
|
14816
|
-
"../../../node_modules
|
|
14816
|
+
"../../../node_modules/readable-stream/lib/internal/streams/transform.js"(exports2, module2) {
|
|
14817
14817
|
"use strict";
|
|
14818
14818
|
var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials();
|
|
14819
14819
|
module2.exports = Transform;
|
|
@@ -14913,9 +14913,9 @@ var require_transform = __commonJS({
|
|
|
14913
14913
|
}
|
|
14914
14914
|
});
|
|
14915
14915
|
|
|
14916
|
-
// ../../../node_modules
|
|
14916
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/passthrough.js
|
|
14917
14917
|
var require_passthrough2 = __commonJS({
|
|
14918
|
-
"../../../node_modules
|
|
14918
|
+
"../../../node_modules/readable-stream/lib/internal/streams/passthrough.js"(exports2, module2) {
|
|
14919
14919
|
"use strict";
|
|
14920
14920
|
var { ObjectSetPrototypeOf } = require_primordials();
|
|
14921
14921
|
module2.exports = PassThrough;
|
|
@@ -14932,9 +14932,9 @@ var require_passthrough2 = __commonJS({
|
|
|
14932
14932
|
}
|
|
14933
14933
|
});
|
|
14934
14934
|
|
|
14935
|
-
// ../../../node_modules
|
|
14935
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/pipeline.js
|
|
14936
14936
|
var require_pipeline = __commonJS({
|
|
14937
|
-
"../../../node_modules
|
|
14937
|
+
"../../../node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports2, module2) {
|
|
14938
14938
|
var process2 = require_process();
|
|
14939
14939
|
var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials();
|
|
14940
14940
|
var eos = require_end_of_stream();
|
|
@@ -15360,9 +15360,9 @@ var require_pipeline = __commonJS({
|
|
|
15360
15360
|
}
|
|
15361
15361
|
});
|
|
15362
15362
|
|
|
15363
|
-
// ../../../node_modules
|
|
15363
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/compose.js
|
|
15364
15364
|
var require_compose = __commonJS({
|
|
15365
|
-
"../../../node_modules
|
|
15365
|
+
"../../../node_modules/readable-stream/lib/internal/streams/compose.js"(exports2, module2) {
|
|
15366
15366
|
"use strict";
|
|
15367
15367
|
var { pipeline: pipeline2 } = require_pipeline();
|
|
15368
15368
|
var Duplex = require_duplex();
|
|
@@ -15553,9 +15553,9 @@ var require_compose = __commonJS({
|
|
|
15553
15553
|
}
|
|
15554
15554
|
});
|
|
15555
15555
|
|
|
15556
|
-
// ../../../node_modules
|
|
15556
|
+
// ../../../node_modules/readable-stream/lib/internal/streams/operators.js
|
|
15557
15557
|
var require_operators = __commonJS({
|
|
15558
|
-
"../../../node_modules
|
|
15558
|
+
"../../../node_modules/readable-stream/lib/internal/streams/operators.js"(exports2, module2) {
|
|
15559
15559
|
"use strict";
|
|
15560
15560
|
var AbortController = globalThis.AbortController || require_abort_controller().AbortController;
|
|
15561
15561
|
var {
|
|
@@ -15958,9 +15958,9 @@ var require_operators = __commonJS({
|
|
|
15958
15958
|
}
|
|
15959
15959
|
});
|
|
15960
15960
|
|
|
15961
|
-
// ../../../node_modules
|
|
15961
|
+
// ../../../node_modules/readable-stream/lib/stream/promises.js
|
|
15962
15962
|
var require_promises = __commonJS({
|
|
15963
|
-
"../../../node_modules
|
|
15963
|
+
"../../../node_modules/readable-stream/lib/stream/promises.js"(exports2, module2) {
|
|
15964
15964
|
"use strict";
|
|
15965
15965
|
var { ArrayPrototypePop, Promise: Promise2 } = require_primordials();
|
|
15966
15966
|
var { isIterable, isNodeStream, isWebStream } = require_utils();
|
|
@@ -16000,9 +16000,9 @@ var require_promises = __commonJS({
|
|
|
16000
16000
|
}
|
|
16001
16001
|
});
|
|
16002
16002
|
|
|
16003
|
-
// ../../../node_modules
|
|
16003
|
+
// ../../../node_modules/readable-stream/lib/stream.js
|
|
16004
16004
|
var require_stream2 = __commonJS({
|
|
16005
|
-
"../../../node_modules
|
|
16005
|
+
"../../../node_modules/readable-stream/lib/stream.js"(exports2, module2) {
|
|
16006
16006
|
"use strict";
|
|
16007
16007
|
var { Buffer: Buffer2 } = require("buffer");
|
|
16008
16008
|
var { ObjectDefineProperty, ObjectKeys, ReflectApply } = require_primordials();
|
|
@@ -16119,9 +16119,9 @@ var require_stream2 = __commonJS({
|
|
|
16119
16119
|
}
|
|
16120
16120
|
});
|
|
16121
16121
|
|
|
16122
|
-
// ../../../node_modules
|
|
16122
|
+
// ../../../node_modules/readable-stream/lib/ours/index.js
|
|
16123
16123
|
var require_ours = __commonJS({
|
|
16124
|
-
"../../../node_modules
|
|
16124
|
+
"../../../node_modules/readable-stream/lib/ours/index.js"(exports2, module2) {
|
|
16125
16125
|
"use strict";
|
|
16126
16126
|
var Stream = require("stream");
|
|
16127
16127
|
if (Stream && process.env.READABLE_STREAM === "disable") {
|
|
@@ -16183,9 +16183,9 @@ var require_ours = __commonJS({
|
|
|
16183
16183
|
}
|
|
16184
16184
|
});
|
|
16185
16185
|
|
|
16186
|
-
// ../../../node_modules
|
|
16186
|
+
// ../../../node_modules/lodash/_arrayPush.js
|
|
16187
16187
|
var require_arrayPush = __commonJS({
|
|
16188
|
-
"../../../node_modules
|
|
16188
|
+
"../../../node_modules/lodash/_arrayPush.js"(exports2, module2) {
|
|
16189
16189
|
function arrayPush(array, values) {
|
|
16190
16190
|
var index = -1, length = values.length, offset = array.length;
|
|
16191
16191
|
while (++index < length) {
|
|
@@ -16197,9 +16197,9 @@ var require_arrayPush = __commonJS({
|
|
|
16197
16197
|
}
|
|
16198
16198
|
});
|
|
16199
16199
|
|
|
16200
|
-
// ../../../node_modules
|
|
16200
|
+
// ../../../node_modules/lodash/_isFlattenable.js
|
|
16201
16201
|
var require_isFlattenable = __commonJS({
|
|
16202
|
-
"../../../node_modules
|
|
16202
|
+
"../../../node_modules/lodash/_isFlattenable.js"(exports2, module2) {
|
|
16203
16203
|
var Symbol2 = require_Symbol();
|
|
16204
16204
|
var isArguments = require_isArguments();
|
|
16205
16205
|
var isArray = require_isArray();
|
|
@@ -16211,9 +16211,9 @@ var require_isFlattenable = __commonJS({
|
|
|
16211
16211
|
}
|
|
16212
16212
|
});
|
|
16213
16213
|
|
|
16214
|
-
// ../../../node_modules
|
|
16214
|
+
// ../../../node_modules/lodash/_baseFlatten.js
|
|
16215
16215
|
var require_baseFlatten = __commonJS({
|
|
16216
|
-
"../../../node_modules
|
|
16216
|
+
"../../../node_modules/lodash/_baseFlatten.js"(exports2, module2) {
|
|
16217
16217
|
var arrayPush = require_arrayPush();
|
|
16218
16218
|
var isFlattenable = require_isFlattenable();
|
|
16219
16219
|
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
@@ -16238,9 +16238,9 @@ var require_baseFlatten = __commonJS({
|
|
|
16238
16238
|
}
|
|
16239
16239
|
});
|
|
16240
16240
|
|
|
16241
|
-
// ../../../node_modules
|
|
16241
|
+
// ../../../node_modules/lodash/flatten.js
|
|
16242
16242
|
var require_flatten = __commonJS({
|
|
16243
|
-
"../../../node_modules
|
|
16243
|
+
"../../../node_modules/lodash/flatten.js"(exports2, module2) {
|
|
16244
16244
|
var baseFlatten = require_baseFlatten();
|
|
16245
16245
|
function flatten(array) {
|
|
16246
16246
|
var length = array == null ? 0 : array.length;
|
|
@@ -16250,18 +16250,18 @@ var require_flatten = __commonJS({
|
|
|
16250
16250
|
}
|
|
16251
16251
|
});
|
|
16252
16252
|
|
|
16253
|
-
// ../../../node_modules
|
|
16253
|
+
// ../../../node_modules/lodash/_nativeCreate.js
|
|
16254
16254
|
var require_nativeCreate = __commonJS({
|
|
16255
|
-
"../../../node_modules
|
|
16255
|
+
"../../../node_modules/lodash/_nativeCreate.js"(exports2, module2) {
|
|
16256
16256
|
var getNative = require_getNative();
|
|
16257
16257
|
var nativeCreate = getNative(Object, "create");
|
|
16258
16258
|
module2.exports = nativeCreate;
|
|
16259
16259
|
}
|
|
16260
16260
|
});
|
|
16261
16261
|
|
|
16262
|
-
// ../../../node_modules
|
|
16262
|
+
// ../../../node_modules/lodash/_hashClear.js
|
|
16263
16263
|
var require_hashClear = __commonJS({
|
|
16264
|
-
"../../../node_modules
|
|
16264
|
+
"../../../node_modules/lodash/_hashClear.js"(exports2, module2) {
|
|
16265
16265
|
var nativeCreate = require_nativeCreate();
|
|
16266
16266
|
function hashClear() {
|
|
16267
16267
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
@@ -16271,9 +16271,9 @@ var require_hashClear = __commonJS({
|
|
|
16271
16271
|
}
|
|
16272
16272
|
});
|
|
16273
16273
|
|
|
16274
|
-
// ../../../node_modules
|
|
16274
|
+
// ../../../node_modules/lodash/_hashDelete.js
|
|
16275
16275
|
var require_hashDelete = __commonJS({
|
|
16276
|
-
"../../../node_modules
|
|
16276
|
+
"../../../node_modules/lodash/_hashDelete.js"(exports2, module2) {
|
|
16277
16277
|
function hashDelete(key) {
|
|
16278
16278
|
var result = this.has(key) && delete this.__data__[key];
|
|
16279
16279
|
this.size -= result ? 1 : 0;
|
|
@@ -16283,9 +16283,9 @@ var require_hashDelete = __commonJS({
|
|
|
16283
16283
|
}
|
|
16284
16284
|
});
|
|
16285
16285
|
|
|
16286
|
-
// ../../../node_modules
|
|
16286
|
+
// ../../../node_modules/lodash/_hashGet.js
|
|
16287
16287
|
var require_hashGet = __commonJS({
|
|
16288
|
-
"../../../node_modules
|
|
16288
|
+
"../../../node_modules/lodash/_hashGet.js"(exports2, module2) {
|
|
16289
16289
|
var nativeCreate = require_nativeCreate();
|
|
16290
16290
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
16291
16291
|
var objectProto = Object.prototype;
|
|
@@ -16302,9 +16302,9 @@ var require_hashGet = __commonJS({
|
|
|
16302
16302
|
}
|
|
16303
16303
|
});
|
|
16304
16304
|
|
|
16305
|
-
// ../../../node_modules
|
|
16305
|
+
// ../../../node_modules/lodash/_hashHas.js
|
|
16306
16306
|
var require_hashHas = __commonJS({
|
|
16307
|
-
"../../../node_modules
|
|
16307
|
+
"../../../node_modules/lodash/_hashHas.js"(exports2, module2) {
|
|
16308
16308
|
var nativeCreate = require_nativeCreate();
|
|
16309
16309
|
var objectProto = Object.prototype;
|
|
16310
16310
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -16316,9 +16316,9 @@ var require_hashHas = __commonJS({
|
|
|
16316
16316
|
}
|
|
16317
16317
|
});
|
|
16318
16318
|
|
|
16319
|
-
// ../../../node_modules
|
|
16319
|
+
// ../../../node_modules/lodash/_hashSet.js
|
|
16320
16320
|
var require_hashSet = __commonJS({
|
|
16321
|
-
"../../../node_modules
|
|
16321
|
+
"../../../node_modules/lodash/_hashSet.js"(exports2, module2) {
|
|
16322
16322
|
var nativeCreate = require_nativeCreate();
|
|
16323
16323
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
16324
16324
|
function hashSet(key, value) {
|
|
@@ -16331,9 +16331,9 @@ var require_hashSet = __commonJS({
|
|
|
16331
16331
|
}
|
|
16332
16332
|
});
|
|
16333
16333
|
|
|
16334
|
-
// ../../../node_modules
|
|
16334
|
+
// ../../../node_modules/lodash/_Hash.js
|
|
16335
16335
|
var require_Hash = __commonJS({
|
|
16336
|
-
"../../../node_modules
|
|
16336
|
+
"../../../node_modules/lodash/_Hash.js"(exports2, module2) {
|
|
16337
16337
|
var hashClear = require_hashClear();
|
|
16338
16338
|
var hashDelete = require_hashDelete();
|
|
16339
16339
|
var hashGet = require_hashGet();
|
|
@@ -16356,9 +16356,9 @@ var require_Hash = __commonJS({
|
|
|
16356
16356
|
}
|
|
16357
16357
|
});
|
|
16358
16358
|
|
|
16359
|
-
// ../../../node_modules
|
|
16359
|
+
// ../../../node_modules/lodash/_listCacheClear.js
|
|
16360
16360
|
var require_listCacheClear = __commonJS({
|
|
16361
|
-
"../../../node_modules
|
|
16361
|
+
"../../../node_modules/lodash/_listCacheClear.js"(exports2, module2) {
|
|
16362
16362
|
function listCacheClear() {
|
|
16363
16363
|
this.__data__ = [];
|
|
16364
16364
|
this.size = 0;
|
|
@@ -16367,9 +16367,9 @@ var require_listCacheClear = __commonJS({
|
|
|
16367
16367
|
}
|
|
16368
16368
|
});
|
|
16369
16369
|
|
|
16370
|
-
// ../../../node_modules
|
|
16370
|
+
// ../../../node_modules/lodash/_assocIndexOf.js
|
|
16371
16371
|
var require_assocIndexOf = __commonJS({
|
|
16372
|
-
"../../../node_modules
|
|
16372
|
+
"../../../node_modules/lodash/_assocIndexOf.js"(exports2, module2) {
|
|
16373
16373
|
var eq = require_eq();
|
|
16374
16374
|
function assocIndexOf(array, key) {
|
|
16375
16375
|
var length = array.length;
|
|
@@ -16384,9 +16384,9 @@ var require_assocIndexOf = __commonJS({
|
|
|
16384
16384
|
}
|
|
16385
16385
|
});
|
|
16386
16386
|
|
|
16387
|
-
// ../../../node_modules
|
|
16387
|
+
// ../../../node_modules/lodash/_listCacheDelete.js
|
|
16388
16388
|
var require_listCacheDelete = __commonJS({
|
|
16389
|
-
"../../../node_modules
|
|
16389
|
+
"../../../node_modules/lodash/_listCacheDelete.js"(exports2, module2) {
|
|
16390
16390
|
var assocIndexOf = require_assocIndexOf();
|
|
16391
16391
|
var arrayProto = Array.prototype;
|
|
16392
16392
|
var splice = arrayProto.splice;
|
|
@@ -16408,9 +16408,9 @@ var require_listCacheDelete = __commonJS({
|
|
|
16408
16408
|
}
|
|
16409
16409
|
});
|
|
16410
16410
|
|
|
16411
|
-
// ../../../node_modules
|
|
16411
|
+
// ../../../node_modules/lodash/_listCacheGet.js
|
|
16412
16412
|
var require_listCacheGet = __commonJS({
|
|
16413
|
-
"../../../node_modules
|
|
16413
|
+
"../../../node_modules/lodash/_listCacheGet.js"(exports2, module2) {
|
|
16414
16414
|
var assocIndexOf = require_assocIndexOf();
|
|
16415
16415
|
function listCacheGet(key) {
|
|
16416
16416
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
@@ -16420,9 +16420,9 @@ var require_listCacheGet = __commonJS({
|
|
|
16420
16420
|
}
|
|
16421
16421
|
});
|
|
16422
16422
|
|
|
16423
|
-
// ../../../node_modules
|
|
16423
|
+
// ../../../node_modules/lodash/_listCacheHas.js
|
|
16424
16424
|
var require_listCacheHas = __commonJS({
|
|
16425
|
-
"../../../node_modules
|
|
16425
|
+
"../../../node_modules/lodash/_listCacheHas.js"(exports2, module2) {
|
|
16426
16426
|
var assocIndexOf = require_assocIndexOf();
|
|
16427
16427
|
function listCacheHas(key) {
|
|
16428
16428
|
return assocIndexOf(this.__data__, key) > -1;
|
|
@@ -16431,9 +16431,9 @@ var require_listCacheHas = __commonJS({
|
|
|
16431
16431
|
}
|
|
16432
16432
|
});
|
|
16433
16433
|
|
|
16434
|
-
// ../../../node_modules
|
|
16434
|
+
// ../../../node_modules/lodash/_listCacheSet.js
|
|
16435
16435
|
var require_listCacheSet = __commonJS({
|
|
16436
|
-
"../../../node_modules
|
|
16436
|
+
"../../../node_modules/lodash/_listCacheSet.js"(exports2, module2) {
|
|
16437
16437
|
var assocIndexOf = require_assocIndexOf();
|
|
16438
16438
|
function listCacheSet(key, value) {
|
|
16439
16439
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
@@ -16449,9 +16449,9 @@ var require_listCacheSet = __commonJS({
|
|
|
16449
16449
|
}
|
|
16450
16450
|
});
|
|
16451
16451
|
|
|
16452
|
-
// ../../../node_modules
|
|
16452
|
+
// ../../../node_modules/lodash/_ListCache.js
|
|
16453
16453
|
var require_ListCache = __commonJS({
|
|
16454
|
-
"../../../node_modules
|
|
16454
|
+
"../../../node_modules/lodash/_ListCache.js"(exports2, module2) {
|
|
16455
16455
|
var listCacheClear = require_listCacheClear();
|
|
16456
16456
|
var listCacheDelete = require_listCacheDelete();
|
|
16457
16457
|
var listCacheGet = require_listCacheGet();
|
|
@@ -16474,9 +16474,9 @@ var require_ListCache = __commonJS({
|
|
|
16474
16474
|
}
|
|
16475
16475
|
});
|
|
16476
16476
|
|
|
16477
|
-
// ../../../node_modules
|
|
16477
|
+
// ../../../node_modules/lodash/_Map.js
|
|
16478
16478
|
var require_Map = __commonJS({
|
|
16479
|
-
"../../../node_modules
|
|
16479
|
+
"../../../node_modules/lodash/_Map.js"(exports2, module2) {
|
|
16480
16480
|
var getNative = require_getNative();
|
|
16481
16481
|
var root = require_root();
|
|
16482
16482
|
var Map2 = getNative(root, "Map");
|
|
@@ -16484,9 +16484,9 @@ var require_Map = __commonJS({
|
|
|
16484
16484
|
}
|
|
16485
16485
|
});
|
|
16486
16486
|
|
|
16487
|
-
// ../../../node_modules
|
|
16487
|
+
// ../../../node_modules/lodash/_mapCacheClear.js
|
|
16488
16488
|
var require_mapCacheClear = __commonJS({
|
|
16489
|
-
"../../../node_modules
|
|
16489
|
+
"../../../node_modules/lodash/_mapCacheClear.js"(exports2, module2) {
|
|
16490
16490
|
var Hash = require_Hash();
|
|
16491
16491
|
var ListCache = require_ListCache();
|
|
16492
16492
|
var Map2 = require_Map();
|
|
@@ -16502,9 +16502,9 @@ var require_mapCacheClear = __commonJS({
|
|
|
16502
16502
|
}
|
|
16503
16503
|
});
|
|
16504
16504
|
|
|
16505
|
-
// ../../../node_modules
|
|
16505
|
+
// ../../../node_modules/lodash/_isKeyable.js
|
|
16506
16506
|
var require_isKeyable = __commonJS({
|
|
16507
|
-
"../../../node_modules
|
|
16507
|
+
"../../../node_modules/lodash/_isKeyable.js"(exports2, module2) {
|
|
16508
16508
|
function isKeyable(value) {
|
|
16509
16509
|
var type2 = typeof value;
|
|
16510
16510
|
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
|
|
@@ -16513,9 +16513,9 @@ var require_isKeyable = __commonJS({
|
|
|
16513
16513
|
}
|
|
16514
16514
|
});
|
|
16515
16515
|
|
|
16516
|
-
// ../../../node_modules
|
|
16516
|
+
// ../../../node_modules/lodash/_getMapData.js
|
|
16517
16517
|
var require_getMapData = __commonJS({
|
|
16518
|
-
"../../../node_modules
|
|
16518
|
+
"../../../node_modules/lodash/_getMapData.js"(exports2, module2) {
|
|
16519
16519
|
var isKeyable = require_isKeyable();
|
|
16520
16520
|
function getMapData(map2, key) {
|
|
16521
16521
|
var data = map2.__data__;
|
|
@@ -16525,9 +16525,9 @@ var require_getMapData = __commonJS({
|
|
|
16525
16525
|
}
|
|
16526
16526
|
});
|
|
16527
16527
|
|
|
16528
|
-
// ../../../node_modules
|
|
16528
|
+
// ../../../node_modules/lodash/_mapCacheDelete.js
|
|
16529
16529
|
var require_mapCacheDelete = __commonJS({
|
|
16530
|
-
"../../../node_modules
|
|
16530
|
+
"../../../node_modules/lodash/_mapCacheDelete.js"(exports2, module2) {
|
|
16531
16531
|
var getMapData = require_getMapData();
|
|
16532
16532
|
function mapCacheDelete(key) {
|
|
16533
16533
|
var result = getMapData(this, key)["delete"](key);
|
|
@@ -16538,9 +16538,9 @@ var require_mapCacheDelete = __commonJS({
|
|
|
16538
16538
|
}
|
|
16539
16539
|
});
|
|
16540
16540
|
|
|
16541
|
-
// ../../../node_modules
|
|
16541
|
+
// ../../../node_modules/lodash/_mapCacheGet.js
|
|
16542
16542
|
var require_mapCacheGet = __commonJS({
|
|
16543
|
-
"../../../node_modules
|
|
16543
|
+
"../../../node_modules/lodash/_mapCacheGet.js"(exports2, module2) {
|
|
16544
16544
|
var getMapData = require_getMapData();
|
|
16545
16545
|
function mapCacheGet(key) {
|
|
16546
16546
|
return getMapData(this, key).get(key);
|
|
@@ -16549,9 +16549,9 @@ var require_mapCacheGet = __commonJS({
|
|
|
16549
16549
|
}
|
|
16550
16550
|
});
|
|
16551
16551
|
|
|
16552
|
-
// ../../../node_modules
|
|
16552
|
+
// ../../../node_modules/lodash/_mapCacheHas.js
|
|
16553
16553
|
var require_mapCacheHas = __commonJS({
|
|
16554
|
-
"../../../node_modules
|
|
16554
|
+
"../../../node_modules/lodash/_mapCacheHas.js"(exports2, module2) {
|
|
16555
16555
|
var getMapData = require_getMapData();
|
|
16556
16556
|
function mapCacheHas(key) {
|
|
16557
16557
|
return getMapData(this, key).has(key);
|
|
@@ -16560,9 +16560,9 @@ var require_mapCacheHas = __commonJS({
|
|
|
16560
16560
|
}
|
|
16561
16561
|
});
|
|
16562
16562
|
|
|
16563
|
-
// ../../../node_modules
|
|
16563
|
+
// ../../../node_modules/lodash/_mapCacheSet.js
|
|
16564
16564
|
var require_mapCacheSet = __commonJS({
|
|
16565
|
-
"../../../node_modules
|
|
16565
|
+
"../../../node_modules/lodash/_mapCacheSet.js"(exports2, module2) {
|
|
16566
16566
|
var getMapData = require_getMapData();
|
|
16567
16567
|
function mapCacheSet(key, value) {
|
|
16568
16568
|
var data = getMapData(this, key), size = data.size;
|
|
@@ -16574,9 +16574,9 @@ var require_mapCacheSet = __commonJS({
|
|
|
16574
16574
|
}
|
|
16575
16575
|
});
|
|
16576
16576
|
|
|
16577
|
-
// ../../../node_modules
|
|
16577
|
+
// ../../../node_modules/lodash/_MapCache.js
|
|
16578
16578
|
var require_MapCache = __commonJS({
|
|
16579
|
-
"../../../node_modules
|
|
16579
|
+
"../../../node_modules/lodash/_MapCache.js"(exports2, module2) {
|
|
16580
16580
|
var mapCacheClear = require_mapCacheClear();
|
|
16581
16581
|
var mapCacheDelete = require_mapCacheDelete();
|
|
16582
16582
|
var mapCacheGet = require_mapCacheGet();
|
|
@@ -16599,9 +16599,9 @@ var require_MapCache = __commonJS({
|
|
|
16599
16599
|
}
|
|
16600
16600
|
});
|
|
16601
16601
|
|
|
16602
|
-
// ../../../node_modules
|
|
16602
|
+
// ../../../node_modules/lodash/_setCacheAdd.js
|
|
16603
16603
|
var require_setCacheAdd = __commonJS({
|
|
16604
|
-
"../../../node_modules
|
|
16604
|
+
"../../../node_modules/lodash/_setCacheAdd.js"(exports2, module2) {
|
|
16605
16605
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
16606
16606
|
function setCacheAdd(value) {
|
|
16607
16607
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
@@ -16611,9 +16611,9 @@ var require_setCacheAdd = __commonJS({
|
|
|
16611
16611
|
}
|
|
16612
16612
|
});
|
|
16613
16613
|
|
|
16614
|
-
// ../../../node_modules
|
|
16614
|
+
// ../../../node_modules/lodash/_setCacheHas.js
|
|
16615
16615
|
var require_setCacheHas = __commonJS({
|
|
16616
|
-
"../../../node_modules
|
|
16616
|
+
"../../../node_modules/lodash/_setCacheHas.js"(exports2, module2) {
|
|
16617
16617
|
function setCacheHas(value) {
|
|
16618
16618
|
return this.__data__.has(value);
|
|
16619
16619
|
}
|
|
@@ -16621,9 +16621,9 @@ var require_setCacheHas = __commonJS({
|
|
|
16621
16621
|
}
|
|
16622
16622
|
});
|
|
16623
16623
|
|
|
16624
|
-
// ../../../node_modules
|
|
16624
|
+
// ../../../node_modules/lodash/_SetCache.js
|
|
16625
16625
|
var require_SetCache = __commonJS({
|
|
16626
|
-
"../../../node_modules
|
|
16626
|
+
"../../../node_modules/lodash/_SetCache.js"(exports2, module2) {
|
|
16627
16627
|
var MapCache = require_MapCache();
|
|
16628
16628
|
var setCacheAdd = require_setCacheAdd();
|
|
16629
16629
|
var setCacheHas = require_setCacheHas();
|
|
@@ -16640,9 +16640,9 @@ var require_SetCache = __commonJS({
|
|
|
16640
16640
|
}
|
|
16641
16641
|
});
|
|
16642
16642
|
|
|
16643
|
-
// ../../../node_modules
|
|
16643
|
+
// ../../../node_modules/lodash/_baseFindIndex.js
|
|
16644
16644
|
var require_baseFindIndex = __commonJS({
|
|
16645
|
-
"../../../node_modules
|
|
16645
|
+
"../../../node_modules/lodash/_baseFindIndex.js"(exports2, module2) {
|
|
16646
16646
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
16647
16647
|
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
16648
16648
|
while (fromRight ? index-- : ++index < length) {
|
|
@@ -16656,9 +16656,9 @@ var require_baseFindIndex = __commonJS({
|
|
|
16656
16656
|
}
|
|
16657
16657
|
});
|
|
16658
16658
|
|
|
16659
|
-
// ../../../node_modules
|
|
16659
|
+
// ../../../node_modules/lodash/_baseIsNaN.js
|
|
16660
16660
|
var require_baseIsNaN = __commonJS({
|
|
16661
|
-
"../../../node_modules
|
|
16661
|
+
"../../../node_modules/lodash/_baseIsNaN.js"(exports2, module2) {
|
|
16662
16662
|
function baseIsNaN(value) {
|
|
16663
16663
|
return value !== value;
|
|
16664
16664
|
}
|
|
@@ -16666,9 +16666,9 @@ var require_baseIsNaN = __commonJS({
|
|
|
16666
16666
|
}
|
|
16667
16667
|
});
|
|
16668
16668
|
|
|
16669
|
-
// ../../../node_modules
|
|
16669
|
+
// ../../../node_modules/lodash/_strictIndexOf.js
|
|
16670
16670
|
var require_strictIndexOf = __commonJS({
|
|
16671
|
-
"../../../node_modules
|
|
16671
|
+
"../../../node_modules/lodash/_strictIndexOf.js"(exports2, module2) {
|
|
16672
16672
|
function strictIndexOf(array, value, fromIndex) {
|
|
16673
16673
|
var index = fromIndex - 1, length = array.length;
|
|
16674
16674
|
while (++index < length) {
|
|
@@ -16682,9 +16682,9 @@ var require_strictIndexOf = __commonJS({
|
|
|
16682
16682
|
}
|
|
16683
16683
|
});
|
|
16684
16684
|
|
|
16685
|
-
// ../../../node_modules
|
|
16685
|
+
// ../../../node_modules/lodash/_baseIndexOf.js
|
|
16686
16686
|
var require_baseIndexOf = __commonJS({
|
|
16687
|
-
"../../../node_modules
|
|
16687
|
+
"../../../node_modules/lodash/_baseIndexOf.js"(exports2, module2) {
|
|
16688
16688
|
var baseFindIndex = require_baseFindIndex();
|
|
16689
16689
|
var baseIsNaN = require_baseIsNaN();
|
|
16690
16690
|
var strictIndexOf = require_strictIndexOf();
|
|
@@ -16695,9 +16695,9 @@ var require_baseIndexOf = __commonJS({
|
|
|
16695
16695
|
}
|
|
16696
16696
|
});
|
|
16697
16697
|
|
|
16698
|
-
// ../../../node_modules
|
|
16698
|
+
// ../../../node_modules/lodash/_arrayIncludes.js
|
|
16699
16699
|
var require_arrayIncludes = __commonJS({
|
|
16700
|
-
"../../../node_modules
|
|
16700
|
+
"../../../node_modules/lodash/_arrayIncludes.js"(exports2, module2) {
|
|
16701
16701
|
var baseIndexOf = require_baseIndexOf();
|
|
16702
16702
|
function arrayIncludes(array, value) {
|
|
16703
16703
|
var length = array == null ? 0 : array.length;
|
|
@@ -16707,9 +16707,9 @@ var require_arrayIncludes = __commonJS({
|
|
|
16707
16707
|
}
|
|
16708
16708
|
});
|
|
16709
16709
|
|
|
16710
|
-
// ../../../node_modules
|
|
16710
|
+
// ../../../node_modules/lodash/_arrayIncludesWith.js
|
|
16711
16711
|
var require_arrayIncludesWith = __commonJS({
|
|
16712
|
-
"../../../node_modules
|
|
16712
|
+
"../../../node_modules/lodash/_arrayIncludesWith.js"(exports2, module2) {
|
|
16713
16713
|
function arrayIncludesWith(array, value, comparator) {
|
|
16714
16714
|
var index = -1, length = array == null ? 0 : array.length;
|
|
16715
16715
|
while (++index < length) {
|
|
@@ -16723,9 +16723,9 @@ var require_arrayIncludesWith = __commonJS({
|
|
|
16723
16723
|
}
|
|
16724
16724
|
});
|
|
16725
16725
|
|
|
16726
|
-
// ../../../node_modules
|
|
16726
|
+
// ../../../node_modules/lodash/_arrayMap.js
|
|
16727
16727
|
var require_arrayMap = __commonJS({
|
|
16728
|
-
"../../../node_modules
|
|
16728
|
+
"../../../node_modules/lodash/_arrayMap.js"(exports2, module2) {
|
|
16729
16729
|
function arrayMap(array, iteratee) {
|
|
16730
16730
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
16731
16731
|
while (++index < length) {
|
|
@@ -16737,9 +16737,9 @@ var require_arrayMap = __commonJS({
|
|
|
16737
16737
|
}
|
|
16738
16738
|
});
|
|
16739
16739
|
|
|
16740
|
-
// ../../../node_modules
|
|
16740
|
+
// ../../../node_modules/lodash/_cacheHas.js
|
|
16741
16741
|
var require_cacheHas = __commonJS({
|
|
16742
|
-
"../../../node_modules
|
|
16742
|
+
"../../../node_modules/lodash/_cacheHas.js"(exports2, module2) {
|
|
16743
16743
|
function cacheHas(cache, key) {
|
|
16744
16744
|
return cache.has(key);
|
|
16745
16745
|
}
|
|
@@ -16747,9 +16747,9 @@ var require_cacheHas = __commonJS({
|
|
|
16747
16747
|
}
|
|
16748
16748
|
});
|
|
16749
16749
|
|
|
16750
|
-
// ../../../node_modules
|
|
16750
|
+
// ../../../node_modules/lodash/_baseDifference.js
|
|
16751
16751
|
var require_baseDifference = __commonJS({
|
|
16752
|
-
"../../../node_modules
|
|
16752
|
+
"../../../node_modules/lodash/_baseDifference.js"(exports2, module2) {
|
|
16753
16753
|
var SetCache = require_SetCache();
|
|
16754
16754
|
var arrayIncludes = require_arrayIncludes();
|
|
16755
16755
|
var arrayIncludesWith = require_arrayIncludesWith();
|
|
@@ -16795,9 +16795,9 @@ var require_baseDifference = __commonJS({
|
|
|
16795
16795
|
}
|
|
16796
16796
|
});
|
|
16797
16797
|
|
|
16798
|
-
// ../../../node_modules
|
|
16798
|
+
// ../../../node_modules/lodash/isArrayLikeObject.js
|
|
16799
16799
|
var require_isArrayLikeObject = __commonJS({
|
|
16800
|
-
"../../../node_modules
|
|
16800
|
+
"../../../node_modules/lodash/isArrayLikeObject.js"(exports2, module2) {
|
|
16801
16801
|
var isArrayLike = require_isArrayLike();
|
|
16802
16802
|
var isObjectLike = require_isObjectLike();
|
|
16803
16803
|
function isArrayLikeObject(value) {
|
|
@@ -16807,9 +16807,9 @@ var require_isArrayLikeObject = __commonJS({
|
|
|
16807
16807
|
}
|
|
16808
16808
|
});
|
|
16809
16809
|
|
|
16810
|
-
// ../../../node_modules
|
|
16810
|
+
// ../../../node_modules/lodash/difference.js
|
|
16811
16811
|
var require_difference = __commonJS({
|
|
16812
|
-
"../../../node_modules
|
|
16812
|
+
"../../../node_modules/lodash/difference.js"(exports2, module2) {
|
|
16813
16813
|
var baseDifference = require_baseDifference();
|
|
16814
16814
|
var baseFlatten = require_baseFlatten();
|
|
16815
16815
|
var baseRest = require_baseRest();
|
|
@@ -16821,9 +16821,9 @@ var require_difference = __commonJS({
|
|
|
16821
16821
|
}
|
|
16822
16822
|
});
|
|
16823
16823
|
|
|
16824
|
-
// ../../../node_modules
|
|
16824
|
+
// ../../../node_modules/lodash/_Set.js
|
|
16825
16825
|
var require_Set = __commonJS({
|
|
16826
|
-
"../../../node_modules
|
|
16826
|
+
"../../../node_modules/lodash/_Set.js"(exports2, module2) {
|
|
16827
16827
|
var getNative = require_getNative();
|
|
16828
16828
|
var root = require_root();
|
|
16829
16829
|
var Set2 = getNative(root, "Set");
|
|
@@ -16831,18 +16831,18 @@ var require_Set = __commonJS({
|
|
|
16831
16831
|
}
|
|
16832
16832
|
});
|
|
16833
16833
|
|
|
16834
|
-
// ../../../node_modules
|
|
16834
|
+
// ../../../node_modules/lodash/noop.js
|
|
16835
16835
|
var require_noop = __commonJS({
|
|
16836
|
-
"../../../node_modules
|
|
16836
|
+
"../../../node_modules/lodash/noop.js"(exports2, module2) {
|
|
16837
16837
|
function noop() {
|
|
16838
16838
|
}
|
|
16839
16839
|
module2.exports = noop;
|
|
16840
16840
|
}
|
|
16841
16841
|
});
|
|
16842
16842
|
|
|
16843
|
-
// ../../../node_modules
|
|
16843
|
+
// ../../../node_modules/lodash/_setToArray.js
|
|
16844
16844
|
var require_setToArray = __commonJS({
|
|
16845
|
-
"../../../node_modules
|
|
16845
|
+
"../../../node_modules/lodash/_setToArray.js"(exports2, module2) {
|
|
16846
16846
|
function setToArray(set2) {
|
|
16847
16847
|
var index = -1, result = Array(set2.size);
|
|
16848
16848
|
set2.forEach(function(value) {
|
|
@@ -16854,9 +16854,9 @@ var require_setToArray = __commonJS({
|
|
|
16854
16854
|
}
|
|
16855
16855
|
});
|
|
16856
16856
|
|
|
16857
|
-
// ../../../node_modules
|
|
16857
|
+
// ../../../node_modules/lodash/_createSet.js
|
|
16858
16858
|
var require_createSet = __commonJS({
|
|
16859
|
-
"../../../node_modules
|
|
16859
|
+
"../../../node_modules/lodash/_createSet.js"(exports2, module2) {
|
|
16860
16860
|
var Set2 = require_Set();
|
|
16861
16861
|
var noop = require_noop();
|
|
16862
16862
|
var setToArray = require_setToArray();
|
|
@@ -16868,9 +16868,9 @@ var require_createSet = __commonJS({
|
|
|
16868
16868
|
}
|
|
16869
16869
|
});
|
|
16870
16870
|
|
|
16871
|
-
// ../../../node_modules
|
|
16871
|
+
// ../../../node_modules/lodash/_baseUniq.js
|
|
16872
16872
|
var require_baseUniq = __commonJS({
|
|
16873
|
-
"../../../node_modules
|
|
16873
|
+
"../../../node_modules/lodash/_baseUniq.js"(exports2, module2) {
|
|
16874
16874
|
var SetCache = require_SetCache();
|
|
16875
16875
|
var arrayIncludes = require_arrayIncludes();
|
|
16876
16876
|
var arrayIncludesWith = require_arrayIncludesWith();
|
|
@@ -16922,9 +16922,9 @@ var require_baseUniq = __commonJS({
|
|
|
16922
16922
|
}
|
|
16923
16923
|
});
|
|
16924
16924
|
|
|
16925
|
-
// ../../../node_modules
|
|
16925
|
+
// ../../../node_modules/lodash/union.js
|
|
16926
16926
|
var require_union = __commonJS({
|
|
16927
|
-
"../../../node_modules
|
|
16927
|
+
"../../../node_modules/lodash/union.js"(exports2, module2) {
|
|
16928
16928
|
var baseFlatten = require_baseFlatten();
|
|
16929
16929
|
var baseRest = require_baseRest();
|
|
16930
16930
|
var baseUniq = require_baseUniq();
|
|
@@ -16936,9 +16936,9 @@ var require_union = __commonJS({
|
|
|
16936
16936
|
}
|
|
16937
16937
|
});
|
|
16938
16938
|
|
|
16939
|
-
// ../../../node_modules
|
|
16939
|
+
// ../../../node_modules/lodash/_overArg.js
|
|
16940
16940
|
var require_overArg = __commonJS({
|
|
16941
|
-
"../../../node_modules
|
|
16941
|
+
"../../../node_modules/lodash/_overArg.js"(exports2, module2) {
|
|
16942
16942
|
function overArg(func, transform) {
|
|
16943
16943
|
return function(arg) {
|
|
16944
16944
|
return func(transform(arg));
|
|
@@ -16948,18 +16948,18 @@ var require_overArg = __commonJS({
|
|
|
16948
16948
|
}
|
|
16949
16949
|
});
|
|
16950
16950
|
|
|
16951
|
-
// ../../../node_modules
|
|
16951
|
+
// ../../../node_modules/lodash/_getPrototype.js
|
|
16952
16952
|
var require_getPrototype = __commonJS({
|
|
16953
|
-
"../../../node_modules
|
|
16953
|
+
"../../../node_modules/lodash/_getPrototype.js"(exports2, module2) {
|
|
16954
16954
|
var overArg = require_overArg();
|
|
16955
16955
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
16956
16956
|
module2.exports = getPrototype;
|
|
16957
16957
|
}
|
|
16958
16958
|
});
|
|
16959
16959
|
|
|
16960
|
-
// ../../../node_modules
|
|
16960
|
+
// ../../../node_modules/lodash/isPlainObject.js
|
|
16961
16961
|
var require_isPlainObject = __commonJS({
|
|
16962
|
-
"../../../node_modules
|
|
16962
|
+
"../../../node_modules/lodash/isPlainObject.js"(exports2, module2) {
|
|
16963
16963
|
var baseGetTag = require_baseGetTag();
|
|
16964
16964
|
var getPrototype = require_getPrototype();
|
|
16965
16965
|
var isObjectLike = require_isObjectLike();
|
|
@@ -16984,9 +16984,9 @@ var require_isPlainObject = __commonJS({
|
|
|
16984
16984
|
}
|
|
16985
16985
|
});
|
|
16986
16986
|
|
|
16987
|
-
// ../../../node_modules
|
|
16987
|
+
// ../../../node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
|
|
16988
16988
|
var require_assert_valid_pattern = __commonJS({
|
|
16989
|
-
"../../../node_modules
|
|
16989
|
+
"../../../node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports2) {
|
|
16990
16990
|
"use strict";
|
|
16991
16991
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16992
16992
|
exports2.assertValidPattern = void 0;
|
|
@@ -17003,9 +17003,9 @@ var require_assert_valid_pattern = __commonJS({
|
|
|
17003
17003
|
}
|
|
17004
17004
|
});
|
|
17005
17005
|
|
|
17006
|
-
// ../../../node_modules
|
|
17006
|
+
// ../../../node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js
|
|
17007
17007
|
var require_brace_expressions = __commonJS({
|
|
17008
|
-
"../../../node_modules
|
|
17008
|
+
"../../../node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports2) {
|
|
17009
17009
|
"use strict";
|
|
17010
17010
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17011
17011
|
exports2.parseClass = void 0;
|
|
@@ -17120,9 +17120,9 @@ var require_brace_expressions = __commonJS({
|
|
|
17120
17120
|
}
|
|
17121
17121
|
});
|
|
17122
17122
|
|
|
17123
|
-
// ../../../node_modules
|
|
17123
|
+
// ../../../node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js
|
|
17124
17124
|
var require_unescape = __commonJS({
|
|
17125
|
-
"../../../node_modules
|
|
17125
|
+
"../../../node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js"(exports2) {
|
|
17126
17126
|
"use strict";
|
|
17127
17127
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17128
17128
|
exports2.unescape = void 0;
|
|
@@ -17133,9 +17133,9 @@ var require_unescape = __commonJS({
|
|
|
17133
17133
|
}
|
|
17134
17134
|
});
|
|
17135
17135
|
|
|
17136
|
-
// ../../../node_modules
|
|
17136
|
+
// ../../../node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js
|
|
17137
17137
|
var require_ast = __commonJS({
|
|
17138
|
-
"../../../node_modules
|
|
17138
|
+
"../../../node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js"(exports2) {
|
|
17139
17139
|
"use strict";
|
|
17140
17140
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17141
17141
|
exports2.AST = void 0;
|
|
@@ -17622,9 +17622,9 @@ var require_ast = __commonJS({
|
|
|
17622
17622
|
}
|
|
17623
17623
|
});
|
|
17624
17624
|
|
|
17625
|
-
// ../../../node_modules
|
|
17625
|
+
// ../../../node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js
|
|
17626
17626
|
var require_escape = __commonJS({
|
|
17627
|
-
"../../../node_modules
|
|
17627
|
+
"../../../node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js"(exports2) {
|
|
17628
17628
|
"use strict";
|
|
17629
17629
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17630
17630
|
exports2.escape = void 0;
|
|
@@ -17635,9 +17635,9 @@ var require_escape = __commonJS({
|
|
|
17635
17635
|
}
|
|
17636
17636
|
});
|
|
17637
17637
|
|
|
17638
|
-
// ../../../node_modules
|
|
17638
|
+
// ../../../node_modules/glob/node_modules/minimatch/dist/commonjs/index.js
|
|
17639
17639
|
var require_commonjs = __commonJS({
|
|
17640
|
-
"../../../node_modules
|
|
17640
|
+
"../../../node_modules/glob/node_modules/minimatch/dist/commonjs/index.js"(exports2) {
|
|
17641
17641
|
"use strict";
|
|
17642
17642
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
17643
17643
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -18387,9 +18387,9 @@ var require_commonjs = __commonJS({
|
|
|
18387
18387
|
}
|
|
18388
18388
|
});
|
|
18389
18389
|
|
|
18390
|
-
// ../../../node_modules
|
|
18390
|
+
// ../../../node_modules/lru-cache/dist/commonjs/index.js
|
|
18391
18391
|
var require_commonjs2 = __commonJS({
|
|
18392
|
-
"../../../node_modules
|
|
18392
|
+
"../../../node_modules/lru-cache/dist/commonjs/index.js"(exports2) {
|
|
18393
18393
|
"use strict";
|
|
18394
18394
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18395
18395
|
exports2.LRUCache = void 0;
|
|
@@ -19764,9 +19764,9 @@ var require_commonjs2 = __commonJS({
|
|
|
19764
19764
|
}
|
|
19765
19765
|
});
|
|
19766
19766
|
|
|
19767
|
-
// ../../../node_modules
|
|
19767
|
+
// ../../../node_modules/minipass/dist/commonjs/index.js
|
|
19768
19768
|
var require_commonjs3 = __commonJS({
|
|
19769
|
-
"../../../node_modules
|
|
19769
|
+
"../../../node_modules/minipass/dist/commonjs/index.js"(exports2) {
|
|
19770
19770
|
"use strict";
|
|
19771
19771
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
19772
19772
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -20656,9 +20656,9 @@ var require_commonjs3 = __commonJS({
|
|
|
20656
20656
|
}
|
|
20657
20657
|
});
|
|
20658
20658
|
|
|
20659
|
-
// ../../../node_modules
|
|
20659
|
+
// ../../../node_modules/path-scurry/dist/commonjs/index.js
|
|
20660
20660
|
var require_commonjs4 = __commonJS({
|
|
20661
|
-
"../../../node_modules
|
|
20661
|
+
"../../../node_modules/path-scurry/dist/commonjs/index.js"(exports2) {
|
|
20662
20662
|
"use strict";
|
|
20663
20663
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
20664
20664
|
if (k2 === void 0) k2 = k;
|
|
@@ -22430,9 +22430,9 @@ var require_commonjs4 = __commonJS({
|
|
|
22430
22430
|
}
|
|
22431
22431
|
});
|
|
22432
22432
|
|
|
22433
|
-
// ../../../node_modules
|
|
22433
|
+
// ../../../node_modules/glob/dist/commonjs/pattern.js
|
|
22434
22434
|
var require_pattern = __commonJS({
|
|
22435
|
-
"../../../node_modules
|
|
22435
|
+
"../../../node_modules/glob/dist/commonjs/pattern.js"(exports2) {
|
|
22436
22436
|
"use strict";
|
|
22437
22437
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22438
22438
|
exports2.Pattern = void 0;
|
|
@@ -22604,9 +22604,9 @@ var require_pattern = __commonJS({
|
|
|
22604
22604
|
}
|
|
22605
22605
|
});
|
|
22606
22606
|
|
|
22607
|
-
// ../../../node_modules
|
|
22607
|
+
// ../../../node_modules/glob/dist/commonjs/ignore.js
|
|
22608
22608
|
var require_ignore = __commonJS({
|
|
22609
|
-
"../../../node_modules
|
|
22609
|
+
"../../../node_modules/glob/dist/commonjs/ignore.js"(exports2) {
|
|
22610
22610
|
"use strict";
|
|
22611
22611
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22612
22612
|
exports2.Ignore = void 0;
|
|
@@ -22701,9 +22701,9 @@ var require_ignore = __commonJS({
|
|
|
22701
22701
|
}
|
|
22702
22702
|
});
|
|
22703
22703
|
|
|
22704
|
-
// ../../../node_modules
|
|
22704
|
+
// ../../../node_modules/glob/dist/commonjs/processor.js
|
|
22705
22705
|
var require_processor = __commonJS({
|
|
22706
|
-
"../../../node_modules
|
|
22706
|
+
"../../../node_modules/glob/dist/commonjs/processor.js"(exports2) {
|
|
22707
22707
|
"use strict";
|
|
22708
22708
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22709
22709
|
exports2.Processor = exports2.SubWalks = exports2.MatchRecord = exports2.HasWalkedCache = void 0;
|
|
@@ -22934,9 +22934,9 @@ var require_processor = __commonJS({
|
|
|
22934
22934
|
}
|
|
22935
22935
|
});
|
|
22936
22936
|
|
|
22937
|
-
// ../../../node_modules
|
|
22937
|
+
// ../../../node_modules/glob/dist/commonjs/walker.js
|
|
22938
22938
|
var require_walker = __commonJS({
|
|
22939
|
-
"../../../node_modules
|
|
22939
|
+
"../../../node_modules/glob/dist/commonjs/walker.js"(exports2) {
|
|
22940
22940
|
"use strict";
|
|
22941
22941
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
22942
22942
|
exports2.GlobStream = exports2.GlobWalker = exports2.GlobUtil = void 0;
|
|
@@ -23274,9 +23274,9 @@ var require_walker = __commonJS({
|
|
|
23274
23274
|
}
|
|
23275
23275
|
});
|
|
23276
23276
|
|
|
23277
|
-
// ../../../node_modules
|
|
23277
|
+
// ../../../node_modules/glob/dist/commonjs/glob.js
|
|
23278
23278
|
var require_glob = __commonJS({
|
|
23279
|
-
"../../../node_modules
|
|
23279
|
+
"../../../node_modules/glob/dist/commonjs/glob.js"(exports2) {
|
|
23280
23280
|
"use strict";
|
|
23281
23281
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23282
23282
|
exports2.Glob = void 0;
|
|
@@ -23487,9 +23487,9 @@ var require_glob = __commonJS({
|
|
|
23487
23487
|
}
|
|
23488
23488
|
});
|
|
23489
23489
|
|
|
23490
|
-
// ../../../node_modules
|
|
23490
|
+
// ../../../node_modules/glob/dist/commonjs/has-magic.js
|
|
23491
23491
|
var require_has_magic = __commonJS({
|
|
23492
|
-
"../../../node_modules
|
|
23492
|
+
"../../../node_modules/glob/dist/commonjs/has-magic.js"(exports2) {
|
|
23493
23493
|
"use strict";
|
|
23494
23494
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23495
23495
|
exports2.hasMagic = void 0;
|
|
@@ -23508,9 +23508,9 @@ var require_has_magic = __commonJS({
|
|
|
23508
23508
|
}
|
|
23509
23509
|
});
|
|
23510
23510
|
|
|
23511
|
-
// ../../../node_modules
|
|
23511
|
+
// ../../../node_modules/glob/dist/commonjs/index.js
|
|
23512
23512
|
var require_commonjs5 = __commonJS({
|
|
23513
|
-
"../../../node_modules
|
|
23513
|
+
"../../../node_modules/glob/dist/commonjs/index.js"(exports2) {
|
|
23514
23514
|
"use strict";
|
|
23515
23515
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23516
23516
|
exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0;
|
|
@@ -23590,9 +23590,9 @@ var require_commonjs5 = __commonJS({
|
|
|
23590
23590
|
}
|
|
23591
23591
|
});
|
|
23592
23592
|
|
|
23593
|
-
// ../../../node_modules
|
|
23593
|
+
// ../../../node_modules/archiver-utils/file.js
|
|
23594
23594
|
var require_file = __commonJS({
|
|
23595
|
-
"../../../node_modules
|
|
23595
|
+
"../../../node_modules/archiver-utils/file.js"(exports2, module2) {
|
|
23596
23596
|
var fs7 = require_graceful_fs();
|
|
23597
23597
|
var path10 = require("path");
|
|
23598
23598
|
var flatten = require_flatten();
|
|
@@ -23743,9 +23743,9 @@ var require_file = __commonJS({
|
|
|
23743
23743
|
}
|
|
23744
23744
|
});
|
|
23745
23745
|
|
|
23746
|
-
// ../../../node_modules
|
|
23746
|
+
// ../../../node_modules/archiver-utils/index.js
|
|
23747
23747
|
var require_archiver_utils = __commonJS({
|
|
23748
|
-
"../../../node_modules
|
|
23748
|
+
"../../../node_modules/archiver-utils/index.js"(exports2, module2) {
|
|
23749
23749
|
var fs7 = require_graceful_fs();
|
|
23750
23750
|
var path10 = require("path");
|
|
23751
23751
|
var isStream = require_is_stream();
|
|
@@ -23862,9 +23862,9 @@ var require_archiver_utils = __commonJS({
|
|
|
23862
23862
|
}
|
|
23863
23863
|
});
|
|
23864
23864
|
|
|
23865
|
-
// ../../../node_modules
|
|
23865
|
+
// ../../../node_modules/archiver/lib/error.js
|
|
23866
23866
|
var require_error2 = __commonJS({
|
|
23867
|
-
"../../../node_modules
|
|
23867
|
+
"../../../node_modules/archiver/lib/error.js"(exports2, module2) {
|
|
23868
23868
|
var util = require("util");
|
|
23869
23869
|
var ERROR_CODES = {
|
|
23870
23870
|
"ABORTED": "archive was aborted",
|
|
@@ -23895,9 +23895,9 @@ var require_error2 = __commonJS({
|
|
|
23895
23895
|
}
|
|
23896
23896
|
});
|
|
23897
23897
|
|
|
23898
|
-
// ../../../node_modules
|
|
23898
|
+
// ../../../node_modules/archiver/lib/core.js
|
|
23899
23899
|
var require_core = __commonJS({
|
|
23900
|
-
"../../../node_modules
|
|
23900
|
+
"../../../node_modules/archiver/lib/core.js"(exports2, module2) {
|
|
23901
23901
|
var fs7 = require("fs");
|
|
23902
23902
|
var glob = require_readdir_glob();
|
|
23903
23903
|
var async = require_async();
|
|
@@ -24430,9 +24430,9 @@ var require_core = __commonJS({
|
|
|
24430
24430
|
}
|
|
24431
24431
|
});
|
|
24432
24432
|
|
|
24433
|
-
// ../../../node_modules
|
|
24433
|
+
// ../../../node_modules/compress-commons/lib/archivers/archive-entry.js
|
|
24434
24434
|
var require_archive_entry = __commonJS({
|
|
24435
|
-
"../../../node_modules
|
|
24435
|
+
"../../../node_modules/compress-commons/lib/archivers/archive-entry.js"(exports2, module2) {
|
|
24436
24436
|
var ArchiveEntry = module2.exports = function() {
|
|
24437
24437
|
};
|
|
24438
24438
|
ArchiveEntry.prototype.getName = function() {
|
|
@@ -24446,9 +24446,9 @@ var require_archive_entry = __commonJS({
|
|
|
24446
24446
|
}
|
|
24447
24447
|
});
|
|
24448
24448
|
|
|
24449
|
-
// ../../../node_modules
|
|
24449
|
+
// ../../../node_modules/compress-commons/lib/archivers/zip/util.js
|
|
24450
24450
|
var require_util3 = __commonJS({
|
|
24451
|
-
"../../../node_modules
|
|
24451
|
+
"../../../node_modules/compress-commons/lib/archivers/zip/util.js"(exports2, module2) {
|
|
24452
24452
|
var util = module2.exports = {};
|
|
24453
24453
|
util.dateToDos = function(d, forceLocalTime) {
|
|
24454
24454
|
forceLocalTime = forceLocalTime || false;
|
|
@@ -24502,9 +24502,9 @@ var require_util3 = __commonJS({
|
|
|
24502
24502
|
}
|
|
24503
24503
|
});
|
|
24504
24504
|
|
|
24505
|
-
// ../../../node_modules
|
|
24505
|
+
// ../../../node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js
|
|
24506
24506
|
var require_general_purpose_bit = __commonJS({
|
|
24507
|
-
"../../../node_modules
|
|
24507
|
+
"../../../node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js"(exports2, module2) {
|
|
24508
24508
|
var zipUtil = require_util3();
|
|
24509
24509
|
var DATA_DESCRIPTOR_FLAG = 1 << 3;
|
|
24510
24510
|
var ENCRYPTION_FLAG = 1 << 0;
|
|
@@ -24579,9 +24579,9 @@ var require_general_purpose_bit = __commonJS({
|
|
|
24579
24579
|
}
|
|
24580
24580
|
});
|
|
24581
24581
|
|
|
24582
|
-
// ../../../node_modules
|
|
24582
|
+
// ../../../node_modules/compress-commons/lib/archivers/zip/unix-stat.js
|
|
24583
24583
|
var require_unix_stat = __commonJS({
|
|
24584
|
-
"../../../node_modules
|
|
24584
|
+
"../../../node_modules/compress-commons/lib/archivers/zip/unix-stat.js"(exports2, module2) {
|
|
24585
24585
|
module2.exports = {
|
|
24586
24586
|
/**
|
|
24587
24587
|
* Bits used for permissions (and sticky bit)
|
|
@@ -24631,9 +24631,9 @@ var require_unix_stat = __commonJS({
|
|
|
24631
24631
|
}
|
|
24632
24632
|
});
|
|
24633
24633
|
|
|
24634
|
-
// ../../../node_modules
|
|
24634
|
+
// ../../../node_modules/compress-commons/lib/archivers/zip/constants.js
|
|
24635
24635
|
var require_constants = __commonJS({
|
|
24636
|
-
"../../../node_modules
|
|
24636
|
+
"../../../node_modules/compress-commons/lib/archivers/zip/constants.js"(exports2, module2) {
|
|
24637
24637
|
module2.exports = {
|
|
24638
24638
|
WORD: 4,
|
|
24639
24639
|
DWORD: 8,
|
|
@@ -24708,9 +24708,9 @@ var require_constants = __commonJS({
|
|
|
24708
24708
|
}
|
|
24709
24709
|
});
|
|
24710
24710
|
|
|
24711
|
-
// ../../../node_modules
|
|
24711
|
+
// ../../../node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
|
|
24712
24712
|
var require_zip_archive_entry = __commonJS({
|
|
24713
|
-
"../../../node_modules
|
|
24713
|
+
"../../../node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js"(exports2, module2) {
|
|
24714
24714
|
var inherits = require("util").inherits;
|
|
24715
24715
|
var normalizePath = require_normalize_path();
|
|
24716
24716
|
var ArchiveEntry = require_archive_entry();
|
|
@@ -24883,9 +24883,9 @@ var require_zip_archive_entry = __commonJS({
|
|
|
24883
24883
|
}
|
|
24884
24884
|
});
|
|
24885
24885
|
|
|
24886
|
-
// ../../../node_modules
|
|
24886
|
+
// ../../../node_modules/compress-commons/lib/util/index.js
|
|
24887
24887
|
var require_util4 = __commonJS({
|
|
24888
|
-
"../../../node_modules
|
|
24888
|
+
"../../../node_modules/compress-commons/lib/util/index.js"(exports2, module2) {
|
|
24889
24889
|
var Stream = require("stream").Stream;
|
|
24890
24890
|
var PassThrough = require_ours().PassThrough;
|
|
24891
24891
|
var isStream = require_is_stream();
|
|
@@ -24905,9 +24905,9 @@ var require_util4 = __commonJS({
|
|
|
24905
24905
|
}
|
|
24906
24906
|
});
|
|
24907
24907
|
|
|
24908
|
-
// ../../../node_modules
|
|
24908
|
+
// ../../../node_modules/compress-commons/lib/archivers/archive-output-stream.js
|
|
24909
24909
|
var require_archive_output_stream = __commonJS({
|
|
24910
|
-
"../../../node_modules
|
|
24910
|
+
"../../../node_modules/compress-commons/lib/archivers/archive-output-stream.js"(exports2, module2) {
|
|
24911
24911
|
var inherits = require("util").inherits;
|
|
24912
24912
|
var isStream = require_is_stream();
|
|
24913
24913
|
var Transform = require_ours().Transform;
|
|
@@ -24993,9 +24993,9 @@ var require_archive_output_stream = __commonJS({
|
|
|
24993
24993
|
}
|
|
24994
24994
|
});
|
|
24995
24995
|
|
|
24996
|
-
// ../../../node_modules
|
|
24996
|
+
// ../../../node_modules/crc-32/crc32.js
|
|
24997
24997
|
var require_crc32 = __commonJS({
|
|
24998
|
-
"../../../node_modules
|
|
24998
|
+
"../../../node_modules/crc-32/crc32.js"(exports2) {
|
|
24999
24999
|
var CRC32;
|
|
25000
25000
|
(function(factory) {
|
|
25001
25001
|
if (typeof DO_NOT_EXPORT_CRC === "undefined") {
|
|
@@ -25091,9 +25091,9 @@ var require_crc32 = __commonJS({
|
|
|
25091
25091
|
}
|
|
25092
25092
|
});
|
|
25093
25093
|
|
|
25094
|
-
// ../../../node_modules
|
|
25094
|
+
// ../../../node_modules/crc32-stream/lib/crc32-stream.js
|
|
25095
25095
|
var require_crc32_stream = __commonJS({
|
|
25096
|
-
"../../../node_modules
|
|
25096
|
+
"../../../node_modules/crc32-stream/lib/crc32-stream.js"(exports2, module2) {
|
|
25097
25097
|
"use strict";
|
|
25098
25098
|
var { Transform } = require_ours();
|
|
25099
25099
|
var crc32 = require_crc32();
|
|
@@ -25127,9 +25127,9 @@ var require_crc32_stream = __commonJS({
|
|
|
25127
25127
|
}
|
|
25128
25128
|
});
|
|
25129
25129
|
|
|
25130
|
-
// ../../../node_modules
|
|
25130
|
+
// ../../../node_modules/crc32-stream/lib/deflate-crc32-stream.js
|
|
25131
25131
|
var require_deflate_crc32_stream = __commonJS({
|
|
25132
|
-
"../../../node_modules
|
|
25132
|
+
"../../../node_modules/crc32-stream/lib/deflate-crc32-stream.js"(exports2, module2) {
|
|
25133
25133
|
"use strict";
|
|
25134
25134
|
var { DeflateRaw } = require("zlib");
|
|
25135
25135
|
var crc32 = require_crc32();
|
|
@@ -25174,9 +25174,9 @@ var require_deflate_crc32_stream = __commonJS({
|
|
|
25174
25174
|
}
|
|
25175
25175
|
});
|
|
25176
25176
|
|
|
25177
|
-
// ../../../node_modules
|
|
25177
|
+
// ../../../node_modules/crc32-stream/lib/index.js
|
|
25178
25178
|
var require_lib = __commonJS({
|
|
25179
|
-
"../../../node_modules
|
|
25179
|
+
"../../../node_modules/crc32-stream/lib/index.js"(exports2, module2) {
|
|
25180
25180
|
"use strict";
|
|
25181
25181
|
module2.exports = {
|
|
25182
25182
|
CRC32Stream: require_crc32_stream(),
|
|
@@ -25185,9 +25185,9 @@ var require_lib = __commonJS({
|
|
|
25185
25185
|
}
|
|
25186
25186
|
});
|
|
25187
25187
|
|
|
25188
|
-
// ../../../node_modules
|
|
25188
|
+
// ../../../node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
|
|
25189
25189
|
var require_zip_archive_output_stream = __commonJS({
|
|
25190
|
-
"../../../node_modules
|
|
25190
|
+
"../../../node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js"(exports2, module2) {
|
|
25191
25191
|
var inherits = require("util").inherits;
|
|
25192
25192
|
var crc32 = require_crc32();
|
|
25193
25193
|
var { CRC32Stream } = require_lib();
|
|
@@ -25470,9 +25470,9 @@ var require_zip_archive_output_stream = __commonJS({
|
|
|
25470
25470
|
}
|
|
25471
25471
|
});
|
|
25472
25472
|
|
|
25473
|
-
// ../../../node_modules
|
|
25473
|
+
// ../../../node_modules/compress-commons/lib/compress-commons.js
|
|
25474
25474
|
var require_compress_commons = __commonJS({
|
|
25475
|
-
"../../../node_modules
|
|
25475
|
+
"../../../node_modules/compress-commons/lib/compress-commons.js"(exports2, module2) {
|
|
25476
25476
|
module2.exports = {
|
|
25477
25477
|
ArchiveEntry: require_archive_entry(),
|
|
25478
25478
|
ZipArchiveEntry: require_zip_archive_entry(),
|
|
@@ -25482,9 +25482,9 @@ var require_compress_commons = __commonJS({
|
|
|
25482
25482
|
}
|
|
25483
25483
|
});
|
|
25484
25484
|
|
|
25485
|
-
// ../../../node_modules
|
|
25485
|
+
// ../../../node_modules/zip-stream/index.js
|
|
25486
25486
|
var require_zip_stream = __commonJS({
|
|
25487
|
-
"../../../node_modules
|
|
25487
|
+
"../../../node_modules/zip-stream/index.js"(exports2, module2) {
|
|
25488
25488
|
var inherits = require("util").inherits;
|
|
25489
25489
|
var ZipArchiveOutputStream = require_compress_commons().ZipArchiveOutputStream;
|
|
25490
25490
|
var ZipArchiveEntry = require_compress_commons().ZipArchiveEntry;
|
|
@@ -25585,9 +25585,9 @@ var require_zip_stream = __commonJS({
|
|
|
25585
25585
|
}
|
|
25586
25586
|
});
|
|
25587
25587
|
|
|
25588
|
-
// ../../../node_modules
|
|
25588
|
+
// ../../../node_modules/archiver/lib/plugins/zip.js
|
|
25589
25589
|
var require_zip = __commonJS({
|
|
25590
|
-
"../../../node_modules
|
|
25590
|
+
"../../../node_modules/archiver/lib/plugins/zip.js"(exports2, module2) {
|
|
25591
25591
|
var engine = require_zip_stream();
|
|
25592
25592
|
var util = require_archiver_utils();
|
|
25593
25593
|
var Zip = function(options) {
|
|
@@ -25625,16 +25625,16 @@ var require_zip = __commonJS({
|
|
|
25625
25625
|
}
|
|
25626
25626
|
});
|
|
25627
25627
|
|
|
25628
|
-
// ../../../node_modules
|
|
25628
|
+
// ../../../node_modules/events-universal/default.js
|
|
25629
25629
|
var require_default = __commonJS({
|
|
25630
|
-
"../../../node_modules
|
|
25630
|
+
"../../../node_modules/events-universal/default.js"(exports2, module2) {
|
|
25631
25631
|
module2.exports = require("events");
|
|
25632
25632
|
}
|
|
25633
25633
|
});
|
|
25634
25634
|
|
|
25635
|
-
// ../../../node_modules
|
|
25635
|
+
// ../../../node_modules/fast-fifo/fixed-size.js
|
|
25636
25636
|
var require_fixed_size = __commonJS({
|
|
25637
|
-
"../../../node_modules
|
|
25637
|
+
"../../../node_modules/fast-fifo/fixed-size.js"(exports2, module2) {
|
|
25638
25638
|
module2.exports = class FixedFIFO {
|
|
25639
25639
|
constructor(hwm) {
|
|
25640
25640
|
if (!(hwm > 0) || (hwm - 1 & hwm) !== 0) throw new Error("Max size for a FixedFIFO should be a power of two");
|
|
@@ -25672,9 +25672,9 @@ var require_fixed_size = __commonJS({
|
|
|
25672
25672
|
}
|
|
25673
25673
|
});
|
|
25674
25674
|
|
|
25675
|
-
// ../../../node_modules
|
|
25675
|
+
// ../../../node_modules/fast-fifo/index.js
|
|
25676
25676
|
var require_fast_fifo = __commonJS({
|
|
25677
|
-
"../../../node_modules
|
|
25677
|
+
"../../../node_modules/fast-fifo/index.js"(exports2, module2) {
|
|
25678
25678
|
var FixedFIFO = require_fixed_size();
|
|
25679
25679
|
module2.exports = class FastFIFO {
|
|
25680
25680
|
constructor(hwm) {
|
|
@@ -25719,9 +25719,9 @@ var require_fast_fifo = __commonJS({
|
|
|
25719
25719
|
}
|
|
25720
25720
|
});
|
|
25721
25721
|
|
|
25722
|
-
// ../../../node_modules
|
|
25722
|
+
// ../../../node_modules/b4a/index.js
|
|
25723
25723
|
var require_b4a = __commonJS({
|
|
25724
|
-
"../../../node_modules
|
|
25724
|
+
"../../../node_modules/b4a/index.js"(exports2, module2) {
|
|
25725
25725
|
function isBuffer(value) {
|
|
25726
25726
|
return Buffer.isBuffer(value) || value instanceof Uint8Array;
|
|
25727
25727
|
}
|
|
@@ -25876,9 +25876,9 @@ var require_b4a = __commonJS({
|
|
|
25876
25876
|
}
|
|
25877
25877
|
});
|
|
25878
25878
|
|
|
25879
|
-
// ../../../node_modules
|
|
25879
|
+
// ../../../node_modules/text-decoder/lib/pass-through-decoder.js
|
|
25880
25880
|
var require_pass_through_decoder = __commonJS({
|
|
25881
|
-
"../../../node_modules
|
|
25881
|
+
"../../../node_modules/text-decoder/lib/pass-through-decoder.js"(exports2, module2) {
|
|
25882
25882
|
var b4a = require_b4a();
|
|
25883
25883
|
module2.exports = class PassThroughDecoder {
|
|
25884
25884
|
constructor(encoding) {
|
|
@@ -25897,9 +25897,9 @@ var require_pass_through_decoder = __commonJS({
|
|
|
25897
25897
|
}
|
|
25898
25898
|
});
|
|
25899
25899
|
|
|
25900
|
-
// ../../../node_modules
|
|
25900
|
+
// ../../../node_modules/text-decoder/lib/utf8-decoder.js
|
|
25901
25901
|
var require_utf8_decoder = __commonJS({
|
|
25902
|
-
"../../../node_modules
|
|
25902
|
+
"../../../node_modules/text-decoder/lib/utf8-decoder.js"(exports2, module2) {
|
|
25903
25903
|
var b4a = require_b4a();
|
|
25904
25904
|
module2.exports = class UTF8Decoder {
|
|
25905
25905
|
constructor() {
|
|
@@ -26044,9 +26044,9 @@ var require_utf8_decoder = __commonJS({
|
|
|
26044
26044
|
}
|
|
26045
26045
|
});
|
|
26046
26046
|
|
|
26047
|
-
// ../../../node_modules
|
|
26047
|
+
// ../../../node_modules/text-decoder/index.js
|
|
26048
26048
|
var require_text_decoder = __commonJS({
|
|
26049
|
-
"../../../node_modules
|
|
26049
|
+
"../../../node_modules/text-decoder/index.js"(exports2, module2) {
|
|
26050
26050
|
var PassThroughDecoder = require_pass_through_decoder();
|
|
26051
26051
|
var UTF8Decoder = require_utf8_decoder();
|
|
26052
26052
|
module2.exports = class TextDecoder {
|
|
@@ -26106,9 +26106,9 @@ var require_text_decoder = __commonJS({
|
|
|
26106
26106
|
}
|
|
26107
26107
|
});
|
|
26108
26108
|
|
|
26109
|
-
// ../../../node_modules
|
|
26109
|
+
// ../../../node_modules/streamx/index.js
|
|
26110
26110
|
var require_streamx = __commonJS({
|
|
26111
|
-
"../../../node_modules
|
|
26111
|
+
"../../../node_modules/streamx/index.js"(exports2, module2) {
|
|
26112
26112
|
var { EventEmitter } = require_default();
|
|
26113
26113
|
var STREAM_DESTROYED = new Error("Stream was destroyed");
|
|
26114
26114
|
var PREMATURE_CLOSE = new Error("Premature close");
|
|
@@ -27083,9 +27083,9 @@ var require_streamx = __commonJS({
|
|
|
27083
27083
|
}
|
|
27084
27084
|
});
|
|
27085
27085
|
|
|
27086
|
-
// ../../../node_modules
|
|
27086
|
+
// ../../../node_modules/archiver/node_modules/tar-stream/headers.js
|
|
27087
27087
|
var require_headers = __commonJS({
|
|
27088
|
-
"../../../node_modules
|
|
27088
|
+
"../../../node_modules/archiver/node_modules/tar-stream/headers.js"(exports2) {
|
|
27089
27089
|
var b4a = require_b4a();
|
|
27090
27090
|
var ZEROS = "0000000000000000000";
|
|
27091
27091
|
var SEVENS = "7777777777777777777";
|
|
@@ -27344,9 +27344,9 @@ var require_headers = __commonJS({
|
|
|
27344
27344
|
}
|
|
27345
27345
|
});
|
|
27346
27346
|
|
|
27347
|
-
// ../../../node_modules
|
|
27347
|
+
// ../../../node_modules/archiver/node_modules/tar-stream/extract.js
|
|
27348
27348
|
var require_extract = __commonJS({
|
|
27349
|
-
"../../../node_modules
|
|
27349
|
+
"../../../node_modules/archiver/node_modules/tar-stream/extract.js"(exports2, module2) {
|
|
27350
27350
|
var { Writable, Readable: Readable2, getStreamError } = require_streamx();
|
|
27351
27351
|
var FIFO = require_fast_fifo();
|
|
27352
27352
|
var b4a = require_b4a();
|
|
@@ -27678,9 +27678,9 @@ var require_extract = __commonJS({
|
|
|
27678
27678
|
}
|
|
27679
27679
|
});
|
|
27680
27680
|
|
|
27681
|
-
// ../../../node_modules
|
|
27681
|
+
// ../../../node_modules/archiver/node_modules/tar-stream/constants.js
|
|
27682
27682
|
var require_constants2 = __commonJS({
|
|
27683
|
-
"../../../node_modules
|
|
27683
|
+
"../../../node_modules/archiver/node_modules/tar-stream/constants.js"(exports2, module2) {
|
|
27684
27684
|
var constants = {
|
|
27685
27685
|
// just for envs without fs
|
|
27686
27686
|
S_IFMT: 61440,
|
|
@@ -27698,9 +27698,9 @@ var require_constants2 = __commonJS({
|
|
|
27698
27698
|
}
|
|
27699
27699
|
});
|
|
27700
27700
|
|
|
27701
|
-
// ../../../node_modules
|
|
27701
|
+
// ../../../node_modules/archiver/node_modules/tar-stream/pack.js
|
|
27702
27702
|
var require_pack = __commonJS({
|
|
27703
|
-
"../../../node_modules
|
|
27703
|
+
"../../../node_modules/archiver/node_modules/tar-stream/pack.js"(exports2, module2) {
|
|
27704
27704
|
var { Readable: Readable2, Writable, getStreamError } = require_streamx();
|
|
27705
27705
|
var b4a = require_b4a();
|
|
27706
27706
|
var constants = require_constants2();
|
|
@@ -27932,17 +27932,17 @@ var require_pack = __commonJS({
|
|
|
27932
27932
|
}
|
|
27933
27933
|
});
|
|
27934
27934
|
|
|
27935
|
-
// ../../../node_modules
|
|
27935
|
+
// ../../../node_modules/archiver/node_modules/tar-stream/index.js
|
|
27936
27936
|
var require_tar_stream = __commonJS({
|
|
27937
|
-
"../../../node_modules
|
|
27937
|
+
"../../../node_modules/archiver/node_modules/tar-stream/index.js"(exports2) {
|
|
27938
27938
|
exports2.extract = require_extract();
|
|
27939
27939
|
exports2.pack = require_pack();
|
|
27940
27940
|
}
|
|
27941
27941
|
});
|
|
27942
27942
|
|
|
27943
|
-
// ../../../node_modules
|
|
27943
|
+
// ../../../node_modules/archiver/lib/plugins/tar.js
|
|
27944
27944
|
var require_tar = __commonJS({
|
|
27945
|
-
"../../../node_modules
|
|
27945
|
+
"../../../node_modules/archiver/lib/plugins/tar.js"(exports2, module2) {
|
|
27946
27946
|
var zlib = require("zlib");
|
|
27947
27947
|
var engine = require_tar_stream();
|
|
27948
27948
|
var util = require_archiver_utils();
|
|
@@ -28018,9 +28018,9 @@ var require_tar = __commonJS({
|
|
|
28018
28018
|
}
|
|
28019
28019
|
});
|
|
28020
28020
|
|
|
28021
|
-
// ../../../node_modules
|
|
28021
|
+
// ../../../node_modules/archiver/node_modules/buffer-crc32/dist/index.cjs
|
|
28022
28022
|
var require_dist = __commonJS({
|
|
28023
|
-
"../../../node_modules
|
|
28023
|
+
"../../../node_modules/archiver/node_modules/buffer-crc32/dist/index.cjs"(exports2, module2) {
|
|
28024
28024
|
"use strict";
|
|
28025
28025
|
function getDefaultExportFromCjs(x2) {
|
|
28026
28026
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -28326,9 +28326,9 @@ var require_dist = __commonJS({
|
|
|
28326
28326
|
}
|
|
28327
28327
|
});
|
|
28328
28328
|
|
|
28329
|
-
// ../../../node_modules
|
|
28329
|
+
// ../../../node_modules/archiver/lib/plugins/json.js
|
|
28330
28330
|
var require_json = __commonJS({
|
|
28331
|
-
"../../../node_modules
|
|
28331
|
+
"../../../node_modules/archiver/lib/plugins/json.js"(exports2, module2) {
|
|
28332
28332
|
var inherits = require("util").inherits;
|
|
28333
28333
|
var Transform = require_ours().Transform;
|
|
28334
28334
|
var crc32 = require_dist();
|
|
@@ -28380,9 +28380,9 @@ var require_json = __commonJS({
|
|
|
28380
28380
|
}
|
|
28381
28381
|
});
|
|
28382
28382
|
|
|
28383
|
-
// ../../../node_modules
|
|
28383
|
+
// ../../../node_modules/archiver/index.js
|
|
28384
28384
|
var require_archiver = __commonJS({
|
|
28385
|
-
"../../../node_modules
|
|
28385
|
+
"../../../node_modules/archiver/index.js"(exports2, module2) {
|
|
28386
28386
|
var Archiver = require_core();
|
|
28387
28387
|
var formats = {};
|
|
28388
28388
|
var vending = function(format, options) {
|
|
@@ -28423,7 +28423,7 @@ var require_archiver = __commonJS({
|
|
|
28423
28423
|
}
|
|
28424
28424
|
});
|
|
28425
28425
|
|
|
28426
|
-
//
|
|
28426
|
+
// node_modules/commander/esm.mjs
|
|
28427
28427
|
var import_index = __toESM(require_commander(), 1);
|
|
28428
28428
|
var {
|
|
28429
28429
|
program,
|
|
@@ -28452,15 +28452,18 @@ function getSlayzoneHomeDir() {
|
|
|
28452
28452
|
return import_path.default.join(home, ".slayzone");
|
|
28453
28453
|
}
|
|
28454
28454
|
|
|
28455
|
-
// ../../shared/platform/src/slayzone-mode.ts
|
|
28456
|
-
function getSlayzoneMode() {
|
|
28457
|
-
return process.env.SLAYZONE_MODE?.trim().toLowerCase() === "remote" ? "remote" : "local";
|
|
28458
|
-
}
|
|
28459
|
-
|
|
28460
28455
|
// ../../shared/platform/src/hub-addr.ts
|
|
28461
28456
|
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1"]);
|
|
28462
|
-
function
|
|
28463
|
-
|
|
28457
|
+
function isLoopbackAuthority(addr) {
|
|
28458
|
+
try {
|
|
28459
|
+
const host = new URL(`http://${addr}`).hostname.replace(/^\[|\]$/g, "");
|
|
28460
|
+
return LOOPBACK_HOSTS.has(host);
|
|
28461
|
+
} catch {
|
|
28462
|
+
return false;
|
|
28463
|
+
}
|
|
28464
|
+
}
|
|
28465
|
+
function hubUrlFromAddr(addr, kind, path10 = "") {
|
|
28466
|
+
const secure = !isLoopbackAuthority(addr);
|
|
28464
28467
|
const scheme = kind === "ws" ? secure ? "wss" : "ws" : secure ? "https" : "http";
|
|
28465
28468
|
return `${scheme}://${addr}${path10}`;
|
|
28466
28469
|
}
|
|
@@ -28473,7 +28476,7 @@ function isBareAuthority(addr) {
|
|
|
28473
28476
|
return false;
|
|
28474
28477
|
}
|
|
28475
28478
|
}
|
|
28476
|
-
function
|
|
28479
|
+
function isLoopbackComputerUrl(url) {
|
|
28477
28480
|
let host;
|
|
28478
28481
|
try {
|
|
28479
28482
|
host = new URL(url).hostname.replace(/^\[|\]$/g, "");
|
|
@@ -28490,6 +28493,46 @@ function parseHubAddress(addr) {
|
|
|
28490
28493
|
return { host: u.hostname.replace(/^\[|\]$/g, ""), port };
|
|
28491
28494
|
}
|
|
28492
28495
|
|
|
28496
|
+
// ../../shared/platform/src/hub-switches.ts
|
|
28497
|
+
var HUB_SWITCH_ENV = {
|
|
28498
|
+
requireLogin: "SLAYZONE_HUB_REQUIRE_LOGIN",
|
|
28499
|
+
enablePassword: "SLAYZONE_HUB_ENABLE_PASSWORD",
|
|
28500
|
+
enableSso: "SLAYZONE_HUB_ENABLE_SSO",
|
|
28501
|
+
enableProcesses: "SLAYZONE_HUB_ENABLE_PROCESSES",
|
|
28502
|
+
enableIntegrations: "SLAYZONE_HUB_ENABLE_INTEGRATIONS"
|
|
28503
|
+
};
|
|
28504
|
+
var HUB_SWITCH_DEFAULTS = {
|
|
28505
|
+
requireLogin: false,
|
|
28506
|
+
enablePassword: true,
|
|
28507
|
+
enableSso: false,
|
|
28508
|
+
enableProcesses: true,
|
|
28509
|
+
enableIntegrations: true
|
|
28510
|
+
};
|
|
28511
|
+
var HUB_SSO_ENV = {
|
|
28512
|
+
tenantId: "SLAYZONE_HUB_SSO_TENANT_ID",
|
|
28513
|
+
clientId: "SLAYZONE_HUB_SSO_CLIENT_ID",
|
|
28514
|
+
/** Secret — env only, never read from `hub.config.json`, never logged. */
|
|
28515
|
+
clientSecret: "SLAYZONE_HUB_SSO_CLIENT_SECRET"
|
|
28516
|
+
};
|
|
28517
|
+
var HUB_ADDRESS_ENV = {
|
|
28518
|
+
/** Where the hub LISTENS. Renamed from `SLAYZONE_HUB_ADDRESS`, which now only
|
|
28519
|
+
* means "the hub to connect to" on a computer / `slay`. */
|
|
28520
|
+
listen: "SLAYZONE_HUB_LISTEN_ADDRESS",
|
|
28521
|
+
/** How OTHER machines reach the hub (`host[:port]`, no scheme). */
|
|
28522
|
+
public: "SLAYZONE_HUB_PUBLIC_ADDRESS",
|
|
28523
|
+
/** Signing key of hub-auth. */
|
|
28524
|
+
authSecret: "SLAYZONE_HUB_AUTH_SECRET"
|
|
28525
|
+
};
|
|
28526
|
+
var LEGACY_HUB_LISTEN_ENV = "SLAYZONE_HUB_ADDRESS";
|
|
28527
|
+
var HUB_ALLOWED_WEB_ORIGINS_ENV = "SLAYZONE_HUB_ALLOWED_WEB_ORIGINS";
|
|
28528
|
+
var HUB_PROCESS_ENV = [
|
|
28529
|
+
...Object.values(HUB_SWITCH_ENV),
|
|
28530
|
+
...Object.values(HUB_SSO_ENV),
|
|
28531
|
+
...Object.values(HUB_ADDRESS_ENV),
|
|
28532
|
+
LEGACY_HUB_LISTEN_ENV,
|
|
28533
|
+
HUB_ALLOWED_WEB_ORIGINS_ENV
|
|
28534
|
+
];
|
|
28535
|
+
|
|
28493
28536
|
// ../../shared/platform/src/paths.ts
|
|
28494
28537
|
function getStorageDir() {
|
|
28495
28538
|
return getSlayzoneHomeDir();
|
|
@@ -28558,15 +28601,26 @@ function parseHub(body, port) {
|
|
|
28558
28601
|
pid: b.pid,
|
|
28559
28602
|
root: b.root,
|
|
28560
28603
|
dbPath: typeof b.dbPath === "string" ? b.dbPath : "",
|
|
28561
|
-
|
|
28604
|
+
authRequired: b.authRequired === true,
|
|
28605
|
+
switches: parseSwitches(b.switches),
|
|
28562
28606
|
supervised: b.supervised === true,
|
|
28563
|
-
|
|
28607
|
+
computersConnected: typeof b.computersConnected === "number" ? b.computersConnected : 0,
|
|
28564
28608
|
uptimeMs: typeof b.uptimeMs === "number" ? b.uptimeMs : 0,
|
|
28565
28609
|
commit: typeof b.commit === "string" ? b.commit : "unknown",
|
|
28566
28610
|
builtAt: typeof b.builtAt === "string" ? b.builtAt : "unknown",
|
|
28567
28611
|
buildId: typeof b.buildId === "string" ? b.buildId : "unknown"
|
|
28568
28612
|
};
|
|
28569
28613
|
}
|
|
28614
|
+
function parseSwitches(raw) {
|
|
28615
|
+
if (typeof raw !== "object" || raw === null) return null;
|
|
28616
|
+
const o = raw;
|
|
28617
|
+
const out = { ...HUB_SWITCH_DEFAULTS };
|
|
28618
|
+
for (const key of Object.keys(HUB_SWITCH_ENV)) {
|
|
28619
|
+
if (typeof o[key] !== "boolean") return null;
|
|
28620
|
+
out[key] = o[key];
|
|
28621
|
+
}
|
|
28622
|
+
return out;
|
|
28623
|
+
}
|
|
28570
28624
|
async function discoverHubs(opts = {}) {
|
|
28571
28625
|
const range = opts.range ?? HUB_PORT_BLOCK;
|
|
28572
28626
|
const timeoutMs = opts.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
@@ -28603,6 +28657,37 @@ async function findHub(nameOrPort, opts = {}) {
|
|
|
28603
28657
|
return hubs.find((h) => h.name === trimmed) ?? null;
|
|
28604
28658
|
}
|
|
28605
28659
|
|
|
28660
|
+
// ../../shared/platform/src/hub-owner-file.ts
|
|
28661
|
+
var import_promises = require("node:fs/promises");
|
|
28662
|
+
var import_node_path = require("node:path");
|
|
28663
|
+
function ownerFilePath(dataRoot) {
|
|
28664
|
+
return (0, import_node_path.join)(dataRoot, "hub.owner.json");
|
|
28665
|
+
}
|
|
28666
|
+
function parseOwnerFile(value) {
|
|
28667
|
+
if (typeof value !== "object" || value === null) return null;
|
|
28668
|
+
const v2 = value;
|
|
28669
|
+
if (typeof v2.userId !== "string" || v2.userId.length === 0) return null;
|
|
28670
|
+
if (typeof v2.email !== "string" || v2.email.length === 0) return null;
|
|
28671
|
+
if (typeof v2.password !== "string" || v2.password.length === 0) return null;
|
|
28672
|
+
if (typeof v2.createdAt !== "number") return null;
|
|
28673
|
+
if (v2.token !== void 0 && (typeof v2.token !== "string" || v2.token.length === 0)) return null;
|
|
28674
|
+
return {
|
|
28675
|
+
userId: v2.userId,
|
|
28676
|
+
email: v2.email,
|
|
28677
|
+
password: v2.password,
|
|
28678
|
+
createdAt: v2.createdAt,
|
|
28679
|
+
...typeof v2.token === "string" ? { token: v2.token } : {}
|
|
28680
|
+
};
|
|
28681
|
+
}
|
|
28682
|
+
async function readBootstrapOwner(dataRoot) {
|
|
28683
|
+
try {
|
|
28684
|
+
const raw = await (0, import_promises.readFile)(ownerFilePath(dataRoot), "utf-8");
|
|
28685
|
+
return parseOwnerFile(JSON.parse(raw));
|
|
28686
|
+
} catch {
|
|
28687
|
+
return null;
|
|
28688
|
+
}
|
|
28689
|
+
}
|
|
28690
|
+
|
|
28606
28691
|
// src/hub-config.ts
|
|
28607
28692
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
28608
28693
|
var import_path3 = __toESM(require("path"), 1);
|
|
@@ -28621,6 +28706,15 @@ var execFileAsync = (0, import_util.promisify)(import_child_process.execFile);
|
|
|
28621
28706
|
var SLZ_FILE_HOST = "app";
|
|
28622
28707
|
var SLZ_FILE_PREFIX = `slz-file://${SLZ_FILE_HOST}`;
|
|
28623
28708
|
|
|
28709
|
+
// ../../shared/platform/src/html-theme-css.ts
|
|
28710
|
+
var FORCED_HTML_THEME_CSS = {
|
|
28711
|
+
dark: [
|
|
28712
|
+
"html{filter:invert(90%) hue-rotate(180deg)!important}",
|
|
28713
|
+
"img,video,canvas,svg,iframe{filter:invert(90%) hue-rotate(180deg)!important}"
|
|
28714
|
+
].join(""),
|
|
28715
|
+
light: ":root{color-scheme:light!important}"
|
|
28716
|
+
};
|
|
28717
|
+
|
|
28624
28718
|
// ../../shared/platform/src/ipc-dedup.ts
|
|
28625
28719
|
var UNCHANGED = Object.freeze({ __ipc_unchanged__: true });
|
|
28626
28720
|
|
|
@@ -28746,23 +28840,23 @@ function removeHubConfig() {
|
|
|
28746
28840
|
}
|
|
28747
28841
|
|
|
28748
28842
|
// src/local-hub.ts
|
|
28749
|
-
var
|
|
28843
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
28750
28844
|
function fixedPortForChannel() {
|
|
28751
28845
|
return process.env.SLAYZONE_DEV === "1" ? SIDECAR_FIXED_PORT.dev : SIDECAR_FIXED_PORT.prod;
|
|
28752
28846
|
}
|
|
28753
28847
|
function expectedRoot() {
|
|
28754
28848
|
const root = process.env.SLAYZONE_ROOT?.trim();
|
|
28755
|
-
return root ?
|
|
28849
|
+
return root ? import_node_path2.default.resolve(root) : null;
|
|
28756
28850
|
}
|
|
28757
28851
|
async function probeFixedPort() {
|
|
28758
28852
|
const port = fixedPortForChannel();
|
|
28759
28853
|
const hub = await findHub(String(port));
|
|
28760
28854
|
if (!hub) return { kind: "absent" };
|
|
28761
28855
|
const expected = expectedRoot();
|
|
28762
|
-
if (expected &&
|
|
28856
|
+
if (expected && import_node_path2.default.resolve(hub.root) !== expected) {
|
|
28763
28857
|
return { kind: "foreign", port: hub.port, root: hub.root, expected };
|
|
28764
28858
|
}
|
|
28765
|
-
return { kind: "found", port: hub.port };
|
|
28859
|
+
return { kind: "found", port: hub.port, root: hub.root, authRequired: hub.authRequired };
|
|
28766
28860
|
}
|
|
28767
28861
|
async function isCoLocatedHub() {
|
|
28768
28862
|
const configured = resolveHubTarget();
|
|
@@ -28794,7 +28888,8 @@ Set SLAYZONE_HUB_ADDRESS to the intended app, or run from a shell that belongs t
|
|
|
28794
28888
|
console.error("SlayZone server port not found. Is the app running?");
|
|
28795
28889
|
process.exit(1);
|
|
28796
28890
|
}
|
|
28797
|
-
|
|
28891
|
+
const ownerToken = probe2.authRequired ? (await readBootstrapOwner(probe2.root))?.token : null;
|
|
28892
|
+
return { baseUrl: `http://127.0.0.1:${probe2.port}`, token: ownerToken ?? null, hub: false };
|
|
28798
28893
|
}
|
|
28799
28894
|
function withAuth(init, token) {
|
|
28800
28895
|
if (!token) return init;
|
|
@@ -29677,7 +29772,7 @@ var import_archiver = __toESM(require_archiver(), 1);
|
|
|
29677
29772
|
var import_fs5 = __toESM(require("fs"), 1);
|
|
29678
29773
|
var import_path6 = __toESM(require("path"), 1);
|
|
29679
29774
|
var import_node_stream = require("node:stream");
|
|
29680
|
-
var
|
|
29775
|
+
var import_promises2 = require("node:stream/promises");
|
|
29681
29776
|
|
|
29682
29777
|
// ../../domains/task/src/shared/types.ts
|
|
29683
29778
|
var COLD_RESPAWN_MS = 30 * 60 * 1e3;
|
|
@@ -29990,7 +30085,7 @@ function fileStream(filePath) {
|
|
|
29990
30085
|
}
|
|
29991
30086
|
async function streamToStdout(body) {
|
|
29992
30087
|
try {
|
|
29993
|
-
await (0,
|
|
30088
|
+
await (0, import_promises2.pipeline)(import_node_stream.Readable.fromWeb(body), process.stdout, { end: false });
|
|
29994
30089
|
} catch (err) {
|
|
29995
30090
|
if (err?.code !== "EPIPE") throw err;
|
|
29996
30091
|
}
|
|
@@ -30314,7 +30409,7 @@ pdf/png/html require the SlayZone app to be running.
|
|
|
30314
30409
|
);
|
|
30315
30410
|
const outputPath2 = opts.output ? import_path6.default.resolve(opts.output) : import_path6.default.resolve(artifact.title);
|
|
30316
30411
|
import_fs5.default.mkdirSync(import_path6.default.dirname(outputPath2), { recursive: true });
|
|
30317
|
-
await (0,
|
|
30412
|
+
await (0, import_promises2.pipeline)(
|
|
30318
30413
|
import_node_stream.Readable.fromWeb(body),
|
|
30319
30414
|
import_fs5.default.createWriteStream(outputPath2)
|
|
30320
30415
|
);
|
|
@@ -30531,7 +30626,7 @@ function tasksCommand() {
|
|
|
30531
30626
|
|
|
30532
30627
|
// src/commands/projects.ts
|
|
30533
30628
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
30534
|
-
var
|
|
30629
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
30535
30630
|
|
|
30536
30631
|
// ../../shared/workflow/src/types.ts
|
|
30537
30632
|
var WORKFLOW_CATEGORIES = [
|
|
@@ -30603,6 +30698,16 @@ function isTerminalCategory(category) {
|
|
|
30603
30698
|
return TERMINAL_CATEGORIES.includes(category);
|
|
30604
30699
|
}
|
|
30605
30700
|
|
|
30701
|
+
// ../../shared/ui/src/secure-context.ts
|
|
30702
|
+
var fallbackUuidCounter = 0;
|
|
30703
|
+
function safeRandomUUID() {
|
|
30704
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
30705
|
+
return crypto.randomUUID();
|
|
30706
|
+
}
|
|
30707
|
+
fallbackUuidCounter += 1;
|
|
30708
|
+
return `insecure-ctx-${Date.now()}-${fallbackUuidCounter}`;
|
|
30709
|
+
}
|
|
30710
|
+
|
|
30606
30711
|
// ../../domains/projects/src/shared/create-project.ts
|
|
30607
30712
|
var HEX_COLOR_RE = /^#[0-9a-fA-F]{6}$/;
|
|
30608
30713
|
function normalizeProjectName(name) {
|
|
@@ -30626,7 +30731,7 @@ function prepareProjectCreate(input) {
|
|
|
30626
30731
|
const path10 = typeof input.path === "string" ? input.path.trim() || null : input.path ?? null;
|
|
30627
30732
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
30628
30733
|
return {
|
|
30629
|
-
id:
|
|
30734
|
+
id: safeRandomUUID(),
|
|
30630
30735
|
name,
|
|
30631
30736
|
color,
|
|
30632
30737
|
path: path10,
|
|
@@ -30653,7 +30758,7 @@ function normalizeProjectPath(input) {
|
|
|
30653
30758
|
if (!input) return null;
|
|
30654
30759
|
const trimmed = input.trim();
|
|
30655
30760
|
if (!trimmed) return null;
|
|
30656
|
-
return
|
|
30761
|
+
return import_node_path3.default.resolve(trimmed);
|
|
30657
30762
|
}
|
|
30658
30763
|
function ensureProjectPath(projectPath) {
|
|
30659
30764
|
if (!projectPath) return false;
|
|
@@ -30876,13 +30981,13 @@ complete -c slay -n '__fish_use_subcommand' -a 'templates' -d 'Manage task templ
|
|
|
30876
30981
|
complete -c slay -n '__fish_use_subcommand' -a 'automations' -d 'Manage automations'
|
|
30877
30982
|
complete -c slay -n '__fish_use_subcommand' -a 'processes' -d 'Manage processes'
|
|
30878
30983
|
complete -c slay -n '__fish_use_subcommand' -a 'hub' -d 'Run, list and target SlayZone hubs'
|
|
30879
|
-
complete -c slay -n '__fish_use_subcommand' -a '
|
|
30984
|
+
complete -c slay -n '__fish_use_subcommand' -a 'computer' -d 'Run and manage SlayZone computers'
|
|
30880
30985
|
complete -c slay -n '__fish_use_subcommand' -a 'update' -d 'Update globally npm-installed @slayzone packages'
|
|
30881
30986
|
complete -c slay -n '__fish_use_subcommand' -a 'completions' -d 'Print shell completions'
|
|
30882
30987
|
complete -c slay -n '__fish_seen_subcommand_from tasks' -a 'list create view done update archive delete open search subtasks subtask-add tag'
|
|
30883
30988
|
complete -c slay -n '__fish_seen_subcommand_from processes' -a 'list logs kill follow'
|
|
30884
30989
|
complete -c slay -n '__fish_seen_subcommand_from hub' -a 'ls create start stop rm restart logs registered use login current forget users'
|
|
30885
|
-
complete -c slay -n '__fish_seen_subcommand_from
|
|
30990
|
+
complete -c slay -n '__fish_seen_subcommand_from computer' -a 'ls mint create start stop rm restart logs'
|
|
30886
30991
|
complete -c slay -n '__fish_seen_subcommand_from projects' -a 'list create update'
|
|
30887
30992
|
complete -c slay -n '__fish_seen_subcommand_from tags' -a 'list create delete'
|
|
30888
30993
|
complete -c slay -n '__fish_seen_subcommand_from templates' -a 'list view create update delete'
|
|
@@ -30901,7 +31006,7 @@ _slay() {
|
|
|
30901
31006
|
'automations:Manage automations'
|
|
30902
31007
|
'processes:Manage processes'
|
|
30903
31008
|
'hub:Run, list and target SlayZone hubs'
|
|
30904
|
-
'
|
|
31009
|
+
'computer:Run and manage SlayZone computers'
|
|
30905
31010
|
'update:Update globally npm-installed @slayzone packages'
|
|
30906
31011
|
'completions:Print shell completions'
|
|
30907
31012
|
)
|
|
@@ -30968,16 +31073,16 @@ _slay() {
|
|
|
30968
31073
|
'forget:Drop the stored hub target'
|
|
30969
31074
|
'users:Manage the accounts that can sign in to a hub'
|
|
30970
31075
|
)
|
|
30971
|
-
local -a
|
|
30972
|
-
|
|
30973
|
-
'ls:List installed
|
|
30974
|
-
'mint:Mint a
|
|
30975
|
-
'create:Install a
|
|
30976
|
-
'start:Start a stopped
|
|
30977
|
-
'stop:Stop a
|
|
30978
|
-
'rm:Stop a
|
|
30979
|
-
'restart:Restart a
|
|
30980
|
-
'logs:Show a
|
|
31076
|
+
local -a computer_commands
|
|
31077
|
+
computer_commands=(
|
|
31078
|
+
'ls:List installed computers'
|
|
31079
|
+
'mint:Mint a computer enrollment token on a hub'
|
|
31080
|
+
'create:Install a computer here and keep it running'
|
|
31081
|
+
'start:Start a stopped computer'
|
|
31082
|
+
'stop:Stop a computer, keeping it registered'
|
|
31083
|
+
'rm:Stop a computer and remove its registration'
|
|
31084
|
+
'restart:Restart a computer'
|
|
31085
|
+
'logs:Show a computer log'
|
|
30981
31086
|
)
|
|
30982
31087
|
case $words[2] in
|
|
30983
31088
|
tasks)
|
|
@@ -31001,8 +31106,8 @@ _slay() {
|
|
|
31001
31106
|
hub)
|
|
31002
31107
|
_describe 'hub commands' hub_commands
|
|
31003
31108
|
;;
|
|
31004
|
-
|
|
31005
|
-
_describe '
|
|
31109
|
+
computer)
|
|
31110
|
+
_describe 'computer commands' computer_commands
|
|
31006
31111
|
;;
|
|
31007
31112
|
update)
|
|
31008
31113
|
_arguments '--check[Report available updates without installing]'
|
|
@@ -31024,7 +31129,7 @@ _slay_completions() {
|
|
|
31024
31129
|
cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
31025
31130
|
prev="\${COMP_WORDS[COMP_CWORD-1]}"
|
|
31026
31131
|
if [ $COMP_CWORD -eq 1 ]; then
|
|
31027
|
-
COMPREPLY=( $(compgen -W "tasks projects tags templates automations processes hub
|
|
31132
|
+
COMPREPLY=( $(compgen -W "tasks projects tags templates automations processes hub computer update completions" -- "$cur") )
|
|
31028
31133
|
elif [ $COMP_CWORD -eq 2 ]; then
|
|
31029
31134
|
case "$prev" in
|
|
31030
31135
|
tasks)
|
|
@@ -31048,7 +31153,7 @@ _slay_completions() {
|
|
|
31048
31153
|
hub)
|
|
31049
31154
|
COMPREPLY=( $(compgen -W "ls create start stop rm restart logs registered use login current forget users" -- "$cur") )
|
|
31050
31155
|
;;
|
|
31051
|
-
|
|
31156
|
+
computer)
|
|
31052
31157
|
COMPREPLY=( $(compgen -W "ls mint create start stop rm restart logs" -- "$cur") )
|
|
31053
31158
|
;;
|
|
31054
31159
|
update)
|
|
@@ -31087,7 +31192,7 @@ function completionsCommand() {
|
|
|
31087
31192
|
|
|
31088
31193
|
// src/commands/init.ts
|
|
31089
31194
|
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
31090
|
-
var
|
|
31195
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
31091
31196
|
|
|
31092
31197
|
// ../../domains/ai-config/src/shared/provider-registry.ts
|
|
31093
31198
|
var PROVIDER_PATHS = {
|
|
@@ -31241,7 +31346,7 @@ var COMPUTER_MCP_SPECS = {
|
|
|
31241
31346
|
copilot: jsonMcpSpec(".copilot/mcp-config.json", "mcpServers", { writable: false })
|
|
31242
31347
|
};
|
|
31243
31348
|
|
|
31244
|
-
// ../../../node_modules
|
|
31349
|
+
// ../../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
31245
31350
|
function isNothing(subject) {
|
|
31246
31351
|
return typeof subject === "undefined" || subject === null;
|
|
31247
31352
|
}
|
|
@@ -33827,7 +33932,7 @@ var safeLoad = renamed("safeLoad", "load");
|
|
|
33827
33932
|
var safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
33828
33933
|
var safeDump = renamed("safeDump", "dump");
|
|
33829
33934
|
|
|
33830
|
-
// ../../../node_modules
|
|
33935
|
+
// ../../../node_modules/@dagrejs/dagre/dist/dagre.esm.js
|
|
33831
33936
|
var ge = Object.defineProperty;
|
|
33832
33937
|
var fn = (e, n) => {
|
|
33833
33938
|
for (var t in n) ge(e, t, { get: n[t], enumerable: true });
|
|
@@ -34491,7 +34596,7 @@ function writeInstructionsToDisk(projectPath, providers) {
|
|
|
34491
34596
|
}
|
|
34492
34597
|
const written = [];
|
|
34493
34598
|
for (const filename of filenames) {
|
|
34494
|
-
const filePath =
|
|
34599
|
+
const filePath = import_node_path4.default.join(projectPath, filename);
|
|
34495
34600
|
const existing = import_node_fs2.default.existsSync(filePath) ? import_node_fs2.default.readFileSync(filePath, "utf-8") : "";
|
|
34496
34601
|
const prefix = existing && !existing.endsWith("\n") ? "\n" : "";
|
|
34497
34602
|
import_node_fs2.default.appendFileSync(filePath, prefix + INSTRUCTIONS, "utf-8");
|
|
@@ -34504,8 +34609,8 @@ function writeSkillsToDisk(projectPath, providers, skills) {
|
|
|
34504
34609
|
const mapping = PROVIDER_PATHS[provider];
|
|
34505
34610
|
if (!mapping?.skillsDir) continue;
|
|
34506
34611
|
for (const skill of skills) {
|
|
34507
|
-
const filePath =
|
|
34508
|
-
import_node_fs2.default.mkdirSync(
|
|
34612
|
+
const filePath = import_node_path4.default.join(projectPath, mapping.skillsDir, skill.slug, "SKILL.md");
|
|
34613
|
+
import_node_fs2.default.mkdirSync(import_node_path4.default.dirname(filePath), { recursive: true });
|
|
34509
34614
|
import_node_fs2.default.writeFileSync(filePath, skill.content, "utf-8");
|
|
34510
34615
|
}
|
|
34511
34616
|
}
|
|
@@ -35350,42 +35455,54 @@ function panelsCommand() {
|
|
|
35350
35455
|
// src/commands/hub.ts
|
|
35351
35456
|
var import_node_child_process3 = require("node:child_process");
|
|
35352
35457
|
var import_node_fs7 = require("node:fs");
|
|
35353
|
-
var
|
|
35458
|
+
var import_node_path8 = require("node:path");
|
|
35354
35459
|
|
|
35355
35460
|
// ../../shared/platform/src/slayzone-config.ts
|
|
35356
35461
|
var import_node_fs4 = require("node:fs");
|
|
35357
|
-
var
|
|
35462
|
+
var import_node_path5 = require("node:path");
|
|
35358
35463
|
|
|
35359
|
-
// ../../shared/platform/src/
|
|
35360
|
-
var
|
|
35464
|
+
// ../../shared/platform/src/computer-identity.ts
|
|
35465
|
+
var DEFAULT_LOCAL_COMPUTER_NAME = "local-computer";
|
|
35361
35466
|
|
|
35362
35467
|
// ../../shared/platform/src/slayzone-config.ts
|
|
35468
|
+
var HUB_CONFIG_SWITCH_KEYS = [
|
|
35469
|
+
"requireLogin",
|
|
35470
|
+
"enablePassword",
|
|
35471
|
+
"enableSso",
|
|
35472
|
+
"enableProcesses",
|
|
35473
|
+
"enableIntegrations"
|
|
35474
|
+
];
|
|
35363
35475
|
function getHubConfigFilePath() {
|
|
35364
|
-
return (0,
|
|
35476
|
+
return (0, import_node_path5.join)(getSlayzoneHomeDir(), "hub.config.json");
|
|
35365
35477
|
}
|
|
35366
|
-
function
|
|
35367
|
-
return (0,
|
|
35478
|
+
function getComputerConfigFilePath() {
|
|
35479
|
+
return (0, import_node_path5.join)(getSlayzoneHomeDir(), "computer.config.json");
|
|
35368
35480
|
}
|
|
35369
35481
|
function legacyConfigFilePathFor(newFilePath) {
|
|
35370
|
-
return (0,
|
|
35482
|
+
return (0, import_node_path5.join)((0, import_node_path5.dirname)(newFilePath), "config.json");
|
|
35371
35483
|
}
|
|
35372
35484
|
function coerceHubConfig(raw) {
|
|
35373
35485
|
const cfg = {};
|
|
35374
|
-
if (typeof raw.
|
|
35486
|
+
if (typeof raw.listenAddress === "string" && raw.listenAddress.length > 0)
|
|
35487
|
+
cfg.listenAddress = raw.listenAddress;
|
|
35375
35488
|
if (typeof raw.publicAddress === "string" && raw.publicAddress.length > 0)
|
|
35376
35489
|
cfg.publicAddress = raw.publicAddress;
|
|
35377
|
-
if (raw.mode === "local" || raw.mode === "remote") cfg.mode = raw.mode;
|
|
35378
35490
|
if (typeof raw.hubName === "string" && raw.hubName.trim().length > 0)
|
|
35379
35491
|
cfg.hubName = raw.hubName.trim();
|
|
35380
|
-
|
|
35381
|
-
|
|
35492
|
+
for (const key of HUB_CONFIG_SWITCH_KEYS) {
|
|
35493
|
+
if (typeof raw[key] === "boolean") cfg[key] = raw[key];
|
|
35494
|
+
}
|
|
35495
|
+
if (typeof raw.ssoTenantId === "string" && raw.ssoTenantId.trim().length > 0)
|
|
35496
|
+
cfg.ssoTenantId = raw.ssoTenantId.trim();
|
|
35497
|
+
if (typeof raw.ssoClientId === "string" && raw.ssoClientId.trim().length > 0)
|
|
35498
|
+
cfg.ssoClientId = raw.ssoClientId.trim();
|
|
35382
35499
|
return cfg;
|
|
35383
35500
|
}
|
|
35384
|
-
function
|
|
35501
|
+
function coerceComputerConfig(raw) {
|
|
35385
35502
|
const cfg = {};
|
|
35386
35503
|
if (typeof raw.joinToken === "string" && raw.joinToken.length > 0) cfg.joinToken = raw.joinToken;
|
|
35387
|
-
if (typeof raw.
|
|
35388
|
-
cfg.
|
|
35504
|
+
if (typeof raw.computerName === "string" && raw.computerName.length > 0)
|
|
35505
|
+
cfg.computerName = raw.computerName;
|
|
35389
35506
|
if (typeof raw.hubUrl === "string" && raw.hubUrl.length > 0) cfg.hubUrl = raw.hubUrl;
|
|
35390
35507
|
if (Array.isArray(raw.allowedRoots)) {
|
|
35391
35508
|
const roots = raw.allowedRoots.filter((r) => typeof r === "string" && r.length > 0);
|
|
@@ -35425,7 +35542,7 @@ function readJsonObject(path10) {
|
|
|
35425
35542
|
return parsed;
|
|
35426
35543
|
}
|
|
35427
35544
|
function writeJsonAtomic(path10, data) {
|
|
35428
|
-
const dir = (0,
|
|
35545
|
+
const dir = (0, import_node_path5.dirname)(path10);
|
|
35429
35546
|
(0, import_node_fs4.mkdirSync)(dir, { recursive: true, mode: 448 });
|
|
35430
35547
|
const tmpPath = `${path10}.tmp-${process.pid}-${Date.now()}`;
|
|
35431
35548
|
(0, import_node_fs4.writeFileSync)(tmpPath, `${JSON.stringify(data, null, 2)}
|
|
@@ -35449,22 +35566,22 @@ function updateHubConfigFile(patch, path10 = getHubConfigFilePath()) {
|
|
|
35449
35566
|
saveHubConfigFile(merged, path10);
|
|
35450
35567
|
return merged;
|
|
35451
35568
|
}
|
|
35452
|
-
function
|
|
35569
|
+
function loadComputerConfigFile(path10 = getComputerConfigFilePath()) {
|
|
35453
35570
|
const raw = readJsonObject(path10);
|
|
35454
|
-
if (raw) return
|
|
35571
|
+
if (raw) return coerceComputerConfig(raw);
|
|
35455
35572
|
const legacy = readJsonObject(legacyConfigFilePathFor(path10));
|
|
35456
|
-
return legacy ?
|
|
35573
|
+
return legacy ? coerceComputerConfig(legacy) : {};
|
|
35457
35574
|
}
|
|
35458
|
-
function
|
|
35575
|
+
function saveComputerConfigFile(cfg, path10 = getComputerConfigFilePath()) {
|
|
35459
35576
|
writeJsonAtomic(path10, cfg);
|
|
35460
35577
|
}
|
|
35461
|
-
function
|
|
35578
|
+
function updateComputerConfigFile(patch, path10 = getComputerConfigFilePath()) {
|
|
35462
35579
|
const current = readJsonObject(path10);
|
|
35463
|
-
const merged = current ?
|
|
35580
|
+
const merged = current ? coerceComputerConfig(current) : {};
|
|
35464
35581
|
for (const [k, v2] of Object.entries(patch)) {
|
|
35465
35582
|
if (v2 !== void 0) merged[k] = v2;
|
|
35466
35583
|
}
|
|
35467
|
-
|
|
35584
|
+
saveComputerConfigFile(merged, path10);
|
|
35468
35585
|
return merged;
|
|
35469
35586
|
}
|
|
35470
35587
|
|
|
@@ -35472,7 +35589,7 @@ function updateRunnerConfigFile(patch, path10 = getRunnerConfigFilePath()) {
|
|
|
35472
35589
|
var import_node_child_process = require("node:child_process");
|
|
35473
35590
|
var import_node_fs5 = require("node:fs");
|
|
35474
35591
|
var import_node_os = require("node:os");
|
|
35475
|
-
var
|
|
35592
|
+
var import_node_path6 = require("node:path");
|
|
35476
35593
|
var KINDS = {
|
|
35477
35594
|
hub: {
|
|
35478
35595
|
labelPrefix: "com.slayzone.hub.",
|
|
@@ -35486,14 +35603,14 @@ var KINDS = {
|
|
|
35486
35603
|
/** How an operator picks a different name — quoted in the invalid-name error. */
|
|
35487
35604
|
renameHint: "Rename with `--name` or the config.json `hubName` key."
|
|
35488
35605
|
},
|
|
35489
|
-
|
|
35490
|
-
labelPrefix: "com.slayzone.
|
|
35491
|
-
systemdPrefix: "slayzone-
|
|
35492
|
-
description: "SlayZone
|
|
35493
|
-
outLog: "
|
|
35494
|
-
errLog: "
|
|
35495
|
-
logsCommand: "slay
|
|
35496
|
-
renameHint: "Pick a different name for `slay
|
|
35606
|
+
computer: {
|
|
35607
|
+
labelPrefix: "com.slayzone.computer.",
|
|
35608
|
+
systemdPrefix: "slayzone-computer-",
|
|
35609
|
+
description: "SlayZone computer",
|
|
35610
|
+
outLog: "computer.out.log",
|
|
35611
|
+
errLog: "computer.err.log",
|
|
35612
|
+
logsCommand: "slay computer logs",
|
|
35613
|
+
renameHint: "Pick a different name for `slay computer create`."
|
|
35497
35614
|
}
|
|
35498
35615
|
};
|
|
35499
35616
|
function isValidServiceName(name) {
|
|
@@ -35508,8 +35625,8 @@ function assertValidServiceName(kind, name) {
|
|
|
35508
35625
|
}
|
|
35509
35626
|
function defaultUnitDir(backend) {
|
|
35510
35627
|
const home = process.env.HOME ?? (0, import_node_os.homedir)();
|
|
35511
|
-
if (backend === "launchd") return (0,
|
|
35512
|
-
if (backend === "systemd") return (0,
|
|
35628
|
+
if (backend === "launchd") return (0, import_node_path6.join)(home, "Library", "LaunchAgents");
|
|
35629
|
+
if (backend === "systemd") return (0, import_node_path6.join)(home, ".config", "systemd", "user");
|
|
35513
35630
|
throw new Error("[slayzone] no unit directory: this platform has no user service backend");
|
|
35514
35631
|
}
|
|
35515
35632
|
function derivedRuntimeDir() {
|
|
@@ -35577,7 +35694,7 @@ then log out and back in.`;
|
|
|
35577
35694
|
}
|
|
35578
35695
|
function unitPath(kind, name, backend, unitDir = defaultUnitDir(backend)) {
|
|
35579
35696
|
assertValidServiceName(kind, name);
|
|
35580
|
-
return backend === "launchd" ? (0,
|
|
35697
|
+
return backend === "launchd" ? (0, import_node_path6.join)(unitDir, `${KINDS[kind].labelPrefix}${name}.plist`) : (0, import_node_path6.join)(unitDir, `${KINDS[kind].systemdPrefix}${name}.service`);
|
|
35581
35698
|
}
|
|
35582
35699
|
function nameFromUnitFile(kind, file, backend) {
|
|
35583
35700
|
if (backend === "launchd") {
|
|
@@ -35592,12 +35709,19 @@ function nameFromUnitFile(kind, file, backend) {
|
|
|
35592
35709
|
function xmlEscape(value) {
|
|
35593
35710
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
35594
35711
|
}
|
|
35712
|
+
var UNIT_SECRET_ENV_KEYS = [
|
|
35713
|
+
"SLAYZONE_HUB_AUTH_SECRET",
|
|
35714
|
+
"SLAYZONE_HUB_SSO_CLIENT_SECRET"
|
|
35715
|
+
];
|
|
35716
|
+
function unitHoldsSecret(spec) {
|
|
35717
|
+
return Object.keys(spec.env ?? {}).some((k) => UNIT_SECRET_ENV_KEYS.includes(k));
|
|
35718
|
+
}
|
|
35595
35719
|
function unitEnv(spec) {
|
|
35596
35720
|
const merged = { SLAYZONE_ROOT: spec.root };
|
|
35597
35721
|
if (spec.kind === "hub") {
|
|
35598
35722
|
merged.SLAYZONE_HUB_NAME = spec.name;
|
|
35599
|
-
if (spec.address !== void 0) merged.
|
|
35600
|
-
else if (spec.port !== void 0) merged.
|
|
35723
|
+
if (spec.address !== void 0) merged.SLAYZONE_HUB_LISTEN_ADDRESS = spec.address;
|
|
35724
|
+
else if (spec.port !== void 0) merged.SLAYZONE_HUB_LISTEN_ADDRESS = `127.0.0.1:${spec.port}`;
|
|
35601
35725
|
}
|
|
35602
35726
|
Object.assign(merged, spec.env ?? {});
|
|
35603
35727
|
return Object.entries(merged);
|
|
@@ -35632,9 +35756,9 @@ ${envEntries}
|
|
|
35632
35756
|
<false/>
|
|
35633
35757
|
</dict>
|
|
35634
35758
|
<key>StandardOutPath</key>
|
|
35635
|
-
<string>${xmlEscape((0,
|
|
35759
|
+
<string>${xmlEscape((0, import_node_path6.join)(spec.logDir, kind.outLog))}</string>
|
|
35636
35760
|
<key>StandardErrorPath</key>
|
|
35637
|
-
<string>${xmlEscape((0,
|
|
35761
|
+
<string>${xmlEscape((0, import_node_path6.join)(spec.logDir, kind.errLog))}</string>
|
|
35638
35762
|
<key>ProcessType</key>
|
|
35639
35763
|
<string>Background</string>
|
|
35640
35764
|
</dict>
|
|
@@ -35670,7 +35794,20 @@ function writeUnit(spec, backend, unitDir = defaultUnitDir(backend)) {
|
|
|
35670
35794
|
const path10 = unitPath(spec.kind, spec.name, backend, unitDir);
|
|
35671
35795
|
(0, import_node_fs5.mkdirSync)(unitDir, { recursive: true });
|
|
35672
35796
|
const content = backend === "launchd" ? renderLaunchdPlist(spec) : renderSystemdUnit(spec);
|
|
35673
|
-
(
|
|
35797
|
+
if (!unitHoldsSecret(spec)) {
|
|
35798
|
+
(0, import_node_fs5.writeFileSync)(path10, content, { mode: 420 });
|
|
35799
|
+
return path10;
|
|
35800
|
+
}
|
|
35801
|
+
const tmp = `${path10}.${process.pid}.tmp`;
|
|
35802
|
+
(0, import_node_fs5.rmSync)(tmp, { force: true });
|
|
35803
|
+
try {
|
|
35804
|
+
(0, import_node_fs5.writeFileSync)(tmp, content, { mode: 384, flag: "wx" });
|
|
35805
|
+
(0, import_node_fs5.chmodSync)(tmp, 384);
|
|
35806
|
+
(0, import_node_fs5.renameSync)(tmp, path10);
|
|
35807
|
+
} catch (err) {
|
|
35808
|
+
(0, import_node_fs5.rmSync)(tmp, { force: true });
|
|
35809
|
+
throw err;
|
|
35810
|
+
}
|
|
35674
35811
|
return path10;
|
|
35675
35812
|
}
|
|
35676
35813
|
function removeUnit(kind, name, backend, unitDir = defaultUnitDir(backend)) {
|
|
@@ -35689,7 +35826,7 @@ function listRegisteredUnits(kind, backend, unitDir = defaultUnitDir(backend)) {
|
|
|
35689
35826
|
const out = [];
|
|
35690
35827
|
for (const file of files) {
|
|
35691
35828
|
const name = nameFromUnitFile(kind, file, backend);
|
|
35692
|
-
if (name) out.push({ name, unitPath: (0,
|
|
35829
|
+
if (name) out.push({ name, unitPath: (0, import_node_path6.join)(unitDir, file) });
|
|
35693
35830
|
}
|
|
35694
35831
|
return out.sort((a, b) => a.name.localeCompare(b.name));
|
|
35695
35832
|
}
|
|
@@ -35716,13 +35853,39 @@ function launchdLabel(kind, name) {
|
|
|
35716
35853
|
assertValidServiceName(kind, name);
|
|
35717
35854
|
return `${KINDS[kind].labelPrefix}${name}`;
|
|
35718
35855
|
}
|
|
35856
|
+
function readUnitEnv(kind, name, backend, unitDir = defaultUnitDir(backend)) {
|
|
35857
|
+
let text;
|
|
35858
|
+
try {
|
|
35859
|
+
text = (0, import_node_fs5.readFileSync)(unitPath(kind, name, backend, unitDir), "utf8");
|
|
35860
|
+
} catch {
|
|
35861
|
+
return {};
|
|
35862
|
+
}
|
|
35863
|
+
const out = {};
|
|
35864
|
+
if (backend === "launchd") {
|
|
35865
|
+
const re2 = /<key>([A-Za-z0-9_]+)<\/key>\s*<string>([^<]*)<\/string>/g;
|
|
35866
|
+
for (let m = re2.exec(text); m; m = re2.exec(text)) {
|
|
35867
|
+
const value = m[2].replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/&/g, "&");
|
|
35868
|
+
out[m[1]] = value;
|
|
35869
|
+
}
|
|
35870
|
+
return out;
|
|
35871
|
+
}
|
|
35872
|
+
const re = /^Environment=([A-Za-z0-9_]+)=(.*)$/gm;
|
|
35873
|
+
for (let m = re.exec(text); m; m = re.exec(text)) out[m[1]] = m[2];
|
|
35874
|
+
return out;
|
|
35875
|
+
}
|
|
35876
|
+
function readUnitSecrets(kind, name, backend, unitDir = defaultUnitDir(backend)) {
|
|
35877
|
+
const env = readUnitEnv(kind, name, backend, unitDir);
|
|
35878
|
+
const out = {};
|
|
35879
|
+
for (const key of UNIT_SECRET_ENV_KEYS) if (env[key] !== void 0) out[key] = env[key];
|
|
35880
|
+
return out;
|
|
35881
|
+
}
|
|
35719
35882
|
|
|
35720
35883
|
// src/service.ts
|
|
35721
35884
|
var import_node_child_process2 = require("node:child_process");
|
|
35722
35885
|
var import_node_fs6 = require("node:fs");
|
|
35723
35886
|
var import_node_module = require("node:module");
|
|
35724
|
-
var
|
|
35725
|
-
var CLI_VERSION = true ? "0.36.0-beta.
|
|
35887
|
+
var import_node_path7 = require("node:path");
|
|
35888
|
+
var CLI_VERSION = true ? "0.36.0-beta.18" : "";
|
|
35726
35889
|
function fail(message) {
|
|
35727
35890
|
console.error(message);
|
|
35728
35891
|
process.exit(1);
|
|
@@ -35736,11 +35899,11 @@ function resolveBackend() {
|
|
|
35736
35899
|
}
|
|
35737
35900
|
var PACKAGES = {
|
|
35738
35901
|
hub: { pkg: "@slayzone/hub", bin: "slayzone-hub", devDir: "hub", envOverride: "SLZ_HUB_BIN" },
|
|
35739
|
-
|
|
35740
|
-
pkg: "@slayzone/
|
|
35741
|
-
bin: "slayzone-
|
|
35742
|
-
devDir: "
|
|
35743
|
-
envOverride: "
|
|
35902
|
+
computer: {
|
|
35903
|
+
pkg: "@slayzone/computer",
|
|
35904
|
+
bin: "slayzone-computer",
|
|
35905
|
+
devDir: "computer",
|
|
35906
|
+
envOverride: "SLZ_COMPUTER_BIN"
|
|
35744
35907
|
}
|
|
35745
35908
|
};
|
|
35746
35909
|
function servicePackage(kind) {
|
|
@@ -35755,18 +35918,18 @@ function readServicePkg(kind, pkgJsonPath) {
|
|
|
35755
35918
|
}
|
|
35756
35919
|
const binRel = typeof pkg.bin === "string" ? pkg.bin : pkg.bin?.[PACKAGES[kind].bin];
|
|
35757
35920
|
if (!binRel) return null;
|
|
35758
|
-
const binPath = (0,
|
|
35921
|
+
const binPath = (0, import_node_path7.join)((0, import_node_path7.dirname)(pkgJsonPath), binRel);
|
|
35759
35922
|
if (!(0, import_node_fs6.existsSync)(binPath)) return null;
|
|
35760
35923
|
return { binPath, version: pkg.version ?? "unknown" };
|
|
35761
35924
|
}
|
|
35762
35925
|
function interpreterFor(binPath, version) {
|
|
35763
|
-
let dir = (0,
|
|
35926
|
+
let dir = (0, import_node_path7.dirname)(binPath);
|
|
35764
35927
|
for (let i = 0; i < 6; i++) {
|
|
35765
|
-
const pathTxt = (0,
|
|
35928
|
+
const pathTxt = (0, import_node_path7.join)(dir, "node_modules", "electron", "path.txt");
|
|
35766
35929
|
if ((0, import_node_fs6.existsSync)(pathTxt)) {
|
|
35767
35930
|
try {
|
|
35768
35931
|
const rel = (0, import_node_fs6.readFileSync)(pathTxt, "utf8").trim();
|
|
35769
|
-
const electron = (0,
|
|
35932
|
+
const electron = (0, import_node_path7.join)(dir, "node_modules", "electron", "dist", rel);
|
|
35770
35933
|
if ((0, import_node_fs6.existsSync)(electron)) {
|
|
35771
35934
|
return {
|
|
35772
35935
|
command: electron,
|
|
@@ -35779,7 +35942,7 @@ function interpreterFor(binPath, version) {
|
|
|
35779
35942
|
} catch {
|
|
35780
35943
|
}
|
|
35781
35944
|
}
|
|
35782
|
-
const parent = (0,
|
|
35945
|
+
const parent = (0, import_node_path7.dirname)(dir);
|
|
35783
35946
|
if (parent === dir) break;
|
|
35784
35947
|
dir = parent;
|
|
35785
35948
|
}
|
|
@@ -35794,7 +35957,7 @@ function resolveServiceBin(kind) {
|
|
|
35794
35957
|
// this package's CJS bundle.
|
|
35795
35958
|
() => {
|
|
35796
35959
|
try {
|
|
35797
|
-
return (0, import_node_module.createRequire)(process.argv[1] ?? (0,
|
|
35960
|
+
return (0, import_node_module.createRequire)(process.argv[1] ?? (0, import_node_path7.join)(process.cwd(), "x")).resolve(
|
|
35798
35961
|
`${pkg}/package.json`
|
|
35799
35962
|
);
|
|
35800
35963
|
} catch {
|
|
@@ -35805,7 +35968,7 @@ function resolveServiceBin(kind) {
|
|
|
35805
35968
|
() => {
|
|
35806
35969
|
const self2 = process.argv[1];
|
|
35807
35970
|
if (!self2) return null;
|
|
35808
|
-
const sibling = (0,
|
|
35971
|
+
const sibling = (0, import_node_path7.join)((0, import_node_path7.dirname)(self2), "..", "..", devDir, "package.json");
|
|
35809
35972
|
return (0, import_node_fs6.existsSync)(sibling) ? sibling : null;
|
|
35810
35973
|
}
|
|
35811
35974
|
];
|
|
@@ -35816,7 +35979,7 @@ function resolveServiceBin(kind) {
|
|
|
35816
35979
|
if (found2) return interpreterFor(found2.binPath, found2.version);
|
|
35817
35980
|
}
|
|
35818
35981
|
const prefix = getServiceRuntimeDir(kind);
|
|
35819
|
-
const installed = (0,
|
|
35982
|
+
const installed = (0, import_node_path7.join)(prefix, "node_modules", pkg, "package.json");
|
|
35820
35983
|
const wanted = CLI_VERSION ? `${pkg}@${CLI_VERSION}` : `${pkg}@beta`;
|
|
35821
35984
|
if (!(0, import_node_fs6.existsSync)(installed) || CLI_VERSION && readServicePkg(kind, installed)?.version !== CLI_VERSION) {
|
|
35822
35985
|
console.log(`Installing ${wanted}\u2026`);
|
|
@@ -35849,12 +36012,12 @@ function ensureLogDir(kind, root) {
|
|
|
35849
36012
|
return dir;
|
|
35850
36013
|
}
|
|
35851
36014
|
function logDirFor(_kind, root) {
|
|
35852
|
-
return (0,
|
|
36015
|
+
return (0, import_node_path7.join)(root, "logs");
|
|
35853
36016
|
}
|
|
35854
36017
|
function serviceLogPaths(kind, root) {
|
|
35855
36018
|
const dir = logDirFor(kind, root);
|
|
35856
36019
|
const names = serviceLogNames(kind);
|
|
35857
|
-
return { out: (0,
|
|
36020
|
+
return { out: (0, import_node_path7.join)(dir, names.out), err: (0, import_node_path7.join)(dir, names.err) };
|
|
35858
36021
|
}
|
|
35859
36022
|
function failWithLog(kind, name, logPath, what) {
|
|
35860
36023
|
let detail = "";
|
|
@@ -35862,7 +36025,7 @@ function failWithLog(kind, name, logPath, what) {
|
|
|
35862
36025
|
detail = (0, import_node_fs6.readFileSync)(logPath, "utf8").trim().split("\n").slice(-12).join("\n");
|
|
35863
36026
|
} catch {
|
|
35864
36027
|
}
|
|
35865
|
-
const label = kind === "hub" ? "Hub" : "
|
|
36028
|
+
const label = kind === "hub" ? "Hub" : "Computer";
|
|
35866
36029
|
fail(
|
|
35867
36030
|
`${label} "${name}" ${what}.
|
|
35868
36031
|
` + (detail ? `
|
|
@@ -35873,7 +36036,18 @@ No output was captured in ${shortenPath(logPath)}.
|
|
|
35873
36036
|
`)
|
|
35874
36037
|
);
|
|
35875
36038
|
}
|
|
35876
|
-
function readServiceLogTail(kind, root, lines) {
|
|
36039
|
+
function readServiceLogTail(kind, root, lines, systemdUnit) {
|
|
36040
|
+
if (systemdUnit) {
|
|
36041
|
+
try {
|
|
36042
|
+
return (0, import_node_child_process2.execFileSync)(
|
|
36043
|
+
"journalctl",
|
|
36044
|
+
["--user", "-u", systemdUnit, "-n", String(lines), "--no-pager", "-o", "cat"],
|
|
36045
|
+
{ encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], env: userServiceEnv() }
|
|
36046
|
+
).trim();
|
|
36047
|
+
} catch {
|
|
36048
|
+
return "";
|
|
36049
|
+
}
|
|
36050
|
+
}
|
|
35877
36051
|
const dir = logDirFor(kind, root);
|
|
35878
36052
|
let files;
|
|
35879
36053
|
try {
|
|
@@ -35884,7 +36058,7 @@ function readServiceLogTail(kind, root, lines) {
|
|
|
35884
36058
|
const chunks = [];
|
|
35885
36059
|
for (const f of files) {
|
|
35886
36060
|
try {
|
|
35887
|
-
chunks.push((0, import_node_fs6.readFileSync)((0,
|
|
36061
|
+
chunks.push((0, import_node_fs6.readFileSync)((0, import_node_path7.join)(dir, f), "utf8"));
|
|
35888
36062
|
} catch {
|
|
35889
36063
|
}
|
|
35890
36064
|
}
|
|
@@ -35901,7 +36075,7 @@ function followServiceLog(args) {
|
|
|
35901
36075
|
}
|
|
35902
36076
|
const dir = logDirFor(kind, root);
|
|
35903
36077
|
if (!(0, import_node_fs6.existsSync)(dir)) fail(`No log directory at ${shortenPath(dir)}.`);
|
|
35904
|
-
const candidates = (0, import_node_fs6.readdirSync)(dir).filter((f) => f.endsWith(".log")).map((f) => ({ f, path: (0,
|
|
36078
|
+
const candidates = (0, import_node_fs6.readdirSync)(dir).filter((f) => f.endsWith(".log")).map((f) => ({ f, path: (0, import_node_path7.join)(dir, f), mtime: (0, import_node_fs6.statSync)((0, import_node_path7.join)(dir, f)).mtimeMs })).sort((a, b) => b.mtime - a.mtime);
|
|
35905
36079
|
if (candidates.length === 0) fail(`No log files in ${shortenPath(dir)}.`);
|
|
35906
36080
|
const target = candidates[0].path;
|
|
35907
36081
|
const targs = follow ? ["-f", "-n", String(lines), target] : ["-n", String(lines), target];
|
|
@@ -36047,7 +36221,9 @@ async function resolveHubRequestTarget(what, discover = () => discoverHubs()) {
|
|
|
36047
36221
|
Name one with \`slay --hub <name|port> ${what}\`.`
|
|
36048
36222
|
);
|
|
36049
36223
|
}
|
|
36050
|
-
|
|
36224
|
+
const found = running[0];
|
|
36225
|
+
const ownerToken = found.authRequired ? (await readBootstrapOwner(found.root))?.token : null;
|
|
36226
|
+
return { baseUrl: `http://127.0.0.1:${found.port}`, token: ownerToken ?? null };
|
|
36051
36227
|
}
|
|
36052
36228
|
async function hubRequest(opts) {
|
|
36053
36229
|
const { target, path: path10, method, body, unwrap } = opts;
|
|
@@ -36155,8 +36331,14 @@ async function terminateChild(child, graceMs) {
|
|
|
36155
36331
|
}
|
|
36156
36332
|
});
|
|
36157
36333
|
}
|
|
36334
|
+
function inheritedEnvForHub() {
|
|
36335
|
+
const env = { ...process.env };
|
|
36336
|
+
delete env.SLAYZONE_HUB_ADDRESS;
|
|
36337
|
+
return env;
|
|
36338
|
+
}
|
|
36158
36339
|
async function launchHub(args) {
|
|
36159
36340
|
const { name, root, port, address, backend, creating } = args;
|
|
36341
|
+
const secrets = backend === "none" || creating ? { ...args.secrets ?? {} } : { ...readUnitSecrets("hub", name, backend), ...args.secrets ?? {} };
|
|
36160
36342
|
const bin = resolveServiceBin("hub");
|
|
36161
36343
|
const logDir = ensureLogDir("hub", root);
|
|
36162
36344
|
const logs = serviceLogPaths("hub", root);
|
|
@@ -36169,12 +36351,15 @@ async function launchHub(args) {
|
|
|
36169
36351
|
detached: true,
|
|
36170
36352
|
stdio: ["ignore", out, out],
|
|
36171
36353
|
env: {
|
|
36172
|
-
...
|
|
36354
|
+
...inheritedEnvForHub(),
|
|
36173
36355
|
SLAYZONE_ROOT: root,
|
|
36174
36356
|
SLAYZONE_HUB_NAME: name,
|
|
36175
36357
|
// Same precedence as the unit path (see unitEnv): an explicit authority
|
|
36176
|
-
// wins, else the legacy loopback-from-port form.
|
|
36177
|
-
|
|
36358
|
+
// wins, else the legacy loopback-from-port form. The hub's name for where it
|
|
36359
|
+
// LISTENS — `SLAYZONE_HUB_ADDRESS` is the dial-side name and a hub refuses to
|
|
36360
|
+
// boot with it.
|
|
36361
|
+
...address !== void 0 ? { SLAYZONE_HUB_LISTEN_ADDRESS: address } : port === void 0 ? {} : { SLAYZONE_HUB_LISTEN_ADDRESS: `127.0.0.1:${port}` },
|
|
36362
|
+
...secrets,
|
|
36178
36363
|
// Same interpreter requirement as the unit path: a dev-tree hub needs
|
|
36179
36364
|
// ELECTRON_RUN_AS_NODE or its Electron-ABI natives fail to load.
|
|
36180
36365
|
...bin.env ?? {}
|
|
@@ -36204,7 +36389,7 @@ async function launchHub(args) {
|
|
|
36204
36389
|
logDir,
|
|
36205
36390
|
...port ? { port } : {},
|
|
36206
36391
|
...address !== void 0 ? { address } : {},
|
|
36207
|
-
...bin.env ? { env: bin.env } : {}
|
|
36392
|
+
...bin.env || Object.keys(secrets).length > 0 ? { env: { ...secrets, ...bin.env ?? {} } } : {}
|
|
36208
36393
|
},
|
|
36209
36394
|
backend
|
|
36210
36395
|
);
|
|
@@ -36252,7 +36437,8 @@ then log out and back in, and retry. If this account is not meant to have one (a
|
|
|
36252
36437
|
console.log("Restarts automatically if it crashes, and starts again when you log in.");
|
|
36253
36438
|
if (creating) {
|
|
36254
36439
|
console.log("");
|
|
36255
|
-
console.log("If this hub
|
|
36440
|
+
console.log("If this hub requires login (it does once other machines can reach it), create");
|
|
36441
|
+
console.log("an account for it:");
|
|
36256
36442
|
console.log(` slay hub users add <email> --hub ${name}`);
|
|
36257
36443
|
}
|
|
36258
36444
|
}
|
|
@@ -36377,26 +36563,29 @@ function hubCommand() {
|
|
|
36377
36563
|
...hubs.map((h) => h.supervised ? "(desktop app)".length : shortenPath(h.root).length)
|
|
36378
36564
|
);
|
|
36379
36565
|
console.log(
|
|
36380
|
-
`${"NAME".padEnd(nameW)} ${"PORT".padEnd(5)} ${"PID".padEnd(7)} ${"ROOT".padEnd(rootW)} ${"
|
|
36566
|
+
`${"NAME".padEnd(nameW)} ${"PORT".padEnd(5)} ${"PID".padEnd(7)} ${"ROOT".padEnd(rootW)} ${"COMPUTERS".padEnd(9)} UPTIME`
|
|
36381
36567
|
);
|
|
36382
36568
|
console.log(
|
|
36383
|
-
`${"-".repeat(nameW)} ${"-".repeat(5)} ${"-".repeat(7)} ${"-".repeat(rootW)} ${"-".repeat(
|
|
36569
|
+
`${"-".repeat(nameW)} ${"-".repeat(5)} ${"-".repeat(7)} ${"-".repeat(rootW)} ${"-".repeat(9)} ${"-".repeat(8)}`
|
|
36384
36570
|
);
|
|
36385
|
-
const ownRoot = process.env.SLAYZONE_ROOT?.trim() ? (0,
|
|
36571
|
+
const ownRoot = process.env.SLAYZONE_ROOT?.trim() ? (0, import_node_path8.resolve)(process.env.SLAYZONE_ROOT.trim()) : null;
|
|
36386
36572
|
for (const h of hubs) {
|
|
36387
36573
|
const root = h.supervised ? "(desktop app)" : shortenPath(h.root);
|
|
36388
|
-
const mine = ownRoot && (0,
|
|
36574
|
+
const mine = ownRoot && (0, import_node_path8.resolve)(h.root) === ownRoot ? " \u2190 this shell" : "";
|
|
36389
36575
|
console.log(
|
|
36390
|
-
`${h.name.padEnd(nameW)} ${String(h.port).padEnd(5)} ${String(h.pid).padEnd(7)} ${root.padEnd(rootW)} ${String(h.
|
|
36576
|
+
`${h.name.padEnd(nameW)} ${String(h.port).padEnd(5)} ${String(h.pid).padEnd(7)} ${root.padEnd(rootW)} ${String(h.computersConnected).padEnd(9)} ${formatUptime(h.uptimeMs)}${mine}`
|
|
36391
36577
|
);
|
|
36392
36578
|
}
|
|
36393
36579
|
});
|
|
36394
36580
|
cmd.command("create <name>").description("Create a hub here and keep it running (crash-restart + start at login)").option("--root <dir>", "Hub root \u2014 its config, storage and logs (default: cwd)").option("--port <port>", "Bind a specific port (default: first free hub port)").option(
|
|
36395
36581
|
"--public-address <host[:port]>",
|
|
36396
|
-
"
|
|
36397
|
-
).option(
|
|
36582
|
+
"Address other machines reach this hub at \u2014 makes it reachable: login required, join tokens point at it (the hub does not do TLS; put a TLS front end in front). Needs SLAYZONE_HUB_AUTH_SECRET in the environment of this command."
|
|
36583
|
+
).option(
|
|
36584
|
+
"--bind <host[:port]>",
|
|
36585
|
+
"Address to listen on (default: loopback). Required with --public-address: the hub serves plain http, so say whether it listens on loopback behind a same-box TLS front end (127.0.0.1) or on an interface the front end reaches (e.g. 10.0.0.4)."
|
|
36586
|
+
).action(
|
|
36398
36587
|
async (name, opts) => {
|
|
36399
|
-
const root = (0,
|
|
36588
|
+
const root = (0, import_node_path8.resolve)(opts.root ?? process.cwd());
|
|
36400
36589
|
const port = opts.port === void 0 ? void 0 : Number(opts.port);
|
|
36401
36590
|
if (port !== void 0 && (!Number.isInteger(port) || port < 1 || port > 65535)) {
|
|
36402
36591
|
fail(`Invalid --port ${opts.port} \u2014 expected an integer 1-65535.`);
|
|
@@ -36404,7 +36593,7 @@ function hubCommand() {
|
|
|
36404
36593
|
const publicAddress = opts.publicAddress?.trim();
|
|
36405
36594
|
if (publicAddress !== void 0 && !isBareAuthority(publicAddress)) {
|
|
36406
36595
|
fail(
|
|
36407
|
-
`Invalid --public-address "${opts.publicAddress}" \u2014 expected host[:port] with no scheme and no path (e.g. hub.example.com:8443). The scheme is
|
|
36596
|
+
`Invalid --public-address "${opts.publicAddress}" \u2014 expected host[:port] with no scheme and no path (e.g. hub.example.com:8443). The scheme is derived from the host (loopback is http/ws, any other host is https/wss). IPv6 must be bracketed: [2001:db8::1]:8443`
|
|
36408
36597
|
);
|
|
36409
36598
|
}
|
|
36410
36599
|
const bind = opts.bind?.trim();
|
|
@@ -36418,7 +36607,33 @@ function hubCommand() {
|
|
|
36418
36607
|
`--bind ${bind} and --port ${port} disagree about the port. Give just one \u2014 \`--bind\` can carry the port itself.`
|
|
36419
36608
|
);
|
|
36420
36609
|
}
|
|
36421
|
-
|
|
36610
|
+
if (publicAddress !== void 0 && bind === void 0) {
|
|
36611
|
+
fail(
|
|
36612
|
+
`--public-address ${publicAddress} needs an explicit --bind <host[:port]>: the hub serves plain http, so say where it listens.
|
|
36613
|
+
behind a TLS front end on this machine: --bind 127.0.0.1${port ? `:${port}` : ""}
|
|
36614
|
+
behind one on another host: --bind <this machine's private address>${port ? `:${port}` : ""}
|
|
36615
|
+
Avoid 0.0.0.0 unless the machine's firewall only lets the front end in.`
|
|
36616
|
+
);
|
|
36617
|
+
}
|
|
36618
|
+
const address = bind;
|
|
36619
|
+
if (publicAddress === void 0 && address !== void 0) {
|
|
36620
|
+
const bindHost = parseHubAddress(address)?.host;
|
|
36621
|
+
if (bindHost !== void 0 && !LOOPBACK_HOSTS.has(bindHost)) {
|
|
36622
|
+
fail(
|
|
36623
|
+
`--bind ${address} listens on ${bindHost}, which other machines can reach, so the hub needs --public-address <host[:port]> (the address clients use, behind your TLS front end) and would refuse to boot without it. For a hub only this machine uses, bind loopback: --bind 127.0.0.1[:port].`
|
|
36624
|
+
);
|
|
36625
|
+
}
|
|
36626
|
+
}
|
|
36627
|
+
const authSecret = process.env.SLAYZONE_HUB_AUTH_SECRET?.trim();
|
|
36628
|
+
if (publicAddress !== void 0 && !authSecret) {
|
|
36629
|
+
fail(
|
|
36630
|
+
`A hub other machines can reach needs SLAYZONE_HUB_AUTH_SECRET in its environment \u2014 it never generates its signing key onto its own disk, and it would refuse to boot without one.
|
|
36631
|
+
Existing hub root (it already has sessions and enrolled computers): reuse its computerTransportSecret from ${(0, import_node_path8.join)(root, "hub.state.json")} \u2014 a new value invalidates every session and computer credential.
|
|
36632
|
+
New hub: generate one for this command:
|
|
36633
|
+
SLAYZONE_HUB_AUTH_SECRET=$(openssl rand -hex 32) slay hub create ${name} --public-address ${publicAddress} --bind <host[:port]>
|
|
36634
|
+
It is written into the hub's service unit (owner-only, 0600) so the hub keeps it across restarts.`
|
|
36635
|
+
);
|
|
36636
|
+
}
|
|
36422
36637
|
const backend = resolveBackend();
|
|
36423
36638
|
if (backend !== "none" && (0, import_node_fs7.existsSync)(unitPath("hub", name, backend))) {
|
|
36424
36639
|
const existingRoot = readUnitRoot("hub", name, backend);
|
|
@@ -36443,22 +36658,28 @@ Start it with \`slay hub start ${name}\`, or remove it with \`slay hub rm ${name
|
|
|
36443
36658
|
if (publicAddress !== void 0) {
|
|
36444
36659
|
updateHubConfigFile(
|
|
36445
36660
|
{
|
|
36446
|
-
|
|
36661
|
+
// Reachable from other machines ⇒ login is required (boot rule B1).
|
|
36662
|
+
requireLogin: true,
|
|
36447
36663
|
publicAddress,
|
|
36448
|
-
...address !== void 0 ? { address } : {}
|
|
36664
|
+
...address !== void 0 ? { listenAddress: address } : {}
|
|
36449
36665
|
},
|
|
36450
|
-
(0,
|
|
36666
|
+
(0, import_node_path8.join)(root, "hub.config.json")
|
|
36667
|
+
);
|
|
36668
|
+
console.log("Reachable: login required (SLAYZONE_HUB_REQUIRE_LOGIN=1)");
|
|
36669
|
+
console.log(`Listen: ${address ?? "(hub block default)"}`);
|
|
36670
|
+
console.log(`Public: ${publicAddress}`);
|
|
36671
|
+
console.log(
|
|
36672
|
+
`Join tokens will point computers at ${hubUrlFromAddr(publicAddress, "ws", "/computers")}.`
|
|
36673
|
+
);
|
|
36674
|
+
console.log(
|
|
36675
|
+
"The hub serves plain http: put a TLS front end (Caddy, nginx, a cloud load balancer) in front of it."
|
|
36451
36676
|
);
|
|
36452
|
-
console.log("Mode: remote (client auth + TLS enforced)");
|
|
36453
|
-
console.log(`Bind: ${address ?? "(hub block default)"}`);
|
|
36454
|
-
console.log(`Public: ${publicAddress}`);
|
|
36455
|
-
console.log(`Join tokens will point runners at wss://${publicAddress}/runners.`);
|
|
36456
36677
|
console.log("");
|
|
36457
36678
|
console.log("This hub requires sign-in and public signup is closed, so create the");
|
|
36458
36679
|
console.log("first account on THIS machine \u2014 there is no other way in:");
|
|
36459
36680
|
console.log(` slay hub users add <email> --hub ${name}`);
|
|
36460
36681
|
console.log("Then, from another machine:");
|
|
36461
|
-
console.log(` slay hub login
|
|
36682
|
+
console.log(` slay hub login ${hubUrlFromAddr(publicAddress, "http")} --email <email>`);
|
|
36462
36683
|
console.log("");
|
|
36463
36684
|
}
|
|
36464
36685
|
await launchHub({
|
|
@@ -36466,6 +36687,7 @@ Start it with \`slay hub start ${name}\`, or remove it with \`slay hub rm ${name
|
|
|
36466
36687
|
root,
|
|
36467
36688
|
port,
|
|
36468
36689
|
...address !== void 0 ? { address } : {},
|
|
36690
|
+
...publicAddress !== void 0 && authSecret ? { secrets: { SLAYZONE_HUB_AUTH_SECRET: authSecret } } : {},
|
|
36469
36691
|
backend,
|
|
36470
36692
|
creating: true
|
|
36471
36693
|
});
|
|
@@ -36473,7 +36695,7 @@ Start it with \`slay hub start ${name}\`, or remove it with \`slay hub rm ${name
|
|
|
36473
36695
|
console.log("");
|
|
36474
36696
|
console.log(
|
|
36475
36697
|
`This hub is local-only: it binds loopback, so join tokens it mints point at
|
|
36476
|
-
127.0.0.1 and only a
|
|
36698
|
+
127.0.0.1 and only a computer on THIS machine can use them. For a hub other
|
|
36477
36699
|
machines dial, recreate it with \`--public-address <host:port>\`.`
|
|
36478
36700
|
);
|
|
36479
36701
|
}
|
|
@@ -36502,6 +36724,12 @@ machines dial, recreate it with \`--public-address <host:port>\`.`
|
|
|
36502
36724
|
`The unit for "${name}" does not record a root \u2014 it may be hand-edited. Remove it with \`slay hub rm ${name}\` and create it again.`
|
|
36503
36725
|
);
|
|
36504
36726
|
}
|
|
36727
|
+
const occupant = (await discoverAllHubs()).find((h) => h.root === root);
|
|
36728
|
+
if (occupant) {
|
|
36729
|
+
fail(
|
|
36730
|
+
`A hub is already running in ${shortenPath(root)} \u2014 "${occupant.name}" on port ${occupant.port} (pid ${occupant.pid}). Starting "${name}" would put two hubs on the same store.`
|
|
36731
|
+
);
|
|
36732
|
+
}
|
|
36505
36733
|
await launchHub({ name, root, backend, creating: false });
|
|
36506
36734
|
});
|
|
36507
36735
|
cmd.command("stop <name|port>").description("Stop a hub, keeping it registered so `start` can bring it back").action(async (nameOrPort) => {
|
|
@@ -36547,6 +36775,8 @@ machines dial, recreate it with \`--public-address <host:port>\`.`
|
|
|
36547
36775
|
const logDir = ensureLogDir("hub", root);
|
|
36548
36776
|
if (opts.upgrade) {
|
|
36549
36777
|
const bin = resolveServiceBin("hub");
|
|
36778
|
+
const pinned = readUnitSecrets("hub", name, backend);
|
|
36779
|
+
const unitEnv2 = { ...pinned, ...bin.env ?? {} };
|
|
36550
36780
|
writeUnit(
|
|
36551
36781
|
{
|
|
36552
36782
|
kind: "hub",
|
|
@@ -36557,14 +36787,21 @@ machines dial, recreate it with \`--public-address <host:port>\`.`
|
|
|
36557
36787
|
logDir,
|
|
36558
36788
|
// Must carry the interpreter env: dropping it here would rewrite a
|
|
36559
36789
|
// working unit into one that crash-loops on Electron-ABI natives.
|
|
36560
|
-
...
|
|
36790
|
+
...Object.keys(unitEnv2).length > 0 ? { env: unitEnv2 } : {}
|
|
36561
36791
|
},
|
|
36562
36792
|
backend
|
|
36563
36793
|
);
|
|
36564
36794
|
console.log(`Unit updated to ${HUB_PACKAGE}@${bin.version}.`);
|
|
36565
36795
|
}
|
|
36566
36796
|
supervisorStop("hub", backend, name);
|
|
36567
|
-
await waitForHubGone(hub.port, 15e3)
|
|
36797
|
+
if (!await waitForHubGone(hub.port, 15e3)) {
|
|
36798
|
+
fail(
|
|
36799
|
+
`Hub "${name}" is still answering on port ${hub.port} after 15s, so restarting would leave TWO hubs sharing ${shortenPath(root)} \u2014 refusing.
|
|
36800
|
+
It is not owned by ${backend} (started by hand, docker, or before it was registered). Stop that process first:
|
|
36801
|
+
kill ${hub.pid}
|
|
36802
|
+
then \`slay hub start ${name}\`.`
|
|
36803
|
+
);
|
|
36804
|
+
}
|
|
36568
36805
|
supervisorStart("hub", backend, name, unitPath("hub", name, backend));
|
|
36569
36806
|
const back = await waitForHub(() => findHub(name), 2e4);
|
|
36570
36807
|
if (!back) fail(`Hub "${name}" did not come back within 20s. Check ${shortenPath(logDir)}.`);
|
|
@@ -36674,10 +36911,10 @@ machines dial, recreate it with \`--public-address <host:port>\`.`
|
|
|
36674
36911
|
return cmd;
|
|
36675
36912
|
}
|
|
36676
36913
|
|
|
36677
|
-
// src/commands/
|
|
36914
|
+
// src/commands/computer.ts
|
|
36678
36915
|
var import_node_child_process4 = require("node:child_process");
|
|
36679
36916
|
var import_node_fs9 = require("node:fs");
|
|
36680
|
-
var
|
|
36917
|
+
var import_node_path10 = require("node:path");
|
|
36681
36918
|
|
|
36682
36919
|
// ../../shared/platform/src/join-token.ts
|
|
36683
36920
|
var JOIN_TOKEN_PREFIX = "szjt1";
|
|
@@ -36699,24 +36936,24 @@ function decodeJoinToken(token) {
|
|
|
36699
36936
|
}
|
|
36700
36937
|
}
|
|
36701
36938
|
|
|
36702
|
-
// src/commands/
|
|
36939
|
+
// src/commands/computer-identity.ts
|
|
36703
36940
|
var import_node_fs8 = require("node:fs");
|
|
36704
|
-
var
|
|
36941
|
+
var import_node_path9 = require("node:path");
|
|
36705
36942
|
function configPathFor(root) {
|
|
36706
|
-
return (0,
|
|
36943
|
+
return (0, import_node_path9.join)(root, "computer.config.json");
|
|
36707
36944
|
}
|
|
36708
36945
|
function ambientRoot() {
|
|
36709
36946
|
return process.env.SLAYZONE_ROOT ?? process.cwd();
|
|
36710
36947
|
}
|
|
36711
36948
|
function isEnrolled(root) {
|
|
36712
36949
|
try {
|
|
36713
|
-
const parsed = JSON.parse((0, import_node_fs8.readFileSync)((0,
|
|
36950
|
+
const parsed = JSON.parse((0, import_node_fs8.readFileSync)((0, import_node_path9.join)(root, "computer.state.json"), "utf8"));
|
|
36714
36951
|
return typeof parsed === "object" && parsed !== null && Object.keys(parsed).length > 0;
|
|
36715
36952
|
} catch {
|
|
36716
36953
|
return false;
|
|
36717
36954
|
}
|
|
36718
36955
|
}
|
|
36719
|
-
async function
|
|
36956
|
+
async function hubComputers() {
|
|
36720
36957
|
let baseUrl;
|
|
36721
36958
|
let token = null;
|
|
36722
36959
|
try {
|
|
@@ -36733,7 +36970,7 @@ async function hubRunners() {
|
|
|
36733
36970
|
return null;
|
|
36734
36971
|
}
|
|
36735
36972
|
try {
|
|
36736
|
-
const res = await fetch(`${baseUrl}/api/
|
|
36973
|
+
const res = await fetch(`${baseUrl}/api/computers`, {
|
|
36737
36974
|
headers: token ? { Authorization: `Bearer ${token}` } : {},
|
|
36738
36975
|
signal: AbortSignal.timeout(3e3)
|
|
36739
36976
|
});
|
|
@@ -36745,77 +36982,77 @@ async function hubRunners() {
|
|
|
36745
36982
|
}
|
|
36746
36983
|
}
|
|
36747
36984
|
function localFacts(name, root, backend, supervised) {
|
|
36748
|
-
const cfg = root ?
|
|
36985
|
+
const cfg = root ? loadComputerConfigFile(configPathFor(root)) : {};
|
|
36749
36986
|
return {
|
|
36750
36987
|
name,
|
|
36751
36988
|
root,
|
|
36752
|
-
installed: cfg.
|
|
36989
|
+
installed: cfg.computerName !== void 0,
|
|
36753
36990
|
supervised,
|
|
36754
36991
|
enrolled: root ? isEnrolled(root) : false,
|
|
36755
|
-
running: supervised ? supervisorStatus("
|
|
36992
|
+
running: supervised ? supervisorStatus("computer", backend, name).running : false,
|
|
36756
36993
|
hubUrl: cfg.hubUrl ?? null
|
|
36757
36994
|
};
|
|
36758
36995
|
}
|
|
36759
36996
|
function rootClaims(root, name) {
|
|
36760
|
-
return
|
|
36997
|
+
return loadComputerConfigFile(configPathFor(root)).computerName === name;
|
|
36761
36998
|
}
|
|
36762
|
-
async function
|
|
36999
|
+
async function resolveComputer(name, backend, opts = {}) {
|
|
36763
37000
|
const cwd = opts.cwd ?? ambientRoot();
|
|
36764
|
-
const supervised = backend !== "none" && (0, import_node_fs8.existsSync)(unitPath("
|
|
36765
|
-
const root = supervised ? readUnitRoot("
|
|
37001
|
+
const supervised = backend !== "none" && (0, import_node_fs8.existsSync)(unitPath("computer", name, backend));
|
|
37002
|
+
const root = supervised ? readUnitRoot("computer", name, backend) : rootClaims(cwd, name) ? cwd : null;
|
|
36766
37003
|
const local = localFacts(name, root, backend, supervised);
|
|
36767
37004
|
if (opts.hub === false) return { ...local, connected: null };
|
|
36768
|
-
const rows = await
|
|
37005
|
+
const rows = await hubComputers();
|
|
36769
37006
|
const row = rows?.find((r) => r.name === name) ?? null;
|
|
36770
37007
|
return {
|
|
36771
37008
|
...local,
|
|
36772
|
-
// A hub that knows this
|
|
37009
|
+
// A hub that knows this computer proves enrollment even when the local state file
|
|
36773
37010
|
// is gone (root deleted, machine rebuilt) — so OR the two rather than trusting
|
|
36774
37011
|
// disk alone.
|
|
36775
37012
|
enrolled: local.enrolled || row !== null,
|
|
36776
37013
|
connected: rows === null ? null : row?.connected ?? false
|
|
36777
37014
|
};
|
|
36778
37015
|
}
|
|
36779
|
-
async function
|
|
37016
|
+
async function listComputers(backend, opts = {}) {
|
|
36780
37017
|
const cwd = opts.cwd ?? ambientRoot();
|
|
36781
37018
|
const names = /* @__PURE__ */ new Set();
|
|
36782
37019
|
if (backend !== "none") {
|
|
36783
|
-
for (const u of listRegisteredUnits("
|
|
37020
|
+
for (const u of listRegisteredUnits("computer", backend)) names.add(u.name);
|
|
36784
37021
|
}
|
|
36785
|
-
const cwdName =
|
|
37022
|
+
const cwdName = loadComputerConfigFile(configPathFor(cwd)).computerName;
|
|
36786
37023
|
if (cwdName !== void 0) names.add(cwdName);
|
|
36787
|
-
const rows = await
|
|
37024
|
+
const rows = await hubComputers();
|
|
36788
37025
|
for (const r of rows ?? []) names.add(r.name);
|
|
36789
|
-
const
|
|
37026
|
+
const computers = [];
|
|
36790
37027
|
for (const name of [...names].sort((a, b) => a.localeCompare(b))) {
|
|
36791
|
-
const supervised = backend !== "none" && (0, import_node_fs8.existsSync)(unitPath("
|
|
36792
|
-
const root = supervised ? readUnitRoot("
|
|
37028
|
+
const supervised = backend !== "none" && (0, import_node_fs8.existsSync)(unitPath("computer", name, backend));
|
|
37029
|
+
const root = supervised ? readUnitRoot("computer", name, backend) : rootClaims(cwd, name) ? cwd : null;
|
|
36793
37030
|
const local = localFacts(name, root, backend, supervised);
|
|
36794
37031
|
const row = rows?.find((r) => r.name === name) ?? null;
|
|
36795
|
-
|
|
37032
|
+
computers.push({
|
|
36796
37033
|
...local,
|
|
36797
37034
|
enrolled: local.enrolled || row !== null,
|
|
36798
37035
|
connected: rows === null ? null : row?.connected ?? false
|
|
36799
37036
|
});
|
|
36800
37037
|
}
|
|
36801
|
-
return {
|
|
37038
|
+
return { computers, hubReachable: rows !== null };
|
|
36802
37039
|
}
|
|
36803
37040
|
function isUnknown(facts) {
|
|
36804
37041
|
return !facts.installed && !facts.supervised && !facts.enrolled;
|
|
36805
37042
|
}
|
|
36806
37043
|
|
|
36807
|
-
// src/commands/
|
|
36808
|
-
var
|
|
37044
|
+
// src/commands/computer.ts
|
|
37045
|
+
var COMPUTER_PACKAGE = servicePackage("computer");
|
|
36809
37046
|
var ENROLL_TIMEOUT_MS = 3e4;
|
|
36810
37047
|
var CONNECTED_RE = /"mode":"(enroll|hello)"/;
|
|
36811
37048
|
function warnIfLoopbackHub(hubUrl) {
|
|
36812
|
-
if (!
|
|
37049
|
+
if (!isLoopbackComputerUrl(hubUrl)) return;
|
|
36813
37050
|
console.log("");
|
|
36814
37051
|
console.log(
|
|
36815
|
-
`Note: ${hubUrl} is a loopback address, so this token only works for a
|
|
37052
|
+
`Note: ${hubUrl} is a loopback address, so this token only works for a computer on the
|
|
36816
37053
|
hub's OWN machine. On any other machine it would dial that machine's loopback and
|
|
36817
37054
|
never connect. For a hub other machines can reach, recreate it with
|
|
36818
|
-
\`slay hub create <name> --public-address <host:port>\`.`
|
|
37055
|
+
\`slay hub create <name> --public-address <host:port> --bind <host[:port]>\`.`
|
|
36819
37056
|
);
|
|
36820
37057
|
}
|
|
36821
37058
|
var createRollback = [];
|
|
@@ -36831,57 +37068,58 @@ function runCreateRollback() {
|
|
|
36831
37068
|
}
|
|
36832
37069
|
}
|
|
36833
37070
|
async function requireKnown(name, backend) {
|
|
36834
|
-
const facts = await
|
|
37071
|
+
const facts = await resolveComputer(name, backend);
|
|
36835
37072
|
if (!isUnknown(facts)) return facts;
|
|
36836
|
-
const {
|
|
36837
|
-
const known =
|
|
37073
|
+
const { computers } = await listComputers(backend);
|
|
37074
|
+
const known = computers.map((r) => r.name);
|
|
36838
37075
|
fail(
|
|
36839
|
-
`No
|
|
36840
|
-
` + (known.length > 0 ? `Known
|
|
37076
|
+
`No computer named "${name}" on this machine.
|
|
37077
|
+
` + (known.length > 0 ? `Known computers: ${known.join(", ")}` : "No computers here. Create one with `slay computer create <name> --token <token>`.")
|
|
36841
37078
|
);
|
|
36842
37079
|
}
|
|
36843
37080
|
function requireRoot(facts, verb) {
|
|
36844
37081
|
if (facts.root) return facts.root;
|
|
36845
37082
|
fail(
|
|
36846
37083
|
`"${facts.name}" is enrolled on the hub but has no installation on this machine, so there is nothing to ${verb}.
|
|
36847
|
-
Install it here with \`slay
|
|
37084
|
+
Install it here with \`slay computer create ${facts.name} --token <token>\`, or run the command on the machine that hosts it.`
|
|
36848
37085
|
);
|
|
36849
37086
|
}
|
|
36850
37087
|
function requireRegistered(name, backend) {
|
|
36851
37088
|
if (backend === "none") {
|
|
36852
37089
|
fail(
|
|
36853
|
-
`This platform has no user service manager, so
|
|
36854
|
-
npx ${
|
|
37090
|
+
`This platform has no user service manager, so computers cannot be registered here. Run one in the foreground instead:
|
|
37091
|
+
npx ${COMPUTER_PACKAGE}`
|
|
36855
37092
|
);
|
|
36856
37093
|
}
|
|
36857
|
-
if (!(0, import_node_fs9.existsSync)(unitPath("
|
|
36858
|
-
const known = listRegisteredUnits("
|
|
37094
|
+
if (!(0, import_node_fs9.existsSync)(unitPath("computer", name, backend))) {
|
|
37095
|
+
const known = listRegisteredUnits("computer", backend).map((u) => u.name);
|
|
36859
37096
|
fail(
|
|
36860
|
-
`No
|
|
36861
|
-
` + (known.length > 0 ? `Registered
|
|
37097
|
+
`No computer named "${name}" on this machine.
|
|
37098
|
+
` + (known.length > 0 ? `Registered computers: ${known.join(", ")}` : "No computers are registered. Create one with `slay computer create <name> --token <token>`.")
|
|
36862
37099
|
);
|
|
36863
37100
|
}
|
|
36864
|
-
const root = readUnitRoot("
|
|
37101
|
+
const root = readUnitRoot("computer", name, backend);
|
|
36865
37102
|
if (!root) {
|
|
36866
37103
|
fail(
|
|
36867
|
-
`The unit for "${name}" does not record a root \u2014 it may be hand-edited. Remove it with \`slay
|
|
37104
|
+
`The unit for "${name}" does not record a root \u2014 it may be hand-edited. Remove it with \`slay computer rm ${name}\` and create it again.`
|
|
36868
37105
|
);
|
|
36869
37106
|
}
|
|
36870
37107
|
return { root };
|
|
36871
37108
|
}
|
|
36872
|
-
async function waitForConnected(root, timeoutMs) {
|
|
37109
|
+
async function waitForConnected(root, timeoutMs, backend, name) {
|
|
37110
|
+
const unit = backend === "systemd" ? systemdUnitName("computer", name) : void 0;
|
|
36873
37111
|
const deadline = Date.now() + timeoutMs;
|
|
36874
37112
|
for (; ; ) {
|
|
36875
|
-
if (CONNECTED_RE.test(readServiceLogTail("
|
|
37113
|
+
if (CONNECTED_RE.test(readServiceLogTail("computer", root, 200, unit))) return true;
|
|
36876
37114
|
if (Date.now() >= deadline) return false;
|
|
36877
37115
|
await new Promise((r) => setTimeout(r, 300));
|
|
36878
37116
|
}
|
|
36879
37117
|
}
|
|
36880
|
-
async function
|
|
37118
|
+
async function launchComputer(args) {
|
|
36881
37119
|
const { name, root, backend, creating } = args;
|
|
36882
|
-
const bin = resolveServiceBin("
|
|
36883
|
-
const logDir = ensureLogDir("
|
|
36884
|
-
const logs = serviceLogPaths("
|
|
37120
|
+
const bin = resolveServiceBin("computer");
|
|
37121
|
+
const logDir = ensureLogDir("computer", root);
|
|
37122
|
+
const logs = serviceLogPaths("computer", root);
|
|
36885
37123
|
if (backend === "none") {
|
|
36886
37124
|
const out = (0, import_node_fs9.openSync)(logs.out, "a");
|
|
36887
37125
|
const child = (0, import_node_child_process4.spawn)(bin.command, bin.args, {
|
|
@@ -36891,35 +37129,35 @@ async function launchRunner(args) {
|
|
|
36891
37129
|
env: {
|
|
36892
37130
|
...process.env,
|
|
36893
37131
|
SLAYZONE_ROOT: root,
|
|
36894
|
-
// A detached
|
|
37132
|
+
// A detached computer has no TTY, but be explicit: the first-run prompt must
|
|
36895
37133
|
// never block a spawn nobody is watching.
|
|
36896
37134
|
SLAYZONE_NONINTERACTIVE: "1",
|
|
36897
|
-
// Same interpreter requirement as the unit path: a dev-tree
|
|
37135
|
+
// Same interpreter requirement as the unit path: a dev-tree computer needs
|
|
36898
37136
|
// ELECTRON_RUN_AS_NODE or its Electron-ABI natives fail to load.
|
|
36899
37137
|
...bin.env ?? {}
|
|
36900
37138
|
}
|
|
36901
37139
|
});
|
|
36902
37140
|
child.unref();
|
|
36903
|
-
if (!await waitForConnected(root, ENROLL_TIMEOUT_MS)) {
|
|
37141
|
+
if (!await waitForConnected(root, ENROLL_TIMEOUT_MS, backend, name)) {
|
|
36904
37142
|
if (creating) runCreateRollback();
|
|
36905
37143
|
failWithLog(
|
|
36906
|
-
"
|
|
37144
|
+
"computer",
|
|
36907
37145
|
name,
|
|
36908
37146
|
logs.out,
|
|
36909
37147
|
`did not reach its hub within ${ENROLL_TIMEOUT_MS / 1e3}s`
|
|
36910
37148
|
);
|
|
36911
37149
|
}
|
|
36912
|
-
console.log(`
|
|
37150
|
+
console.log(`Computer "${name}" started (pid ${child.pid ?? "?"}) and reached its hub.`);
|
|
36913
37151
|
console.log(` Root: ${shortenPath(root)}`);
|
|
36914
37152
|
console.log(` Logs: ${shortenPath(logDir)}`);
|
|
36915
37153
|
console.log(
|
|
36916
|
-
"Note: this platform has no user service manager, so the
|
|
37154
|
+
"Note: this platform has no user service manager, so the computer will NOT restart if it crashes, and will not come back after a reboot."
|
|
36917
37155
|
);
|
|
36918
37156
|
return;
|
|
36919
37157
|
}
|
|
36920
37158
|
const writtenUnitPath = writeUnit(
|
|
36921
37159
|
{
|
|
36922
|
-
kind: "
|
|
37160
|
+
kind: "computer",
|
|
36923
37161
|
name,
|
|
36924
37162
|
root,
|
|
36925
37163
|
command: bin.command,
|
|
@@ -36930,76 +37168,76 @@ async function launchRunner(args) {
|
|
|
36930
37168
|
backend
|
|
36931
37169
|
);
|
|
36932
37170
|
if (creating) console.log(`Registered ${writtenUnitPath}`);
|
|
36933
|
-
console.log(`Starting
|
|
37171
|
+
console.log(`Starting computer "${name}" (${COMPUTER_PACKAGE}@${bin.version})\u2026`);
|
|
36934
37172
|
try {
|
|
36935
|
-
supervisorStart("
|
|
37173
|
+
supervisorStart("computer", backend, name, writtenUnitPath);
|
|
36936
37174
|
} catch (e) {
|
|
36937
37175
|
if (creating) {
|
|
36938
|
-
removeUnit("
|
|
37176
|
+
removeUnit("computer", name, backend);
|
|
36939
37177
|
runCreateRollback();
|
|
36940
37178
|
}
|
|
36941
37179
|
if (!(e instanceof SupervisorError)) throw e;
|
|
36942
37180
|
const noBus = /Failed to connect to bus|No medium found/i.test(e.output);
|
|
36943
37181
|
fail(
|
|
36944
|
-
`Could not register
|
|
37182
|
+
`Could not register computer "${name}" with ${backend}.
|
|
36945
37183
|
|
|
36946
37184
|
${e.command}
|
|
36947
37185
|
${e.output || "(no output)"}
|
|
36948
37186
|
|
|
36949
37187
|
` + (noBus ? `systemd has no user session bus for this account, so \`systemctl --user\` cannot work. Enable a persistent user manager:
|
|
36950
37188
|
sudo loginctl enable-linger ${process.env.USER ?? "<user>"}
|
|
36951
|
-
then log out and back in, and retry. If this account is not meant to have one (a container, or a root-only box), run the
|
|
36952
|
-
npx ${
|
|
37189
|
+
then log out and back in, and retry. If this account is not meant to have one (a container, or a root-only box), run the computer under the system manager or in the foreground instead:
|
|
37190
|
+
npx ${COMPUTER_PACKAGE}
|
|
36953
37191
|
` : "")
|
|
36954
37192
|
);
|
|
36955
37193
|
}
|
|
36956
|
-
if (!await waitForConnected(root, ENROLL_TIMEOUT_MS)) {
|
|
37194
|
+
if (!await waitForConnected(root, ENROLL_TIMEOUT_MS, backend, name)) {
|
|
36957
37195
|
if (creating) {
|
|
36958
|
-
supervisorStop("
|
|
36959
|
-
removeUnit("
|
|
37196
|
+
supervisorStop("computer", backend, name);
|
|
37197
|
+
removeUnit("computer", name, backend);
|
|
36960
37198
|
runCreateRollback();
|
|
36961
37199
|
} else {
|
|
36962
|
-
supervisorStop("
|
|
37200
|
+
supervisorStop("computer", backend, name);
|
|
36963
37201
|
}
|
|
36964
37202
|
failWithLog(
|
|
36965
|
-
"
|
|
37203
|
+
"computer",
|
|
36966
37204
|
name,
|
|
36967
37205
|
logs.err,
|
|
36968
37206
|
creating ? `did not reach its hub within ${ENROLL_TIMEOUT_MS / 1e3}s, so it was unregistered again` : `did not reach its hub within ${ENROLL_TIMEOUT_MS / 1e3}s (its registration was left in place)`
|
|
36969
37207
|
);
|
|
36970
37208
|
}
|
|
36971
|
-
const status = supervisorStatus("
|
|
37209
|
+
const status = supervisorStatus("computer", backend, name);
|
|
36972
37210
|
console.log(
|
|
36973
|
-
`
|
|
37211
|
+
`Computer "${name}" running${status.pid ? ` (pid ${status.pid})` : ""} and connected to its hub.`
|
|
36974
37212
|
);
|
|
36975
37213
|
console.log(` Root: ${shortenPath(root)}`);
|
|
36976
37214
|
console.log(` Logs: ${shortenPath(logDir)}`);
|
|
36977
37215
|
console.log(` Unit: ${writtenUnitPath}`);
|
|
36978
|
-
console.log(`
|
|
37216
|
+
console.log(` Computer: ${COMPUTER_PACKAGE}@${bin.version}`);
|
|
36979
37217
|
console.log("Restarts automatically if it crashes, and starts again when you log in.");
|
|
36980
37218
|
}
|
|
36981
37219
|
async function waitForStopped(name, backend, timeoutMs) {
|
|
36982
37220
|
const deadline = Date.now() + timeoutMs;
|
|
36983
37221
|
for (; ; ) {
|
|
36984
|
-
if (!supervisorStatus("
|
|
37222
|
+
if (!supervisorStatus("computer", backend, name).running) return true;
|
|
36985
37223
|
if (Date.now() >= deadline) return false;
|
|
36986
37224
|
await new Promise((r) => setTimeout(r, 250));
|
|
36987
37225
|
}
|
|
36988
37226
|
}
|
|
36989
|
-
function
|
|
36990
|
-
const cmd = new Command("
|
|
36991
|
-
cmd.command("mint [label]").description("Mint a
|
|
37227
|
+
function computerCommand() {
|
|
37228
|
+
const cmd = new Command("computer").description("Run and manage SlayZone computers on this machine").showSuggestionAfterError(true).showHelpAfterError(true);
|
|
37229
|
+
cmd.command("mint [label]").description("Mint a computer enrollment token on a hub (see `slay hub current`)").option("--ttl <minutes>", "Token lifetime in minutes", "15").option("--json", "Output as JSON").action(async (label, opts) => {
|
|
36992
37230
|
const ttlMinutes = Number(opts.ttl);
|
|
36993
37231
|
if (!Number.isFinite(ttlMinutes) || ttlMinutes <= 0) {
|
|
36994
37232
|
fail(`Invalid --ttl ${opts.ttl} \u2014 expected a positive number of minutes.`);
|
|
36995
37233
|
}
|
|
36996
|
-
const target = await resolveHubRequestTarget("
|
|
37234
|
+
const target = await resolveHubRequestTarget("computer mint", discoverHubs);
|
|
36997
37235
|
const minted = await hubRequest({
|
|
36998
37236
|
target,
|
|
36999
|
-
path: "/api/
|
|
37237
|
+
path: "/api/computers/join-token",
|
|
37000
37238
|
method: "POST",
|
|
37001
37239
|
body: {
|
|
37002
|
-
label: label ?? "
|
|
37240
|
+
label: label ?? "computer",
|
|
37003
37241
|
ttlMs: Math.round(ttlMinutes * 6e4)
|
|
37004
37242
|
},
|
|
37005
37243
|
unwrap: "raw",
|
|
@@ -37010,7 +37248,7 @@ function runnerCommand() {
|
|
|
37010
37248
|
slay hub login ${target.baseUrl} --email <email>
|
|
37011
37249
|
No account yet? Create one ON the hub machine: slay hub users add <email>`,
|
|
37012
37250
|
403: `This hub only mints join tokens for callers on its own machine.
|
|
37013
|
-
Run \`slay
|
|
37251
|
+
Run \`slay computer mint\` there, or turn login on for the hub (\`slay hub create --public-address <host:port> --bind <host[:port]>\`) so it can authenticate you.`
|
|
37014
37252
|
}
|
|
37015
37253
|
});
|
|
37016
37254
|
if (opts.json) {
|
|
@@ -37021,20 +37259,23 @@ Run \`slay runner mint\` there, or put the hub in remote mode (\`slay hub create
|
|
|
37021
37259
|
console.log(`Token: ${minted.token}`);
|
|
37022
37260
|
console.log("");
|
|
37023
37261
|
console.log(`Expires in ${ttlMinutes} minute${ttlMinutes === 1 ? "" : "s"}, single use.`);
|
|
37024
|
-
console.log("Install a
|
|
37025
|
-
console.log(` slay
|
|
37262
|
+
console.log("Install a computer with it:");
|
|
37263
|
+
console.log(` slay computer create ${label ?? "<name>"} --token ${minted.token}`);
|
|
37026
37264
|
warnIfLoopbackHub(minted.hubUrl);
|
|
37027
37265
|
});
|
|
37028
|
-
cmd.command("ls").description("List the
|
|
37266
|
+
cmd.command("ls").description("List the computers this machine knows about").option("--json", "Output as JSON").action(async (opts) => {
|
|
37029
37267
|
const backend = resolveBackend();
|
|
37030
|
-
const {
|
|
37268
|
+
const { computers, hubReachable } = await listComputers(backend);
|
|
37031
37269
|
if (opts.json) {
|
|
37032
|
-
console.log(JSON.stringify(
|
|
37270
|
+
console.log(JSON.stringify(computers, null, 2));
|
|
37033
37271
|
return;
|
|
37034
37272
|
}
|
|
37035
|
-
if (
|
|
37036
|
-
console.log(
|
|
37037
|
-
|
|
37273
|
+
if (computers.length === 0) {
|
|
37274
|
+
console.log(
|
|
37275
|
+
"No computers here. Create one with `slay computer create <name> --token <token>`."
|
|
37276
|
+
);
|
|
37277
|
+
if (backend === "none")
|
|
37278
|
+
console.log(`
|
|
37038
37279
|
${explainNoBackend(detectBackendWithReason().reason)}`);
|
|
37039
37280
|
return;
|
|
37040
37281
|
}
|
|
@@ -37044,90 +37285,90 @@ ${explainNoBackend(detectBackendWithReason().reason)}`);
|
|
|
37044
37285
|
return "unmanaged";
|
|
37045
37286
|
};
|
|
37046
37287
|
const enrolled = (r) => !hubReachable && !r.enrolled ? "?" : r.enrolled ? "yes" : "no";
|
|
37047
|
-
const nameW = Math.max(4, ...
|
|
37048
|
-
const rootW = Math.max(4, ...
|
|
37049
|
-
const hubW = Math.max(3, ...
|
|
37288
|
+
const nameW = Math.max(4, ...computers.map((r) => r.name.length));
|
|
37289
|
+
const rootW = Math.max(4, ...computers.map((r) => r.root ? shortenPath(r.root).length : 1));
|
|
37290
|
+
const hubW = Math.max(3, ...computers.map((r) => (r.hubUrl ?? "-").length));
|
|
37050
37291
|
console.log(
|
|
37051
37292
|
`${"NAME".padEnd(nameW)} ${"STATE".padEnd(9)} ${"ROOT".padEnd(rootW)} ${"HUB".padEnd(hubW)} ENROLLED`
|
|
37052
37293
|
);
|
|
37053
37294
|
console.log(
|
|
37054
37295
|
`${"-".repeat(nameW)} ${"-".repeat(9)} ${"-".repeat(rootW)} ${"-".repeat(hubW)} ${"-".repeat(8)}`
|
|
37055
37296
|
);
|
|
37056
|
-
for (const r of
|
|
37297
|
+
for (const r of computers) {
|
|
37057
37298
|
console.log(
|
|
37058
37299
|
`${r.name.padEnd(nameW)} ${state(r).padEnd(9)} ${(r.root ? shortenPath(r.root) : "?").padEnd(rootW)} ${(r.hubUrl ?? "-").padEnd(hubW)} ${enrolled(r)}`
|
|
37059
37300
|
);
|
|
37060
37301
|
}
|
|
37061
|
-
if (!hubReachable) {
|
|
37302
|
+
if (!hubReachable && computers.some((r) => enrolled(r) === "?")) {
|
|
37062
37303
|
console.log(
|
|
37063
37304
|
`
|
|
37064
|
-
No hub could be reached, so ENROLLED is
|
|
37305
|
+
No hub could be reached, so ENROLLED is "?" for computers with no local credentials \u2014 they may or may not be enrolled.`
|
|
37065
37306
|
);
|
|
37066
37307
|
}
|
|
37067
|
-
const unmanaged =
|
|
37308
|
+
const unmanaged = computers.filter((r) => state(r) === "unmanaged");
|
|
37068
37309
|
if (unmanaged.length > 0 && backend !== "none") {
|
|
37069
37310
|
console.log(
|
|
37070
37311
|
`
|
|
37071
|
-
${unmanaged.map((r) => `"${r.name}"`).join(", ")} ${unmanaged.length === 1 ? "is" : "are"} installed but not registered with ${backend}. \`slay
|
|
37312
|
+
${unmanaged.map((r) => `"${r.name}"`).join(", ")} ${unmanaged.length === 1 ? "is" : "are"} installed but not registered with ${backend}. \`slay computer start <name>\` will register and start ${unmanaged.length === 1 ? "it" : "them"}.`
|
|
37072
37313
|
);
|
|
37073
37314
|
}
|
|
37074
37315
|
});
|
|
37075
|
-
cmd.command("create <name>").description("Install a
|
|
37316
|
+
cmd.command("create <name>").description("Install a computer here and keep it running (crash-restart + start at login)").requiredOption("--token <token>", "Join token minted on the hub (szjt1.\u2026)").option("--root <dir>", "Computer root \u2014 its config, credentials and logs (default: cwd)").option(
|
|
37076
37317
|
"--allow <dir>",
|
|
37077
|
-
"Filesystem root the
|
|
37318
|
+
"Filesystem root the computer may operate under (repeatable; default: the computer root)",
|
|
37078
37319
|
(value, previous = []) => [...previous, value]
|
|
37079
37320
|
).action(async (name, opts) => {
|
|
37080
|
-
const root = (0,
|
|
37321
|
+
const root = (0, import_node_path10.resolve)(opts.root ?? process.cwd());
|
|
37081
37322
|
const backend = resolveBackend();
|
|
37082
37323
|
const decoded = decodeJoinToken(opts.token);
|
|
37083
37324
|
if (!decoded) {
|
|
37084
37325
|
fail(
|
|
37085
37326
|
`--token is not a valid SlayZone join token (expected \`szjt1.<payload>\`).
|
|
37086
37327
|
Mint one on the hub:
|
|
37087
|
-
slay
|
|
37088
|
-
(or on this machine against a specific hub: \`slay --hub <name|port>
|
|
37328
|
+
slay computer mint ${name}
|
|
37329
|
+
(or on this machine against a specific hub: \`slay --hub <name|port> computer mint ${name}\`)`
|
|
37089
37330
|
);
|
|
37090
37331
|
}
|
|
37091
|
-
if (name ===
|
|
37332
|
+
if (name === DEFAULT_LOCAL_COMPUTER_NAME) {
|
|
37092
37333
|
fail(
|
|
37093
|
-
`"${
|
|
37334
|
+
`"${DEFAULT_LOCAL_COMPUTER_NAME}" is reserved for the computer inside the SlayZone desktop app \u2014 a second computer using it would collide with that one on the hub. Choose another name.`
|
|
37094
37335
|
);
|
|
37095
37336
|
}
|
|
37096
|
-
if (backend !== "none" && (0, import_node_fs9.existsSync)(unitPath("
|
|
37097
|
-
const existingRoot = readUnitRoot("
|
|
37337
|
+
if (backend !== "none" && (0, import_node_fs9.existsSync)(unitPath("computer", name, backend))) {
|
|
37338
|
+
const existingRoot = readUnitRoot("computer", name, backend);
|
|
37098
37339
|
fail(
|
|
37099
|
-
`A
|
|
37100
|
-
Start it with \`slay
|
|
37340
|
+
`A computer named "${name}" already exists${existingRoot ? ` (root ${shortenPath(existingRoot)})` : ""}.
|
|
37341
|
+
Start it with \`slay computer start ${name}\`, or remove it with \`slay computer rm ${name}\`.`
|
|
37101
37342
|
);
|
|
37102
37343
|
}
|
|
37103
|
-
const occupant =
|
|
37344
|
+
const occupant = loadComputerConfigFile(configPathFor(root)).computerName;
|
|
37104
37345
|
if (occupant !== void 0 && occupant !== name) {
|
|
37105
37346
|
fail(
|
|
37106
|
-
`A
|
|
37107
|
-
Give this
|
|
37347
|
+
`A computer is already installed in ${shortenPath(root)} \u2014 "${occupant}".
|
|
37348
|
+
Give this computer its own directory with \`--root <dir>\`, or remove "${occupant}" first with \`slay computer rm ${occupant}\`.`
|
|
37108
37349
|
);
|
|
37109
37350
|
}
|
|
37110
37351
|
const adopting = occupant === name && backend !== "none";
|
|
37111
37352
|
if (occupant === name && !adopting) {
|
|
37112
37353
|
fail(
|
|
37113
|
-
`A
|
|
37114
|
-
Start it with \`slay
|
|
37354
|
+
`A computer is already installed in ${shortenPath(root)} \u2014 "${occupant}".
|
|
37355
|
+
Start it with \`slay computer start ${name}\`, or remove it with \`slay computer rm ${name}\`.`
|
|
37115
37356
|
);
|
|
37116
37357
|
}
|
|
37117
37358
|
if (adopting) {
|
|
37118
37359
|
console.log(
|
|
37119
|
-
`Adopting the
|
|
37360
|
+
`Adopting the computer already in ${shortenPath(root)} \u2014 it is installed but not registered with ${backend}. Its config will be refreshed with this token.`
|
|
37120
37361
|
);
|
|
37121
37362
|
console.log(
|
|
37122
|
-
` If you started it in the foreground, stop that process first \u2014 otherwise two
|
|
37363
|
+
` If you started it in the foreground, stop that process first \u2014 otherwise two computers would share this root.`
|
|
37123
37364
|
);
|
|
37124
37365
|
}
|
|
37125
|
-
const allowedRoots = opts.allow && opts.allow.length > 0 ? opts.allow.map((d) => (0,
|
|
37126
|
-
|
|
37366
|
+
const allowedRoots = opts.allow && opts.allow.length > 0 ? opts.allow.map((d) => (0, import_node_path10.resolve)(d)) : [root];
|
|
37367
|
+
updateComputerConfigFile(
|
|
37127
37368
|
{
|
|
37128
37369
|
joinToken: opts.token,
|
|
37129
37370
|
hubUrl: decoded.hubUrl,
|
|
37130
|
-
|
|
37371
|
+
computerName: name,
|
|
37131
37372
|
allowedRoots
|
|
37132
37373
|
},
|
|
37133
37374
|
configPathFor(root)
|
|
@@ -37140,15 +37381,15 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37140
37381
|
console.log(`Hub: ${decoded.hubUrl}`);
|
|
37141
37382
|
console.log(`Allow: ${allowedRoots.map((d) => shortenPath(d)).join(", ")}`);
|
|
37142
37383
|
warnIfLoopbackHub(decoded.hubUrl);
|
|
37143
|
-
await
|
|
37384
|
+
await launchComputer({ name, root, backend, creating: true });
|
|
37144
37385
|
});
|
|
37145
|
-
cmd.command("start <name>").description("Start a
|
|
37386
|
+
cmd.command("start <name>").description("Start a computer, registering it first if it is not yet supervised").action(async (name) => {
|
|
37146
37387
|
const backend = resolveBackend();
|
|
37147
37388
|
const facts = await requireKnown(name, backend);
|
|
37148
37389
|
if (facts.running) {
|
|
37149
|
-
const status = supervisorStatus("
|
|
37390
|
+
const status = supervisorStatus("computer", backend, name);
|
|
37150
37391
|
console.log(
|
|
37151
|
-
`
|
|
37392
|
+
`Computer "${name}" is already running${status.pid ? ` (pid ${status.pid})` : ""}.`
|
|
37152
37393
|
);
|
|
37153
37394
|
return;
|
|
37154
37395
|
}
|
|
@@ -37156,9 +37397,9 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37156
37397
|
if (!facts.supervised && backend !== "none") {
|
|
37157
37398
|
console.log(`"${name}" is installed but not registered with ${backend} \u2014 registering it.`);
|
|
37158
37399
|
}
|
|
37159
|
-
await
|
|
37400
|
+
await launchComputer({ name, root, backend, creating: false });
|
|
37160
37401
|
});
|
|
37161
|
-
cmd.command("stop <name>").description("Stop a
|
|
37402
|
+
cmd.command("stop <name>").description("Stop a computer, keeping it registered so `start` can bring it back").action(async (name) => {
|
|
37162
37403
|
const backend = resolveBackend();
|
|
37163
37404
|
const facts = await requireKnown(name, backend);
|
|
37164
37405
|
if (backend === "none") return;
|
|
@@ -37168,23 +37409,23 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37168
37409
|
);
|
|
37169
37410
|
return;
|
|
37170
37411
|
}
|
|
37171
|
-
supervisorStop("
|
|
37412
|
+
supervisorStop("computer", backend, name);
|
|
37172
37413
|
if (!await waitForStopped(name, backend, 15e3)) {
|
|
37173
37414
|
fail(
|
|
37174
|
-
`
|
|
37415
|
+
`Computer "${name}" is still running after 15s according to ${backend}. It may be managed elsewhere (docker, a system unit).`
|
|
37175
37416
|
);
|
|
37176
37417
|
}
|
|
37177
|
-
console.log(`Stopped "${name}". Start it again with \`slay
|
|
37418
|
+
console.log(`Stopped "${name}". Start it again with \`slay computer start ${name}\`.`);
|
|
37178
37419
|
});
|
|
37179
|
-
cmd.command("rm <name>").description("Stop a
|
|
37420
|
+
cmd.command("rm <name>").description("Stop a computer and remove its registration").option(
|
|
37180
37421
|
"--purge",
|
|
37181
|
-
"Also delete the
|
|
37422
|
+
"Also delete the computer root (config, credentials, logs) \u2014 this is the operator\u2019s data"
|
|
37182
37423
|
).action(async (name, opts) => {
|
|
37183
37424
|
const backend = resolveBackend();
|
|
37184
37425
|
const facts = await requireKnown(name, backend);
|
|
37185
37426
|
if (facts.supervised && backend !== "none") {
|
|
37186
|
-
supervisorStopQuiet("
|
|
37187
|
-
removeUnit("
|
|
37427
|
+
supervisorStopQuiet("computer", backend, name);
|
|
37428
|
+
removeUnit("computer", name, backend);
|
|
37188
37429
|
console.log(`Unregistered "${name}" from ${backend}.`);
|
|
37189
37430
|
} else if (backend !== "none") {
|
|
37190
37431
|
console.log(`"${name}" had no ${backend} registration.`);
|
|
@@ -37195,7 +37436,7 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37195
37436
|
console.log(`Deleted ${shortenPath(facts.root)}.`);
|
|
37196
37437
|
} else {
|
|
37197
37438
|
console.log(`Config and credentials remain in ${shortenPath(facts.root)}.`);
|
|
37198
|
-
console.log(` Delete them too with \`slay
|
|
37439
|
+
console.log(` Delete them too with \`slay computer rm ${name} --purge\`.`);
|
|
37199
37440
|
}
|
|
37200
37441
|
}
|
|
37201
37442
|
if (facts.enrolled) {
|
|
@@ -37204,16 +37445,16 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37204
37445
|
);
|
|
37205
37446
|
}
|
|
37206
37447
|
});
|
|
37207
|
-
cmd.command("restart <name>").description("Restart a
|
|
37448
|
+
cmd.command("restart <name>").description("Restart a computer").option("--upgrade", `Re-resolve ${COMPUTER_PACKAGE} first (picks up a newer version)`).action(async (name, opts) => {
|
|
37208
37449
|
const backend = resolveBackend();
|
|
37209
37450
|
const { root } = requireRegistered(name, backend);
|
|
37210
37451
|
if (backend === "none") return;
|
|
37211
|
-
const logDir = ensureLogDir("
|
|
37452
|
+
const logDir = ensureLogDir("computer", root);
|
|
37212
37453
|
if (opts.upgrade) {
|
|
37213
|
-
const bin = resolveServiceBin("
|
|
37454
|
+
const bin = resolveServiceBin("computer");
|
|
37214
37455
|
writeUnit(
|
|
37215
37456
|
{
|
|
37216
|
-
kind: "
|
|
37457
|
+
kind: "computer",
|
|
37217
37458
|
name,
|
|
37218
37459
|
root,
|
|
37219
37460
|
command: bin.command,
|
|
@@ -37225,34 +37466,34 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37225
37466
|
},
|
|
37226
37467
|
backend
|
|
37227
37468
|
);
|
|
37228
|
-
console.log(`Unit updated to ${
|
|
37469
|
+
console.log(`Unit updated to ${COMPUTER_PACKAGE}@${bin.version}.`);
|
|
37229
37470
|
}
|
|
37230
|
-
supervisorStop("
|
|
37471
|
+
supervisorStop("computer", backend, name);
|
|
37231
37472
|
await waitForStopped(name, backend, 15e3);
|
|
37232
|
-
supervisorStart("
|
|
37233
|
-
if (!await waitForConnected(root, ENROLL_TIMEOUT_MS)) {
|
|
37473
|
+
supervisorStart("computer", backend, name, unitPath("computer", name, backend));
|
|
37474
|
+
if (!await waitForConnected(root, ENROLL_TIMEOUT_MS, backend, name)) {
|
|
37234
37475
|
fail(
|
|
37235
|
-
`
|
|
37476
|
+
`Computer "${name}" did not reconnect within ${ENROLL_TIMEOUT_MS / 1e3}s. Check \`slay computer logs ${name}\`.`
|
|
37236
37477
|
);
|
|
37237
37478
|
}
|
|
37238
|
-
const status = supervisorStatus("
|
|
37479
|
+
const status = supervisorStatus("computer", backend, name);
|
|
37239
37480
|
console.log(
|
|
37240
|
-
`
|
|
37481
|
+
`Computer "${name}" restarted${status.pid ? ` (pid ${status.pid})` : ""} and reconnected.`
|
|
37241
37482
|
);
|
|
37242
37483
|
});
|
|
37243
|
-
cmd.command("logs <name>").description("Show a
|
|
37484
|
+
cmd.command("logs <name>").description("Show a computer's log output").option("-n, --lines <n>", "Last N lines", "50").option("-f, --follow", "Follow the log").action(async (name, opts) => {
|
|
37244
37485
|
const backend = resolveBackend();
|
|
37245
37486
|
const facts = await requireKnown(name, backend);
|
|
37246
37487
|
const root = requireRoot(facts, "read logs for");
|
|
37247
37488
|
const lines = Number(opts.lines);
|
|
37248
37489
|
if (!Number.isInteger(lines) || lines < 1) fail(`Invalid --lines ${opts.lines}.`);
|
|
37249
37490
|
followServiceLog({
|
|
37250
|
-
kind: "
|
|
37491
|
+
kind: "computer",
|
|
37251
37492
|
name,
|
|
37252
37493
|
root,
|
|
37253
37494
|
lines,
|
|
37254
37495
|
follow: opts.follow === true,
|
|
37255
|
-
systemdUnit: backend === "systemd" && (0, import_node_fs9.existsSync)(unitPath("
|
|
37496
|
+
systemdUnit: backend === "systemd" && (0, import_node_fs9.existsSync)(unitPath("computer", name, backend))
|
|
37256
37497
|
});
|
|
37257
37498
|
});
|
|
37258
37499
|
return cmd;
|
|
@@ -37262,11 +37503,11 @@ Start it with \`slay runner start ${name}\`, or remove it with \`slay runner rm
|
|
|
37262
37503
|
var import_node_child_process5 = require("node:child_process");
|
|
37263
37504
|
var import_node_fs10 = require("node:fs");
|
|
37264
37505
|
var import_node_os2 = require("node:os");
|
|
37265
|
-
var
|
|
37266
|
-
var PACKAGE_NAMES = ["@slayzone/cli", "@slayzone/
|
|
37506
|
+
var import_node_path11 = require("node:path");
|
|
37507
|
+
var PACKAGE_NAMES = ["@slayzone/cli", "@slayzone/computer", "@slayzone/hub"];
|
|
37267
37508
|
var KIND_FOR_PACKAGE = {
|
|
37268
37509
|
"@slayzone/hub": "hub",
|
|
37269
|
-
"@slayzone/
|
|
37510
|
+
"@slayzone/computer": "computer"
|
|
37270
37511
|
};
|
|
37271
37512
|
function runCapture(bin, args) {
|
|
37272
37513
|
try {
|
|
@@ -37276,8 +37517,8 @@ function runCapture(bin, args) {
|
|
|
37276
37517
|
}
|
|
37277
37518
|
}
|
|
37278
37519
|
function bunGlobalRoot() {
|
|
37279
|
-
const base = process.env.BUN_INSTALL || (0,
|
|
37280
|
-
const dir = (0,
|
|
37520
|
+
const base = process.env.BUN_INSTALL || (0, import_node_path11.join)((0, import_node_os2.homedir)(), ".bun");
|
|
37521
|
+
const dir = (0, import_node_path11.join)(base, "install", "global", "node_modules");
|
|
37281
37522
|
return (0, import_node_fs10.existsSync)(dir) ? dir : null;
|
|
37282
37523
|
}
|
|
37283
37524
|
var MANAGERS = [
|
|
@@ -37293,7 +37534,7 @@ var MANAGERS = [
|
|
|
37293
37534
|
globalRoot: () => runCapture("pnpm", ["root", "-g"]),
|
|
37294
37535
|
// pnpm prompts interactively (or silently skips, off a TTY) before running a
|
|
37295
37536
|
// global package's install scripts — `--allow-build=<name>` pre-approves it,
|
|
37296
|
-
// needed for hub/
|
|
37537
|
+
// needed for hub/computer's native rebuild (better-sqlite3/node-pty). Verified
|
|
37297
37538
|
// via `pnpm add --help` (10.30.3); harmless to pass for cli, which has none.
|
|
37298
37539
|
installArgs: (names, target) => [
|
|
37299
37540
|
"add",
|
|
@@ -37318,7 +37559,7 @@ var MANAGERS = [
|
|
|
37318
37559
|
}
|
|
37319
37560
|
];
|
|
37320
37561
|
function readInstalledVersion(globalRoot, pkg) {
|
|
37321
|
-
const pkgJsonPath = (0,
|
|
37562
|
+
const pkgJsonPath = (0, import_node_path11.join)(globalRoot, ...pkg.split("/"), "package.json");
|
|
37322
37563
|
if (!(0, import_node_fs10.existsSync)(pkgJsonPath)) return null;
|
|
37323
37564
|
try {
|
|
37324
37565
|
const parsed = JSON.parse((0, import_node_fs10.readFileSync)(pkgJsonPath, "utf8"));
|
|
@@ -37355,7 +37596,7 @@ function printRestartHints(updatedPackages) {
|
|
|
37355
37596
|
}
|
|
37356
37597
|
function updateCommand() {
|
|
37357
37598
|
const cmd = new Command("update").description(
|
|
37358
|
-
"Update globally installed @slayzone packages (cli, hub,
|
|
37599
|
+
"Update globally installed @slayzone packages (cli, hub, computer) \u2014 npm, pnpm, or bun"
|
|
37359
37600
|
).option("--check", "Report available updates without installing anything").action((opts) => {
|
|
37360
37601
|
const roots = /* @__PURE__ */ new Map();
|
|
37361
37602
|
for (const mgr of MANAGERS) {
|
|
@@ -37437,7 +37678,7 @@ function updateCommand() {
|
|
|
37437
37678
|
}
|
|
37438
37679
|
|
|
37439
37680
|
// src/index.ts
|
|
37440
|
-
var program2 = new Command().name("slay").description("SlayZone CLI").version("0.36.0-beta.
|
|
37681
|
+
var program2 = new Command().name("slay").description("SlayZone CLI").version("0.36.0-beta.18").option("--dev", "Use development database (slayzone.dev.sqlite)").option("--hub <name|port>", "Target a specific hub on this machine (see `slay hub ls`)").showSuggestionAfterError(true).showHelpAfterError(true).hook("preAction", async (thisCommand) => {
|
|
37441
37682
|
const root = thisCommand.parent ?? thisCommand;
|
|
37442
37683
|
const opts = root.opts();
|
|
37443
37684
|
if (opts.dev) process.env.SLAYZONE_DEV = "1";
|
|
@@ -37453,10 +37694,12 @@ async function applyHubOverride(nameOrPort) {
|
|
|
37453
37694
|
);
|
|
37454
37695
|
process.exit(1);
|
|
37455
37696
|
}
|
|
37456
|
-
|
|
37457
|
-
|
|
37458
|
-
|
|
37459
|
-
|
|
37697
|
+
const envToken = process.env.SLAYZONE_HUB_TOKEN;
|
|
37698
|
+
let token = envToken || null;
|
|
37699
|
+
if (!token && hub.authRequired) {
|
|
37700
|
+
token = (await readBootstrapOwner(hub.root))?.token ?? null;
|
|
37701
|
+
}
|
|
37702
|
+
setHubOverride({ baseUrl: `http://127.0.0.1:${hub.port}`, token });
|
|
37460
37703
|
}
|
|
37461
37704
|
program2.addCommand(tasksCommand());
|
|
37462
37705
|
program2.addCommand(projectsCommand());
|
|
@@ -37469,7 +37712,7 @@ program2.addCommand(completionsCommand());
|
|
|
37469
37712
|
program2.addCommand(initCommand());
|
|
37470
37713
|
program2.addCommand(ptyCommand());
|
|
37471
37714
|
program2.addCommand(hubCommand());
|
|
37472
|
-
program2.addCommand(
|
|
37715
|
+
program2.addCommand(computerCommand());
|
|
37473
37716
|
program2.addCommand(updateCommand());
|
|
37474
37717
|
program2.parseAsync(process.argv).catch((err) => {
|
|
37475
37718
|
console.error(err instanceof Error ? err.message : String(err));
|