peerband 0.2.1 → 0.2.3
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 +121 -4
- package/dist/peerband.mjs +486 -233
- package/herdr-plugin.toml +1 -1
- package/package.json +33 -7
- package/protocol/README.md +29 -0
- package/protocol/relay-messages.schema.json +18 -2
- package/skills/peerband/SKILL.md +20 -0
package/dist/peerband.mjs
CHANGED
|
@@ -36,9 +36,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
mod
|
|
37
37
|
));
|
|
38
38
|
|
|
39
|
-
// node_modules/ws/lib/constants.js
|
|
39
|
+
// ../peerband-cli/node_modules/ws/lib/constants.js
|
|
40
40
|
var require_constants = __commonJS({
|
|
41
|
-
"node_modules/ws/lib/constants.js"(exports, module) {
|
|
41
|
+
"../peerband-cli/node_modules/ws/lib/constants.js"(exports, module) {
|
|
42
42
|
"use strict";
|
|
43
43
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
44
44
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -59,9 +59,9 @@ var require_constants = __commonJS({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
// node_modules/ws/lib/buffer-util.js
|
|
62
|
+
// ../peerband-cli/node_modules/ws/lib/buffer-util.js
|
|
63
63
|
var require_buffer_util = __commonJS({
|
|
64
|
-
"node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
64
|
+
"../peerband-cli/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
65
65
|
"use strict";
|
|
66
66
|
var { EMPTY_BUFFER } = require_constants();
|
|
67
67
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -134,9 +134,9 @@ var require_buffer_util = __commonJS({
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
// node_modules/ws/lib/limiter.js
|
|
137
|
+
// ../peerband-cli/node_modules/ws/lib/limiter.js
|
|
138
138
|
var require_limiter = __commonJS({
|
|
139
|
-
"node_modules/ws/lib/limiter.js"(exports, module) {
|
|
139
|
+
"../peerband-cli/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
140
140
|
"use strict";
|
|
141
141
|
var kDone = /* @__PURE__ */ Symbol("kDone");
|
|
142
142
|
var kRun = /* @__PURE__ */ Symbol("kRun");
|
|
@@ -184,9 +184,9 @@ var require_limiter = __commonJS({
|
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
// node_modules/ws/lib/permessage-deflate.js
|
|
187
|
+
// ../peerband-cli/node_modules/ws/lib/permessage-deflate.js
|
|
188
188
|
var require_permessage_deflate = __commonJS({
|
|
189
|
-
"node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
189
|
+
"../peerband-cli/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
190
190
|
"use strict";
|
|
191
191
|
var zlib = __require("zlib");
|
|
192
192
|
var bufferUtil = require_buffer_util();
|
|
@@ -567,9 +567,9 @@ var require_permessage_deflate = __commonJS({
|
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
|
|
570
|
-
// node_modules/ws/lib/validation.js
|
|
570
|
+
// ../peerband-cli/node_modules/ws/lib/validation.js
|
|
571
571
|
var require_validation = __commonJS({
|
|
572
|
-
"node_modules/ws/lib/validation.js"(exports, module) {
|
|
572
|
+
"../peerband-cli/node_modules/ws/lib/validation.js"(exports, module) {
|
|
573
573
|
"use strict";
|
|
574
574
|
var { isUtf8 } = __require("buffer");
|
|
575
575
|
var { hasBlob } = require_constants();
|
|
@@ -768,9 +768,9 @@ var require_validation = __commonJS({
|
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
-
// node_modules/ws/lib/receiver.js
|
|
771
|
+
// ../peerband-cli/node_modules/ws/lib/receiver.js
|
|
772
772
|
var require_receiver = __commonJS({
|
|
773
|
-
"node_modules/ws/lib/receiver.js"(exports, module) {
|
|
773
|
+
"../peerband-cli/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
774
774
|
"use strict";
|
|
775
775
|
var { Writable } = __require("stream");
|
|
776
776
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
@@ -1391,9 +1391,9 @@ var require_receiver = __commonJS({
|
|
|
1391
1391
|
}
|
|
1392
1392
|
});
|
|
1393
1393
|
|
|
1394
|
-
// node_modules/ws/lib/sender.js
|
|
1394
|
+
// ../peerband-cli/node_modules/ws/lib/sender.js
|
|
1395
1395
|
var require_sender = __commonJS({
|
|
1396
|
-
"node_modules/ws/lib/sender.js"(exports, module) {
|
|
1396
|
+
"../peerband-cli/node_modules/ws/lib/sender.js"(exports, module) {
|
|
1397
1397
|
"use strict";
|
|
1398
1398
|
var { Duplex } = __require("stream");
|
|
1399
1399
|
var { randomFillSync } = __require("crypto");
|
|
@@ -1884,9 +1884,9 @@ var require_sender = __commonJS({
|
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
1886
|
|
|
1887
|
-
// node_modules/ws/lib/event-target.js
|
|
1887
|
+
// ../peerband-cli/node_modules/ws/lib/event-target.js
|
|
1888
1888
|
var require_event_target = __commonJS({
|
|
1889
|
-
"node_modules/ws/lib/event-target.js"(exports, module) {
|
|
1889
|
+
"../peerband-cli/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
1890
1890
|
"use strict";
|
|
1891
1891
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
1892
1892
|
var kCode = /* @__PURE__ */ Symbol("kCode");
|
|
@@ -2113,9 +2113,9 @@ var require_event_target = __commonJS({
|
|
|
2113
2113
|
}
|
|
2114
2114
|
});
|
|
2115
2115
|
|
|
2116
|
-
// node_modules/ws/lib/extension.js
|
|
2116
|
+
// ../peerband-cli/node_modules/ws/lib/extension.js
|
|
2117
2117
|
var require_extension = __commonJS({
|
|
2118
|
-
"node_modules/ws/lib/extension.js"(exports, module) {
|
|
2118
|
+
"../peerband-cli/node_modules/ws/lib/extension.js"(exports, module) {
|
|
2119
2119
|
"use strict";
|
|
2120
2120
|
var { tokenChars } = require_validation();
|
|
2121
2121
|
function push(dest, name, elem) {
|
|
@@ -2266,9 +2266,9 @@ var require_extension = __commonJS({
|
|
|
2266
2266
|
}
|
|
2267
2267
|
});
|
|
2268
2268
|
|
|
2269
|
-
// node_modules/ws/lib/websocket.js
|
|
2269
|
+
// ../peerband-cli/node_modules/ws/lib/websocket.js
|
|
2270
2270
|
var require_websocket = __commonJS({
|
|
2271
|
-
"node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2271
|
+
"../peerband-cli/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2272
2272
|
"use strict";
|
|
2273
2273
|
var EventEmitter = __require("events");
|
|
2274
2274
|
var https = __require("https");
|
|
@@ -3175,9 +3175,9 @@ var require_websocket = __commonJS({
|
|
|
3175
3175
|
}
|
|
3176
3176
|
});
|
|
3177
3177
|
|
|
3178
|
-
// node_modules/ws/lib/stream.js
|
|
3178
|
+
// ../peerband-cli/node_modules/ws/lib/stream.js
|
|
3179
3179
|
var require_stream = __commonJS({
|
|
3180
|
-
"node_modules/ws/lib/stream.js"(exports, module) {
|
|
3180
|
+
"../peerband-cli/node_modules/ws/lib/stream.js"(exports, module) {
|
|
3181
3181
|
"use strict";
|
|
3182
3182
|
var WebSocket2 = require_websocket();
|
|
3183
3183
|
var { Duplex } = __require("stream");
|
|
@@ -3273,9 +3273,9 @@ var require_stream = __commonJS({
|
|
|
3273
3273
|
}
|
|
3274
3274
|
});
|
|
3275
3275
|
|
|
3276
|
-
// node_modules/ws/lib/subprotocol.js
|
|
3276
|
+
// ../peerband-cli/node_modules/ws/lib/subprotocol.js
|
|
3277
3277
|
var require_subprotocol = __commonJS({
|
|
3278
|
-
"node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3278
|
+
"../peerband-cli/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3279
3279
|
"use strict";
|
|
3280
3280
|
var { tokenChars } = require_validation();
|
|
3281
3281
|
function parse(header) {
|
|
@@ -3318,9 +3318,9 @@ var require_subprotocol = __commonJS({
|
|
|
3318
3318
|
}
|
|
3319
3319
|
});
|
|
3320
3320
|
|
|
3321
|
-
// node_modules/ws/lib/websocket-server.js
|
|
3321
|
+
// ../peerband-cli/node_modules/ws/lib/websocket-server.js
|
|
3322
3322
|
var require_websocket_server = __commonJS({
|
|
3323
|
-
"node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3323
|
+
"../peerband-cli/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3324
3324
|
"use strict";
|
|
3325
3325
|
var EventEmitter = __require("events");
|
|
3326
3326
|
var http = __require("http");
|
|
@@ -3719,9 +3719,9 @@ var require_websocket_server = __commonJS({
|
|
|
3719
3719
|
}
|
|
3720
3720
|
});
|
|
3721
3721
|
|
|
3722
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
3722
|
+
// ../peerband-cli/node_modules/ajv-formats/dist/formats.js
|
|
3723
3723
|
var require_formats = __commonJS({
|
|
3724
|
-
"node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
3724
|
+
"../peerband-cli/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
3725
3725
|
"use strict";
|
|
3726
3726
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3727
3727
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -3922,9 +3922,9 @@ var require_formats = __commonJS({
|
|
|
3922
3922
|
}
|
|
3923
3923
|
});
|
|
3924
3924
|
|
|
3925
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
3925
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/codegen/code.js
|
|
3926
3926
|
var require_code = __commonJS({
|
|
3927
|
-
"node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
3927
|
+
"../peerband-cli/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
3928
3928
|
"use strict";
|
|
3929
3929
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3930
3930
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -4076,9 +4076,9 @@ var require_code = __commonJS({
|
|
|
4076
4076
|
}
|
|
4077
4077
|
});
|
|
4078
4078
|
|
|
4079
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
4079
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/codegen/scope.js
|
|
4080
4080
|
var require_scope = __commonJS({
|
|
4081
|
-
"node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
4081
|
+
"../peerband-cli/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
4082
4082
|
"use strict";
|
|
4083
4083
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4084
4084
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -4221,9 +4221,9 @@ var require_scope = __commonJS({
|
|
|
4221
4221
|
}
|
|
4222
4222
|
});
|
|
4223
4223
|
|
|
4224
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
4224
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/codegen/index.js
|
|
4225
4225
|
var require_codegen = __commonJS({
|
|
4226
|
-
"node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
4226
|
+
"../peerband-cli/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
4227
4227
|
"use strict";
|
|
4228
4228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4229
4229
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -4941,9 +4941,9 @@ var require_codegen = __commonJS({
|
|
|
4941
4941
|
}
|
|
4942
4942
|
});
|
|
4943
4943
|
|
|
4944
|
-
// node_modules/ajv/dist/compile/util.js
|
|
4944
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/util.js
|
|
4945
4945
|
var require_util = __commonJS({
|
|
4946
|
-
"node_modules/ajv/dist/compile/util.js"(exports) {
|
|
4946
|
+
"../peerband-cli/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
4947
4947
|
"use strict";
|
|
4948
4948
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4949
4949
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -5108,9 +5108,9 @@ var require_util = __commonJS({
|
|
|
5108
5108
|
}
|
|
5109
5109
|
});
|
|
5110
5110
|
|
|
5111
|
-
// node_modules/ajv/dist/compile/names.js
|
|
5111
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/names.js
|
|
5112
5112
|
var require_names = __commonJS({
|
|
5113
|
-
"node_modules/ajv/dist/compile/names.js"(exports) {
|
|
5113
|
+
"../peerband-cli/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
5114
5114
|
"use strict";
|
|
5115
5115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5116
5116
|
var codegen_1 = require_codegen();
|
|
@@ -5147,9 +5147,9 @@ var require_names = __commonJS({
|
|
|
5147
5147
|
}
|
|
5148
5148
|
});
|
|
5149
5149
|
|
|
5150
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
5150
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/errors.js
|
|
5151
5151
|
var require_errors = __commonJS({
|
|
5152
|
-
"node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
5152
|
+
"../peerband-cli/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
5153
5153
|
"use strict";
|
|
5154
5154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5155
5155
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -5269,9 +5269,9 @@ var require_errors = __commonJS({
|
|
|
5269
5269
|
}
|
|
5270
5270
|
});
|
|
5271
5271
|
|
|
5272
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
5272
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
5273
5273
|
var require_boolSchema = __commonJS({
|
|
5274
|
-
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
5274
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
5275
5275
|
"use strict";
|
|
5276
5276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5277
5277
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -5320,9 +5320,9 @@ var require_boolSchema = __commonJS({
|
|
|
5320
5320
|
}
|
|
5321
5321
|
});
|
|
5322
5322
|
|
|
5323
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
5323
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/rules.js
|
|
5324
5324
|
var require_rules = __commonJS({
|
|
5325
|
-
"node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
5325
|
+
"../peerband-cli/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
5326
5326
|
"use strict";
|
|
5327
5327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5328
5328
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -5351,9 +5351,9 @@ var require_rules = __commonJS({
|
|
|
5351
5351
|
}
|
|
5352
5352
|
});
|
|
5353
5353
|
|
|
5354
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
5354
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/applicability.js
|
|
5355
5355
|
var require_applicability = __commonJS({
|
|
5356
|
-
"node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
5356
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
5357
5357
|
"use strict";
|
|
5358
5358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5359
5359
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -5374,9 +5374,9 @@ var require_applicability = __commonJS({
|
|
|
5374
5374
|
}
|
|
5375
5375
|
});
|
|
5376
5376
|
|
|
5377
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
5377
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/dataType.js
|
|
5378
5378
|
var require_dataType = __commonJS({
|
|
5379
|
-
"node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
5379
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
5380
5380
|
"use strict";
|
|
5381
5381
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5382
5382
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -5558,9 +5558,9 @@ var require_dataType = __commonJS({
|
|
|
5558
5558
|
}
|
|
5559
5559
|
});
|
|
5560
5560
|
|
|
5561
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
5561
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/defaults.js
|
|
5562
5562
|
var require_defaults = __commonJS({
|
|
5563
|
-
"node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
5563
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
5564
5564
|
"use strict";
|
|
5565
5565
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5566
5566
|
exports.assignDefaults = void 0;
|
|
@@ -5595,9 +5595,9 @@ var require_defaults = __commonJS({
|
|
|
5595
5595
|
}
|
|
5596
5596
|
});
|
|
5597
5597
|
|
|
5598
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
5598
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/code.js
|
|
5599
5599
|
var require_code2 = __commonJS({
|
|
5600
|
-
"node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
5600
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
5601
5601
|
"use strict";
|
|
5602
5602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5603
5603
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -5728,9 +5728,9 @@ var require_code2 = __commonJS({
|
|
|
5728
5728
|
}
|
|
5729
5729
|
});
|
|
5730
5730
|
|
|
5731
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
5731
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/keyword.js
|
|
5732
5732
|
var require_keyword = __commonJS({
|
|
5733
|
-
"node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
5733
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
5734
5734
|
"use strict";
|
|
5735
5735
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5736
5736
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -5846,9 +5846,9 @@ var require_keyword = __commonJS({
|
|
|
5846
5846
|
}
|
|
5847
5847
|
});
|
|
5848
5848
|
|
|
5849
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
5849
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/subschema.js
|
|
5850
5850
|
var require_subschema = __commonJS({
|
|
5851
|
-
"node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
5851
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
5852
5852
|
"use strict";
|
|
5853
5853
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5854
5854
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -5929,9 +5929,9 @@ var require_subschema = __commonJS({
|
|
|
5929
5929
|
}
|
|
5930
5930
|
});
|
|
5931
5931
|
|
|
5932
|
-
// node_modules/fast-deep-equal/index.js
|
|
5932
|
+
// ../peerband-cli/node_modules/fast-deep-equal/index.js
|
|
5933
5933
|
var require_fast_deep_equal = __commonJS({
|
|
5934
|
-
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
5934
|
+
"../peerband-cli/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
5935
5935
|
"use strict";
|
|
5936
5936
|
module.exports = function equal(a, b) {
|
|
5937
5937
|
if (a === b) return true;
|
|
@@ -5964,9 +5964,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
5964
5964
|
}
|
|
5965
5965
|
});
|
|
5966
5966
|
|
|
5967
|
-
// node_modules/json-schema-traverse/index.js
|
|
5967
|
+
// ../peerband-cli/node_modules/json-schema-traverse/index.js
|
|
5968
5968
|
var require_json_schema_traverse = __commonJS({
|
|
5969
|
-
"node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
5969
|
+
"../peerband-cli/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
5970
5970
|
"use strict";
|
|
5971
5971
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
5972
5972
|
if (typeof opts == "function") {
|
|
@@ -6052,9 +6052,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
6052
6052
|
}
|
|
6053
6053
|
});
|
|
6054
6054
|
|
|
6055
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
6055
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/resolve.js
|
|
6056
6056
|
var require_resolve = __commonJS({
|
|
6057
|
-
"node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
6057
|
+
"../peerband-cli/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
6058
6058
|
"use strict";
|
|
6059
6059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6060
6060
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -6208,9 +6208,9 @@ var require_resolve = __commonJS({
|
|
|
6208
6208
|
}
|
|
6209
6209
|
});
|
|
6210
6210
|
|
|
6211
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
6211
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/validate/index.js
|
|
6212
6212
|
var require_validate = __commonJS({
|
|
6213
|
-
"node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
6213
|
+
"../peerband-cli/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
6214
6214
|
"use strict";
|
|
6215
6215
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6216
6216
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -6716,9 +6716,9 @@ var require_validate = __commonJS({
|
|
|
6716
6716
|
}
|
|
6717
6717
|
});
|
|
6718
6718
|
|
|
6719
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
6719
|
+
// ../peerband-cli/node_modules/ajv/dist/runtime/validation_error.js
|
|
6720
6720
|
var require_validation_error = __commonJS({
|
|
6721
|
-
"node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
6721
|
+
"../peerband-cli/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
6722
6722
|
"use strict";
|
|
6723
6723
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6724
6724
|
var ValidationError = class extends Error {
|
|
@@ -6732,9 +6732,9 @@ var require_validation_error = __commonJS({
|
|
|
6732
6732
|
}
|
|
6733
6733
|
});
|
|
6734
6734
|
|
|
6735
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
6735
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/ref_error.js
|
|
6736
6736
|
var require_ref_error = __commonJS({
|
|
6737
|
-
"node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
6737
|
+
"../peerband-cli/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
6738
6738
|
"use strict";
|
|
6739
6739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6740
6740
|
var resolve_1 = require_resolve();
|
|
@@ -6749,9 +6749,9 @@ var require_ref_error = __commonJS({
|
|
|
6749
6749
|
}
|
|
6750
6750
|
});
|
|
6751
6751
|
|
|
6752
|
-
// node_modules/ajv/dist/compile/index.js
|
|
6752
|
+
// ../peerband-cli/node_modules/ajv/dist/compile/index.js
|
|
6753
6753
|
var require_compile = __commonJS({
|
|
6754
|
-
"node_modules/ajv/dist/compile/index.js"(exports) {
|
|
6754
|
+
"../peerband-cli/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
6755
6755
|
"use strict";
|
|
6756
6756
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6757
6757
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -6973,9 +6973,9 @@ var require_compile = __commonJS({
|
|
|
6973
6973
|
}
|
|
6974
6974
|
});
|
|
6975
6975
|
|
|
6976
|
-
// node_modules/ajv/dist/refs/data.json
|
|
6976
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/data.json
|
|
6977
6977
|
var require_data = __commonJS({
|
|
6978
|
-
"node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
6978
|
+
"../peerband-cli/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
6979
6979
|
module.exports = {
|
|
6980
6980
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
6981
6981
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -6992,9 +6992,9 @@ var require_data = __commonJS({
|
|
|
6992
6992
|
}
|
|
6993
6993
|
});
|
|
6994
6994
|
|
|
6995
|
-
// node_modules/fast-uri/lib/utils.js
|
|
6995
|
+
// ../peerband-cli/node_modules/fast-uri/lib/utils.js
|
|
6996
6996
|
var require_utils = __commonJS({
|
|
6997
|
-
"node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
6997
|
+
"../peerband-cli/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
6998
6998
|
"use strict";
|
|
6999
6999
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
7000
7000
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -7494,9 +7494,9 @@ var require_utils = __commonJS({
|
|
|
7494
7494
|
}
|
|
7495
7495
|
});
|
|
7496
7496
|
|
|
7497
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
7497
|
+
// ../peerband-cli/node_modules/fast-uri/lib/schemes.js
|
|
7498
7498
|
var require_schemes = __commonJS({
|
|
7499
|
-
"node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
7499
|
+
"../peerband-cli/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
7500
7500
|
"use strict";
|
|
7501
7501
|
var { isUUID } = require_utils();
|
|
7502
7502
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -7705,9 +7705,9 @@ var require_schemes = __commonJS({
|
|
|
7705
7705
|
}
|
|
7706
7706
|
});
|
|
7707
7707
|
|
|
7708
|
-
// node_modules/fast-uri/index.js
|
|
7708
|
+
// ../peerband-cli/node_modules/fast-uri/index.js
|
|
7709
7709
|
var require_fast_uri = __commonJS({
|
|
7710
|
-
"node_modules/fast-uri/index.js"(exports, module) {
|
|
7710
|
+
"../peerband-cli/node_modules/fast-uri/index.js"(exports, module) {
|
|
7711
7711
|
"use strict";
|
|
7712
7712
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
7713
7713
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -8111,9 +8111,9 @@ var require_fast_uri = __commonJS({
|
|
|
8111
8111
|
}
|
|
8112
8112
|
});
|
|
8113
8113
|
|
|
8114
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
8114
|
+
// ../peerband-cli/node_modules/ajv/dist/runtime/uri.js
|
|
8115
8115
|
var require_uri = __commonJS({
|
|
8116
|
-
"node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
8116
|
+
"../peerband-cli/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
8117
8117
|
"use strict";
|
|
8118
8118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8119
8119
|
var uri = require_fast_uri();
|
|
@@ -8122,9 +8122,9 @@ var require_uri = __commonJS({
|
|
|
8122
8122
|
}
|
|
8123
8123
|
});
|
|
8124
8124
|
|
|
8125
|
-
// node_modules/ajv/dist/core.js
|
|
8125
|
+
// ../peerband-cli/node_modules/ajv/dist/core.js
|
|
8126
8126
|
var require_core = __commonJS({
|
|
8127
|
-
"node_modules/ajv/dist/core.js"(exports) {
|
|
8127
|
+
"../peerband-cli/node_modules/ajv/dist/core.js"(exports) {
|
|
8128
8128
|
"use strict";
|
|
8129
8129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8130
8130
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -8733,9 +8733,9 @@ var require_core = __commonJS({
|
|
|
8733
8733
|
}
|
|
8734
8734
|
});
|
|
8735
8735
|
|
|
8736
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
8736
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/core/id.js
|
|
8737
8737
|
var require_id = __commonJS({
|
|
8738
|
-
"node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
8738
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
8739
8739
|
"use strict";
|
|
8740
8740
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8741
8741
|
var def = {
|
|
@@ -8748,9 +8748,9 @@ var require_id = __commonJS({
|
|
|
8748
8748
|
}
|
|
8749
8749
|
});
|
|
8750
8750
|
|
|
8751
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
8751
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
8752
8752
|
var require_ref = __commonJS({
|
|
8753
|
-
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
8753
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
8754
8754
|
"use strict";
|
|
8755
8755
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8756
8756
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -8870,9 +8870,9 @@ var require_ref = __commonJS({
|
|
|
8870
8870
|
}
|
|
8871
8871
|
});
|
|
8872
8872
|
|
|
8873
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
8873
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/core/index.js
|
|
8874
8874
|
var require_core2 = __commonJS({
|
|
8875
|
-
"node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
8875
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
8876
8876
|
"use strict";
|
|
8877
8877
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8878
8878
|
var id_1 = require_id();
|
|
@@ -8891,9 +8891,9 @@ var require_core2 = __commonJS({
|
|
|
8891
8891
|
}
|
|
8892
8892
|
});
|
|
8893
8893
|
|
|
8894
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
8894
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
8895
8895
|
var require_limitNumber = __commonJS({
|
|
8896
|
-
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
8896
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
8897
8897
|
"use strict";
|
|
8898
8898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8899
8899
|
var codegen_1 = require_codegen();
|
|
@@ -8923,9 +8923,9 @@ var require_limitNumber = __commonJS({
|
|
|
8923
8923
|
}
|
|
8924
8924
|
});
|
|
8925
8925
|
|
|
8926
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
8926
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
8927
8927
|
var require_multipleOf = __commonJS({
|
|
8928
|
-
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
8928
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
8929
8929
|
"use strict";
|
|
8930
8930
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8931
8931
|
var codegen_1 = require_codegen();
|
|
@@ -8943,17 +8943,17 @@ var require_multipleOf = __commonJS({
|
|
|
8943
8943
|
const { gen, data, schemaCode, it } = cxt;
|
|
8944
8944
|
const prec = it.opts.multipleOfPrecision;
|
|
8945
8945
|
const res = gen.let("res");
|
|
8946
|
-
const
|
|
8947
|
-
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${
|
|
8946
|
+
const invalid2 = prec ? (0, codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1._)`${res} !== parseInt(${res})`;
|
|
8947
|
+
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid2}))`);
|
|
8948
8948
|
}
|
|
8949
8949
|
};
|
|
8950
8950
|
exports.default = def;
|
|
8951
8951
|
}
|
|
8952
8952
|
});
|
|
8953
8953
|
|
|
8954
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
8954
|
+
// ../peerband-cli/node_modules/ajv/dist/runtime/ucs2length.js
|
|
8955
8955
|
var require_ucs2length = __commonJS({
|
|
8956
|
-
"node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
8956
|
+
"../peerband-cli/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
8957
8957
|
"use strict";
|
|
8958
8958
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8959
8959
|
function ucs2length(str2) {
|
|
@@ -8977,9 +8977,9 @@ var require_ucs2length = __commonJS({
|
|
|
8977
8977
|
}
|
|
8978
8978
|
});
|
|
8979
8979
|
|
|
8980
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
8980
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
8981
8981
|
var require_limitLength = __commonJS({
|
|
8982
|
-
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
8982
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
8983
8983
|
"use strict";
|
|
8984
8984
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8985
8985
|
var codegen_1 = require_codegen();
|
|
@@ -9009,9 +9009,9 @@ var require_limitLength = __commonJS({
|
|
|
9009
9009
|
}
|
|
9010
9010
|
});
|
|
9011
9011
|
|
|
9012
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
9012
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
9013
9013
|
var require_pattern = __commonJS({
|
|
9014
|
-
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
9014
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
9015
9015
|
"use strict";
|
|
9016
9016
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9017
9017
|
var code_1 = require_code2();
|
|
@@ -9046,9 +9046,9 @@ var require_pattern = __commonJS({
|
|
|
9046
9046
|
}
|
|
9047
9047
|
});
|
|
9048
9048
|
|
|
9049
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
9049
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
9050
9050
|
var require_limitProperties = __commonJS({
|
|
9051
|
-
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
9051
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
9052
9052
|
"use strict";
|
|
9053
9053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9054
9054
|
var codegen_1 = require_codegen();
|
|
@@ -9075,9 +9075,9 @@ var require_limitProperties = __commonJS({
|
|
|
9075
9075
|
}
|
|
9076
9076
|
});
|
|
9077
9077
|
|
|
9078
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
9078
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
9079
9079
|
var require_required = __commonJS({
|
|
9080
|
-
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
9080
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
9081
9081
|
"use strict";
|
|
9082
9082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9083
9083
|
var code_1 = require_code2();
|
|
@@ -9157,9 +9157,9 @@ var require_required = __commonJS({
|
|
|
9157
9157
|
}
|
|
9158
9158
|
});
|
|
9159
9159
|
|
|
9160
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
9160
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
9161
9161
|
var require_limitItems = __commonJS({
|
|
9162
|
-
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
9162
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
9163
9163
|
"use strict";
|
|
9164
9164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9165
9165
|
var codegen_1 = require_codegen();
|
|
@@ -9186,9 +9186,9 @@ var require_limitItems = __commonJS({
|
|
|
9186
9186
|
}
|
|
9187
9187
|
});
|
|
9188
9188
|
|
|
9189
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
9189
|
+
// ../peerband-cli/node_modules/ajv/dist/runtime/equal.js
|
|
9190
9190
|
var require_equal = __commonJS({
|
|
9191
|
-
"node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
9191
|
+
"../peerband-cli/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
9192
9192
|
"use strict";
|
|
9193
9193
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9194
9194
|
var equal = require_fast_deep_equal();
|
|
@@ -9197,9 +9197,9 @@ var require_equal = __commonJS({
|
|
|
9197
9197
|
}
|
|
9198
9198
|
});
|
|
9199
9199
|
|
|
9200
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
9200
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
9201
9201
|
var require_uniqueItems = __commonJS({
|
|
9202
|
-
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
9202
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
9203
9203
|
"use strict";
|
|
9204
9204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9205
9205
|
var dataType_1 = require_dataType();
|
|
@@ -9264,9 +9264,9 @@ var require_uniqueItems = __commonJS({
|
|
|
9264
9264
|
}
|
|
9265
9265
|
});
|
|
9266
9266
|
|
|
9267
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
9267
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
9268
9268
|
var require_const = __commonJS({
|
|
9269
|
-
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
9269
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
9270
9270
|
"use strict";
|
|
9271
9271
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9272
9272
|
var codegen_1 = require_codegen();
|
|
@@ -9293,9 +9293,9 @@ var require_const = __commonJS({
|
|
|
9293
9293
|
}
|
|
9294
9294
|
});
|
|
9295
9295
|
|
|
9296
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
9296
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
9297
9297
|
var require_enum = __commonJS({
|
|
9298
|
-
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
9298
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
9299
9299
|
"use strict";
|
|
9300
9300
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9301
9301
|
var codegen_1 = require_codegen();
|
|
@@ -9342,9 +9342,9 @@ var require_enum = __commonJS({
|
|
|
9342
9342
|
}
|
|
9343
9343
|
});
|
|
9344
9344
|
|
|
9345
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
9345
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
9346
9346
|
var require_validation2 = __commonJS({
|
|
9347
|
-
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
9347
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
9348
9348
|
"use strict";
|
|
9349
9349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9350
9350
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -9380,9 +9380,9 @@ var require_validation2 = __commonJS({
|
|
|
9380
9380
|
}
|
|
9381
9381
|
});
|
|
9382
9382
|
|
|
9383
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
9383
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
9384
9384
|
var require_additionalItems = __commonJS({
|
|
9385
|
-
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
9385
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
9386
9386
|
"use strict";
|
|
9387
9387
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9388
9388
|
exports.validateAdditionalItems = void 0;
|
|
@@ -9433,9 +9433,9 @@ var require_additionalItems = __commonJS({
|
|
|
9433
9433
|
}
|
|
9434
9434
|
});
|
|
9435
9435
|
|
|
9436
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
9436
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
9437
9437
|
var require_items = __commonJS({
|
|
9438
|
-
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
9438
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
9439
9439
|
"use strict";
|
|
9440
9440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9441
9441
|
exports.validateTuple = void 0;
|
|
@@ -9490,9 +9490,9 @@ var require_items = __commonJS({
|
|
|
9490
9490
|
}
|
|
9491
9491
|
});
|
|
9492
9492
|
|
|
9493
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
9493
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
9494
9494
|
var require_prefixItems = __commonJS({
|
|
9495
|
-
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
9495
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
9496
9496
|
"use strict";
|
|
9497
9497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9498
9498
|
var items_1 = require_items();
|
|
@@ -9507,9 +9507,9 @@ var require_prefixItems = __commonJS({
|
|
|
9507
9507
|
}
|
|
9508
9508
|
});
|
|
9509
9509
|
|
|
9510
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
9510
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
9511
9511
|
var require_items2020 = __commonJS({
|
|
9512
|
-
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
9512
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
9513
9513
|
"use strict";
|
|
9514
9514
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9515
9515
|
var codegen_1 = require_codegen();
|
|
@@ -9542,9 +9542,9 @@ var require_items2020 = __commonJS({
|
|
|
9542
9542
|
}
|
|
9543
9543
|
});
|
|
9544
9544
|
|
|
9545
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
9545
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
9546
9546
|
var require_contains = __commonJS({
|
|
9547
|
-
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
9547
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
9548
9548
|
"use strict";
|
|
9549
9549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9550
9550
|
var codegen_1 = require_codegen();
|
|
@@ -9636,9 +9636,9 @@ var require_contains = __commonJS({
|
|
|
9636
9636
|
}
|
|
9637
9637
|
});
|
|
9638
9638
|
|
|
9639
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
9639
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
9640
9640
|
var require_dependencies = __commonJS({
|
|
9641
|
-
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
9641
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
9642
9642
|
"use strict";
|
|
9643
9643
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9644
9644
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -9730,9 +9730,9 @@ var require_dependencies = __commonJS({
|
|
|
9730
9730
|
}
|
|
9731
9731
|
});
|
|
9732
9732
|
|
|
9733
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
9733
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
9734
9734
|
var require_propertyNames = __commonJS({
|
|
9735
|
-
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
9735
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
9736
9736
|
"use strict";
|
|
9737
9737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9738
9738
|
var codegen_1 = require_codegen();
|
|
@@ -9773,9 +9773,9 @@ var require_propertyNames = __commonJS({
|
|
|
9773
9773
|
}
|
|
9774
9774
|
});
|
|
9775
9775
|
|
|
9776
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
9776
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
9777
9777
|
var require_additionalProperties = __commonJS({
|
|
9778
|
-
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
9778
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
9779
9779
|
"use strict";
|
|
9780
9780
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9781
9781
|
var code_1 = require_code2();
|
|
@@ -9879,9 +9879,9 @@ var require_additionalProperties = __commonJS({
|
|
|
9879
9879
|
}
|
|
9880
9880
|
});
|
|
9881
9881
|
|
|
9882
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
9882
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
9883
9883
|
var require_properties = __commonJS({
|
|
9884
|
-
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
9884
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
9885
9885
|
"use strict";
|
|
9886
9886
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9887
9887
|
var validate_1 = require_validate();
|
|
@@ -9937,9 +9937,9 @@ var require_properties = __commonJS({
|
|
|
9937
9937
|
}
|
|
9938
9938
|
});
|
|
9939
9939
|
|
|
9940
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
9940
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
9941
9941
|
var require_patternProperties = __commonJS({
|
|
9942
|
-
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
9942
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
9943
9943
|
"use strict";
|
|
9944
9944
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9945
9945
|
var code_1 = require_code2();
|
|
@@ -10011,9 +10011,9 @@ var require_patternProperties = __commonJS({
|
|
|
10011
10011
|
}
|
|
10012
10012
|
});
|
|
10013
10013
|
|
|
10014
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
10014
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
10015
10015
|
var require_not = __commonJS({
|
|
10016
|
-
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
10016
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
10017
10017
|
"use strict";
|
|
10018
10018
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10019
10019
|
var util_1 = require_util();
|
|
@@ -10042,9 +10042,9 @@ var require_not = __commonJS({
|
|
|
10042
10042
|
}
|
|
10043
10043
|
});
|
|
10044
10044
|
|
|
10045
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
10045
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
10046
10046
|
var require_anyOf = __commonJS({
|
|
10047
|
-
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
10047
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
10048
10048
|
"use strict";
|
|
10049
10049
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10050
10050
|
var code_1 = require_code2();
|
|
@@ -10059,9 +10059,9 @@ var require_anyOf = __commonJS({
|
|
|
10059
10059
|
}
|
|
10060
10060
|
});
|
|
10061
10061
|
|
|
10062
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
10062
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
10063
10063
|
var require_oneOf = __commonJS({
|
|
10064
|
-
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
10064
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
10065
10065
|
"use strict";
|
|
10066
10066
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10067
10067
|
var codegen_1 = require_codegen();
|
|
@@ -10117,9 +10117,9 @@ var require_oneOf = __commonJS({
|
|
|
10117
10117
|
}
|
|
10118
10118
|
});
|
|
10119
10119
|
|
|
10120
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
10120
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
10121
10121
|
var require_allOf = __commonJS({
|
|
10122
|
-
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
10122
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
10123
10123
|
"use strict";
|
|
10124
10124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10125
10125
|
var util_1 = require_util();
|
|
@@ -10144,9 +10144,9 @@ var require_allOf = __commonJS({
|
|
|
10144
10144
|
}
|
|
10145
10145
|
});
|
|
10146
10146
|
|
|
10147
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
10147
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
10148
10148
|
var require_if = __commonJS({
|
|
10149
|
-
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
10149
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
10150
10150
|
"use strict";
|
|
10151
10151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10152
10152
|
var codegen_1 = require_codegen();
|
|
@@ -10213,9 +10213,9 @@ var require_if = __commonJS({
|
|
|
10213
10213
|
}
|
|
10214
10214
|
});
|
|
10215
10215
|
|
|
10216
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
10216
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
10217
10217
|
var require_thenElse = __commonJS({
|
|
10218
|
-
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
10218
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
10219
10219
|
"use strict";
|
|
10220
10220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10221
10221
|
var util_1 = require_util();
|
|
@@ -10231,9 +10231,9 @@ var require_thenElse = __commonJS({
|
|
|
10231
10231
|
}
|
|
10232
10232
|
});
|
|
10233
10233
|
|
|
10234
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
10234
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
10235
10235
|
var require_applicator = __commonJS({
|
|
10236
|
-
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
10236
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
10237
10237
|
"use strict";
|
|
10238
10238
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10239
10239
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -10279,9 +10279,9 @@ var require_applicator = __commonJS({
|
|
|
10279
10279
|
}
|
|
10280
10280
|
});
|
|
10281
10281
|
|
|
10282
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
10282
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/format/format.js
|
|
10283
10283
|
var require_format = __commonJS({
|
|
10284
|
-
"node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
10284
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
10285
10285
|
"use strict";
|
|
10286
10286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10287
10287
|
var codegen_1 = require_codegen();
|
|
@@ -10369,9 +10369,9 @@ var require_format = __commonJS({
|
|
|
10369
10369
|
}
|
|
10370
10370
|
});
|
|
10371
10371
|
|
|
10372
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
10372
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/format/index.js
|
|
10373
10373
|
var require_format2 = __commonJS({
|
|
10374
|
-
"node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
10374
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
10375
10375
|
"use strict";
|
|
10376
10376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10377
10377
|
var format_1 = require_format();
|
|
@@ -10380,9 +10380,9 @@ var require_format2 = __commonJS({
|
|
|
10380
10380
|
}
|
|
10381
10381
|
});
|
|
10382
10382
|
|
|
10383
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
10383
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/metadata.js
|
|
10384
10384
|
var require_metadata = __commonJS({
|
|
10385
|
-
"node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
10385
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
10386
10386
|
"use strict";
|
|
10387
10387
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10388
10388
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -10403,9 +10403,9 @@ var require_metadata = __commonJS({
|
|
|
10403
10403
|
}
|
|
10404
10404
|
});
|
|
10405
10405
|
|
|
10406
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
10406
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/draft7.js
|
|
10407
10407
|
var require_draft7 = __commonJS({
|
|
10408
|
-
"node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
10408
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
10409
10409
|
"use strict";
|
|
10410
10410
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10411
10411
|
var core_1 = require_core2();
|
|
@@ -10425,9 +10425,9 @@ var require_draft7 = __commonJS({
|
|
|
10425
10425
|
}
|
|
10426
10426
|
});
|
|
10427
10427
|
|
|
10428
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
10428
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
10429
10429
|
var require_types = __commonJS({
|
|
10430
|
-
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
10430
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
10431
10431
|
"use strict";
|
|
10432
10432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10433
10433
|
exports.DiscrError = void 0;
|
|
@@ -10439,9 +10439,9 @@ var require_types = __commonJS({
|
|
|
10439
10439
|
}
|
|
10440
10440
|
});
|
|
10441
10441
|
|
|
10442
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
10442
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
10443
10443
|
var require_discriminator = __commonJS({
|
|
10444
|
-
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
10444
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
10445
10445
|
"use strict";
|
|
10446
10446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10447
10447
|
var codegen_1 = require_codegen();
|
|
@@ -10544,9 +10544,9 @@ var require_discriminator = __commonJS({
|
|
|
10544
10544
|
}
|
|
10545
10545
|
});
|
|
10546
10546
|
|
|
10547
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
10547
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
10548
10548
|
var require_json_schema_draft_07 = __commonJS({
|
|
10549
|
-
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
10549
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
10550
10550
|
module.exports = {
|
|
10551
10551
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
10552
10552
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -10701,9 +10701,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
10701
10701
|
}
|
|
10702
10702
|
});
|
|
10703
10703
|
|
|
10704
|
-
// node_modules/ajv/dist/ajv.js
|
|
10704
|
+
// ../peerband-cli/node_modules/ajv/dist/ajv.js
|
|
10705
10705
|
var require_ajv = __commonJS({
|
|
10706
|
-
"node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
10706
|
+
"../peerband-cli/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
10707
10707
|
"use strict";
|
|
10708
10708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10709
10709
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -10771,9 +10771,9 @@ var require_ajv = __commonJS({
|
|
|
10771
10771
|
}
|
|
10772
10772
|
});
|
|
10773
10773
|
|
|
10774
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
10774
|
+
// ../peerband-cli/node_modules/ajv-formats/dist/limit.js
|
|
10775
10775
|
var require_limit = __commonJS({
|
|
10776
|
-
"node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
10776
|
+
"../peerband-cli/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
10777
10777
|
"use strict";
|
|
10778
10778
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10779
10779
|
exports.formatLimitDefinition = void 0;
|
|
@@ -10843,9 +10843,9 @@ var require_limit = __commonJS({
|
|
|
10843
10843
|
}
|
|
10844
10844
|
});
|
|
10845
10845
|
|
|
10846
|
-
// node_modules/ajv-formats/dist/index.js
|
|
10846
|
+
// ../peerband-cli/node_modules/ajv-formats/dist/index.js
|
|
10847
10847
|
var require_dist = __commonJS({
|
|
10848
|
-
"node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
10848
|
+
"../peerband-cli/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
10849
10849
|
"use strict";
|
|
10850
10850
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10851
10851
|
var formats_1 = require_formats();
|
|
@@ -10885,9 +10885,9 @@ var require_dist = __commonJS({
|
|
|
10885
10885
|
}
|
|
10886
10886
|
});
|
|
10887
10887
|
|
|
10888
|
-
// node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
10888
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
10889
10889
|
var require_dynamicAnchor = __commonJS({
|
|
10890
|
-
"node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js"(exports) {
|
|
10890
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js"(exports) {
|
|
10891
10891
|
"use strict";
|
|
10892
10892
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10893
10893
|
exports.dynamicAnchor = void 0;
|
|
@@ -10920,9 +10920,9 @@ var require_dynamicAnchor = __commonJS({
|
|
|
10920
10920
|
}
|
|
10921
10921
|
});
|
|
10922
10922
|
|
|
10923
|
-
// node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
10923
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
10924
10924
|
var require_dynamicRef = __commonJS({
|
|
10925
|
-
"node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js"(exports) {
|
|
10925
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js"(exports) {
|
|
10926
10926
|
"use strict";
|
|
10927
10927
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10928
10928
|
exports.dynamicRef = void 0;
|
|
@@ -10966,9 +10966,9 @@ var require_dynamicRef = __commonJS({
|
|
|
10966
10966
|
}
|
|
10967
10967
|
});
|
|
10968
10968
|
|
|
10969
|
-
// node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
10969
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
10970
10970
|
var require_recursiveAnchor = __commonJS({
|
|
10971
|
-
"node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js"(exports) {
|
|
10971
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js"(exports) {
|
|
10972
10972
|
"use strict";
|
|
10973
10973
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10974
10974
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -10987,9 +10987,9 @@ var require_recursiveAnchor = __commonJS({
|
|
|
10987
10987
|
}
|
|
10988
10988
|
});
|
|
10989
10989
|
|
|
10990
|
-
// node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
10990
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
10991
10991
|
var require_recursiveRef = __commonJS({
|
|
10992
|
-
"node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js"(exports) {
|
|
10992
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js"(exports) {
|
|
10993
10993
|
"use strict";
|
|
10994
10994
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10995
10995
|
var dynamicRef_1 = require_dynamicRef();
|
|
@@ -11002,9 +11002,9 @@ var require_recursiveRef = __commonJS({
|
|
|
11002
11002
|
}
|
|
11003
11003
|
});
|
|
11004
11004
|
|
|
11005
|
-
// node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
11005
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
11006
11006
|
var require_dynamic = __commonJS({
|
|
11007
|
-
"node_modules/ajv/dist/vocabularies/dynamic/index.js"(exports) {
|
|
11007
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/dynamic/index.js"(exports) {
|
|
11008
11008
|
"use strict";
|
|
11009
11009
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11010
11010
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -11016,9 +11016,9 @@ var require_dynamic = __commonJS({
|
|
|
11016
11016
|
}
|
|
11017
11017
|
});
|
|
11018
11018
|
|
|
11019
|
-
// node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
11019
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
11020
11020
|
var require_dependentRequired = __commonJS({
|
|
11021
|
-
"node_modules/ajv/dist/vocabularies/validation/dependentRequired.js"(exports) {
|
|
11021
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js"(exports) {
|
|
11022
11022
|
"use strict";
|
|
11023
11023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11024
11024
|
var dependencies_1 = require_dependencies();
|
|
@@ -11033,9 +11033,9 @@ var require_dependentRequired = __commonJS({
|
|
|
11033
11033
|
}
|
|
11034
11034
|
});
|
|
11035
11035
|
|
|
11036
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
11036
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
11037
11037
|
var require_dependentSchemas = __commonJS({
|
|
11038
|
-
"node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js"(exports) {
|
|
11038
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js"(exports) {
|
|
11039
11039
|
"use strict";
|
|
11040
11040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11041
11041
|
var dependencies_1 = require_dependencies();
|
|
@@ -11049,9 +11049,9 @@ var require_dependentSchemas = __commonJS({
|
|
|
11049
11049
|
}
|
|
11050
11050
|
});
|
|
11051
11051
|
|
|
11052
|
-
// node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
11052
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
11053
11053
|
var require_limitContains = __commonJS({
|
|
11054
|
-
"node_modules/ajv/dist/vocabularies/validation/limitContains.js"(exports) {
|
|
11054
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/validation/limitContains.js"(exports) {
|
|
11055
11055
|
"use strict";
|
|
11056
11056
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11057
11057
|
var util_1 = require_util();
|
|
@@ -11069,9 +11069,9 @@ var require_limitContains = __commonJS({
|
|
|
11069
11069
|
}
|
|
11070
11070
|
});
|
|
11071
11071
|
|
|
11072
|
-
// node_modules/ajv/dist/vocabularies/next.js
|
|
11072
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/next.js
|
|
11073
11073
|
var require_next = __commonJS({
|
|
11074
|
-
"node_modules/ajv/dist/vocabularies/next.js"(exports) {
|
|
11074
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/next.js"(exports) {
|
|
11075
11075
|
"use strict";
|
|
11076
11076
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11077
11077
|
var dependentRequired_1 = require_dependentRequired();
|
|
@@ -11082,9 +11082,9 @@ var require_next = __commonJS({
|
|
|
11082
11082
|
}
|
|
11083
11083
|
});
|
|
11084
11084
|
|
|
11085
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
11085
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
11086
11086
|
var require_unevaluatedProperties = __commonJS({
|
|
11087
|
-
"node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js"(exports) {
|
|
11087
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js"(exports) {
|
|
11088
11088
|
"use strict";
|
|
11089
11089
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11090
11090
|
var codegen_1 = require_codegen();
|
|
@@ -11148,9 +11148,9 @@ var require_unevaluatedProperties = __commonJS({
|
|
|
11148
11148
|
}
|
|
11149
11149
|
});
|
|
11150
11150
|
|
|
11151
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
11151
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
11152
11152
|
var require_unevaluatedItems = __commonJS({
|
|
11153
|
-
"node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js"(exports) {
|
|
11153
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js"(exports) {
|
|
11154
11154
|
"use strict";
|
|
11155
11155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11156
11156
|
var codegen_1 = require_codegen();
|
|
@@ -11192,9 +11192,9 @@ var require_unevaluatedItems = __commonJS({
|
|
|
11192
11192
|
}
|
|
11193
11193
|
});
|
|
11194
11194
|
|
|
11195
|
-
// node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
11195
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
11196
11196
|
var require_unevaluated = __commonJS({
|
|
11197
|
-
"node_modules/ajv/dist/vocabularies/unevaluated/index.js"(exports) {
|
|
11197
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/unevaluated/index.js"(exports) {
|
|
11198
11198
|
"use strict";
|
|
11199
11199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11200
11200
|
var unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -11204,9 +11204,9 @@ var require_unevaluated = __commonJS({
|
|
|
11204
11204
|
}
|
|
11205
11205
|
});
|
|
11206
11206
|
|
|
11207
|
-
// node_modules/ajv/dist/vocabularies/draft2020.js
|
|
11207
|
+
// ../peerband-cli/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
11208
11208
|
var require_draft2020 = __commonJS({
|
|
11209
|
-
"node_modules/ajv/dist/vocabularies/draft2020.js"(exports) {
|
|
11209
|
+
"../peerband-cli/node_modules/ajv/dist/vocabularies/draft2020.js"(exports) {
|
|
11210
11210
|
"use strict";
|
|
11211
11211
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11212
11212
|
var core_1 = require_core2();
|
|
@@ -11232,9 +11232,9 @@ var require_draft2020 = __commonJS({
|
|
|
11232
11232
|
}
|
|
11233
11233
|
});
|
|
11234
11234
|
|
|
11235
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
11235
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
11236
11236
|
var require_schema = __commonJS({
|
|
11237
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/schema.json"(exports, module) {
|
|
11237
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json"(exports, module) {
|
|
11238
11238
|
module.exports = {
|
|
11239
11239
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11240
11240
|
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -11292,9 +11292,9 @@ var require_schema = __commonJS({
|
|
|
11292
11292
|
}
|
|
11293
11293
|
});
|
|
11294
11294
|
|
|
11295
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
11295
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
11296
11296
|
var require_applicator2 = __commonJS({
|
|
11297
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json"(exports, module) {
|
|
11297
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json"(exports, module) {
|
|
11298
11298
|
module.exports = {
|
|
11299
11299
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11300
11300
|
$id: "https://json-schema.org/draft/2020-12/meta/applicator",
|
|
@@ -11345,9 +11345,9 @@ var require_applicator2 = __commonJS({
|
|
|
11345
11345
|
}
|
|
11346
11346
|
});
|
|
11347
11347
|
|
|
11348
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
11348
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
11349
11349
|
var require_unevaluated2 = __commonJS({
|
|
11350
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json"(exports, module) {
|
|
11350
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json"(exports, module) {
|
|
11351
11351
|
module.exports = {
|
|
11352
11352
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11353
11353
|
$id: "https://json-schema.org/draft/2020-12/meta/unevaluated",
|
|
@@ -11365,9 +11365,9 @@ var require_unevaluated2 = __commonJS({
|
|
|
11365
11365
|
}
|
|
11366
11366
|
});
|
|
11367
11367
|
|
|
11368
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
11368
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
11369
11369
|
var require_content = __commonJS({
|
|
11370
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json"(exports, module) {
|
|
11370
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json"(exports, module) {
|
|
11371
11371
|
module.exports = {
|
|
11372
11372
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11373
11373
|
$id: "https://json-schema.org/draft/2020-12/meta/content",
|
|
@@ -11386,9 +11386,9 @@ var require_content = __commonJS({
|
|
|
11386
11386
|
}
|
|
11387
11387
|
});
|
|
11388
11388
|
|
|
11389
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
11389
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
11390
11390
|
var require_core3 = __commonJS({
|
|
11391
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json"(exports, module) {
|
|
11391
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json"(exports, module) {
|
|
11392
11392
|
module.exports = {
|
|
11393
11393
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11394
11394
|
$id: "https://json-schema.org/draft/2020-12/meta/core",
|
|
@@ -11442,9 +11442,9 @@ var require_core3 = __commonJS({
|
|
|
11442
11442
|
}
|
|
11443
11443
|
});
|
|
11444
11444
|
|
|
11445
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
11445
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
11446
11446
|
var require_format_annotation = __commonJS({
|
|
11447
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json"(exports, module) {
|
|
11447
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json"(exports, module) {
|
|
11448
11448
|
module.exports = {
|
|
11449
11449
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11450
11450
|
$id: "https://json-schema.org/draft/2020-12/meta/format-annotation",
|
|
@@ -11461,9 +11461,9 @@ var require_format_annotation = __commonJS({
|
|
|
11461
11461
|
}
|
|
11462
11462
|
});
|
|
11463
11463
|
|
|
11464
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
11464
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
11465
11465
|
var require_meta_data = __commonJS({
|
|
11466
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json"(exports, module) {
|
|
11466
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json"(exports, module) {
|
|
11467
11467
|
module.exports = {
|
|
11468
11468
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11469
11469
|
$id: "https://json-schema.org/draft/2020-12/meta/meta-data",
|
|
@@ -11502,9 +11502,9 @@ var require_meta_data = __commonJS({
|
|
|
11502
11502
|
}
|
|
11503
11503
|
});
|
|
11504
11504
|
|
|
11505
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
11505
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
11506
11506
|
var require_validation3 = __commonJS({
|
|
11507
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json"(exports, module) {
|
|
11507
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json"(exports, module) {
|
|
11508
11508
|
module.exports = {
|
|
11509
11509
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
11510
11510
|
$id: "https://json-schema.org/draft/2020-12/meta/validation",
|
|
@@ -11597,9 +11597,9 @@ var require_validation3 = __commonJS({
|
|
|
11597
11597
|
}
|
|
11598
11598
|
});
|
|
11599
11599
|
|
|
11600
|
-
// node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
11600
|
+
// ../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
11601
11601
|
var require_json_schema_2020_12 = __commonJS({
|
|
11602
|
-
"node_modules/ajv/dist/refs/json-schema-2020-12/index.js"(exports) {
|
|
11602
|
+
"../peerband-cli/node_modules/ajv/dist/refs/json-schema-2020-12/index.js"(exports) {
|
|
11603
11603
|
"use strict";
|
|
11604
11604
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11605
11605
|
var metaSchema = require_schema();
|
|
@@ -11608,7 +11608,7 @@ var require_json_schema_2020_12 = __commonJS({
|
|
|
11608
11608
|
var content = require_content();
|
|
11609
11609
|
var core = require_core3();
|
|
11610
11610
|
var format = require_format_annotation();
|
|
11611
|
-
var
|
|
11611
|
+
var metadata2 = require_meta_data();
|
|
11612
11612
|
var validation = require_validation3();
|
|
11613
11613
|
var META_SUPPORT_DATA = ["/properties"];
|
|
11614
11614
|
function addMetaSchema2020($data) {
|
|
@@ -11620,7 +11620,7 @@ var require_json_schema_2020_12 = __commonJS({
|
|
|
11620
11620
|
content,
|
|
11621
11621
|
core,
|
|
11622
11622
|
with$data(this, format),
|
|
11623
|
-
|
|
11623
|
+
metadata2,
|
|
11624
11624
|
with$data(this, validation)
|
|
11625
11625
|
].forEach((sch) => this.addMetaSchema(sch, void 0, false));
|
|
11626
11626
|
return this;
|
|
@@ -11632,9 +11632,9 @@ var require_json_schema_2020_12 = __commonJS({
|
|
|
11632
11632
|
}
|
|
11633
11633
|
});
|
|
11634
11634
|
|
|
11635
|
-
// node_modules/ajv/dist/2020.js
|
|
11635
|
+
// ../peerband-cli/node_modules/ajv/dist/2020.js
|
|
11636
11636
|
var require__ = __commonJS({
|
|
11637
|
-
"node_modules/ajv/dist/2020.js"(exports, module) {
|
|
11637
|
+
"../peerband-cli/node_modules/ajv/dist/2020.js"(exports, module) {
|
|
11638
11638
|
"use strict";
|
|
11639
11639
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11640
11640
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
|
|
@@ -11709,6 +11709,65 @@ var require__ = __commonJS({
|
|
|
11709
11709
|
}
|
|
11710
11710
|
});
|
|
11711
11711
|
|
|
11712
|
+
// src/core/environment.ts
|
|
11713
|
+
var ENVIRONMENT_ACTIONS = [
|
|
11714
|
+
"workspace.create",
|
|
11715
|
+
"workspace.rename",
|
|
11716
|
+
"workspace.focus",
|
|
11717
|
+
"tab.create",
|
|
11718
|
+
"tab.rename",
|
|
11719
|
+
"tab.focus",
|
|
11720
|
+
"pane.split",
|
|
11721
|
+
"pane.rename",
|
|
11722
|
+
"pane.focus",
|
|
11723
|
+
"agent.start"
|
|
11724
|
+
];
|
|
11725
|
+
var FIELDS = {
|
|
11726
|
+
"workspace.create": ["cwd", "label"],
|
|
11727
|
+
"workspace.rename": ["workspaceId", "label"],
|
|
11728
|
+
"workspace.focus": ["workspaceId"],
|
|
11729
|
+
"tab.create": ["workspaceId", "cwd", "label"],
|
|
11730
|
+
"tab.rename": ["tabId", "label"],
|
|
11731
|
+
"tab.focus": ["tabId"],
|
|
11732
|
+
"pane.split": ["paneId", "direction", "cwd"],
|
|
11733
|
+
"pane.rename": ["paneId", "label"],
|
|
11734
|
+
"pane.focus": ["paneId"],
|
|
11735
|
+
"agent.start": ["paneId", "name", "kind"]
|
|
11736
|
+
};
|
|
11737
|
+
var REQUIRED = {
|
|
11738
|
+
"workspace.create": ["cwd"],
|
|
11739
|
+
"workspace.rename": ["workspaceId", "label"],
|
|
11740
|
+
"workspace.focus": ["workspaceId"],
|
|
11741
|
+
"tab.create": ["workspaceId", "cwd"],
|
|
11742
|
+
"tab.rename": ["tabId", "label"],
|
|
11743
|
+
"tab.focus": ["tabId"],
|
|
11744
|
+
"pane.split": ["paneId", "direction", "cwd"],
|
|
11745
|
+
"pane.rename": ["paneId", "label"],
|
|
11746
|
+
"pane.focus": ["paneId"],
|
|
11747
|
+
"agent.start": ["paneId", "name", "kind"]
|
|
11748
|
+
};
|
|
11749
|
+
var KINDS = new Set("pi claude codex gemini cursor devin agy cline omp mastracode opencode copilot kimi kiro droid amp grok hermes kilo qodercli qwen letta maki muse".split(" "));
|
|
11750
|
+
function invalid(message) {
|
|
11751
|
+
throw new ConnectError("invalid_argument", message, "Use an action and explicit IDs from list_environment; no shell commands or native agent arguments are accepted.");
|
|
11752
|
+
}
|
|
11753
|
+
function environmentCommand(args) {
|
|
11754
|
+
const action = args.action;
|
|
11755
|
+
if (!ENVIRONMENT_ACTIONS.includes(action)) invalid("Unsupported environment action.");
|
|
11756
|
+
for (const key of Object.keys(args)) {
|
|
11757
|
+
if (key !== "action" && !FIELDS[action].includes(key)) invalid(`Unexpected argument: ${key}.`);
|
|
11758
|
+
const value = args[key];
|
|
11759
|
+
const max = key === "cwd" ? 2048 : key === "label" ? 128 : 256;
|
|
11760
|
+
if (typeof value !== "string" || !value.trim() || value.length > max || /[\u0000-\u001f\u007f-\u009f]/.test(value)) invalid(`Invalid ${key}.`);
|
|
11761
|
+
if (key.endsWith("Id") && !/^[A-Za-z0-9][A-Za-z0-9:_-]{0,255}$/.test(value)) invalid(`Invalid ${key}.`);
|
|
11762
|
+
}
|
|
11763
|
+
for (const key of REQUIRED[action]) if (args[key] === void 0) invalid(`${key} is required.`);
|
|
11764
|
+
if (args.cwd !== void 0 && !/^(?:\/|[A-Za-z]:[\\/]|\\\\)/.test(args.cwd)) invalid("cwd must be an absolute path on the remote machine.");
|
|
11765
|
+
if (args.direction !== void 0 && !["right", "down", "left", "up"].includes(args.direction)) invalid("Invalid split direction.");
|
|
11766
|
+
if (args.name !== void 0 && !/^[a-z][a-z0-9_-]{0,31}$/.test(args.name)) invalid("Invalid agent name.");
|
|
11767
|
+
if (args.kind !== void 0 && !KINDS.has(args.kind)) invalid("Unsupported agent kind.");
|
|
11768
|
+
return Object.fromEntries(["action", ...FIELDS[action]].filter((key) => args[key] !== void 0).map((key) => [key, args[key]]));
|
|
11769
|
+
}
|
|
11770
|
+
|
|
11712
11771
|
// src/core/core.ts
|
|
11713
11772
|
import { createHash, randomUUID } from "node:crypto";
|
|
11714
11773
|
import { mkdir, readFile, rename, rm, rmdir, unlink, writeFile } from "node:fs/promises";
|
|
@@ -11902,6 +11961,7 @@ var ConnectorCore = class {
|
|
|
11902
11961
|
constructor(adapter, options = {}) {
|
|
11903
11962
|
this.adapter = adapter;
|
|
11904
11963
|
this.writesEnabled = options.writesEnabled ?? false;
|
|
11964
|
+
this.environmentControlEnabled = options.environmentControlEnabled ?? false;
|
|
11905
11965
|
this.labelMessages = options.labelMessages ?? false;
|
|
11906
11966
|
this.allowedAgents = options.allowedAgents ? new Set(options.allowedAgents) : void 0;
|
|
11907
11967
|
this.allowedWorkspaces = options.allowedWorkspaces ? new Set(options.allowedWorkspaces) : void 0;
|
|
@@ -11919,6 +11979,7 @@ var ConnectorCore = class {
|
|
|
11919
11979
|
receipts = /* @__PURE__ */ new Map();
|
|
11920
11980
|
idempotency = /* @__PURE__ */ new Map();
|
|
11921
11981
|
writesEnabled;
|
|
11982
|
+
environmentControlEnabled;
|
|
11922
11983
|
labelMessages;
|
|
11923
11984
|
allowedAgents;
|
|
11924
11985
|
allowedWorkspaces;
|
|
@@ -11949,6 +12010,12 @@ var ConnectorCore = class {
|
|
|
11949
12010
|
this.validatePrincipal(principal);
|
|
11950
12011
|
if (!isRecord(args)) throw new ConnectError("invalid_argument", "Tool arguments must be an object.", "Check the tool input and try again.");
|
|
11951
12012
|
switch (tool) {
|
|
12013
|
+
case "list_environment":
|
|
12014
|
+
assertKeys(args, []);
|
|
12015
|
+
this.authorizeEnvironment(principal);
|
|
12016
|
+
return await this.adapter.listEnvironment();
|
|
12017
|
+
case "control_environment":
|
|
12018
|
+
return await this.controlEnvironment(args, principal);
|
|
11952
12019
|
case "list_agents":
|
|
11953
12020
|
return await this.listAgents(args, principal);
|
|
11954
12021
|
case "get_agent_status":
|
|
@@ -12103,6 +12170,71 @@ var ConnectorCore = class {
|
|
|
12103
12170
|
return this.publicReceipt(receipt);
|
|
12104
12171
|
});
|
|
12105
12172
|
}
|
|
12173
|
+
authorizeEnvironment(principal) {
|
|
12174
|
+
this.requireScope(principal, "environment:control");
|
|
12175
|
+
if (principal.role !== "owner") throw new ConnectError("forbidden", "Environment controls are owner-only.", "Use the account that owns this machine.");
|
|
12176
|
+
if (!this.environmentControlEnabled || !this.writesEnabled) throw new ConnectError("write_disabled", "Environment control is disabled on this machine.", 'Set "enableEnvironmentControl": true in connector.json and restart the relay without --read-only.');
|
|
12177
|
+
if (this.allowedAgents || this.allowedWorkspaces) throw new ConnectError("forbidden", "Environment control is unavailable with agent or workspace allowlists.", "Use a dedicated unrestricted connector after reviewing its environment-control permission.");
|
|
12178
|
+
if (!this.adapter.listEnvironment || !this.adapter.controlEnvironment) throw new ConnectError("unsupported_capability", "This runtime does not support environment control.", "Use a compatible Herdr runtime.");
|
|
12179
|
+
}
|
|
12180
|
+
async controlEnvironment(args, principal) {
|
|
12181
|
+
this.authorizeEnvironment(principal);
|
|
12182
|
+
const { idempotencyKey: key, ...input } = args;
|
|
12183
|
+
const command = environmentCommand(input);
|
|
12184
|
+
if (typeof key !== "string" || key.length < 16 || key.length > 256) throw new ConnectError("invalid_argument", "idempotencyKey must be 16 to 256 characters.", "Provide a random key and reuse it only for the same operation.");
|
|
12185
|
+
const principalHash = hash(principal.id);
|
|
12186
|
+
const payloadHash = hash(canonical(command));
|
|
12187
|
+
const requestKeyHash = hash(canonical([principalHash, "control_environment", key]));
|
|
12188
|
+
return this.withSubmissionLock(requestKeyHash, async () => {
|
|
12189
|
+
const prior = this.idempotency.get(requestKeyHash);
|
|
12190
|
+
if (prior) {
|
|
12191
|
+
if (prior.payloadHash !== payloadHash) throw new ConnectError("idempotency_conflict", "This key was used for a different operation.", "Use a new key for a new operation.");
|
|
12192
|
+
return this.publicReceipt(prior);
|
|
12193
|
+
}
|
|
12194
|
+
this.pruneReceipts();
|
|
12195
|
+
if (this.receipts.size >= MAX_RECEIPTS) throw new ConnectError("receipt_limit", "The receipt store is full.", "Wait for old receipts to expire.");
|
|
12196
|
+
const now = Date.now();
|
|
12197
|
+
const receipt = {
|
|
12198
|
+
requestId: randomUUID(),
|
|
12199
|
+
principalHash,
|
|
12200
|
+
machineId: "local-environment",
|
|
12201
|
+
targetId: command.paneId ?? command.tabId ?? command.workspaceId ?? "new-workspace",
|
|
12202
|
+
workspace: "",
|
|
12203
|
+
tool: "control_environment",
|
|
12204
|
+
idempotencyHash: requestKeyHash,
|
|
12205
|
+
requestKeyHash,
|
|
12206
|
+
payloadHash,
|
|
12207
|
+
state: "queued",
|
|
12208
|
+
createdAt: now,
|
|
12209
|
+
updatedAt: now
|
|
12210
|
+
};
|
|
12211
|
+
this.receipts.set(receipt.requestId, receipt);
|
|
12212
|
+
this.idempotency.set(requestKeyHash, receipt);
|
|
12213
|
+
try {
|
|
12214
|
+
await this.persist();
|
|
12215
|
+
} catch {
|
|
12216
|
+
this.receipts.delete(receipt.requestId);
|
|
12217
|
+
this.idempotency.delete(requestKeyHash);
|
|
12218
|
+
throw new ConnectError("receipt_store_unavailable", "Could not save the receipt; nothing was dispatched.", "Check local storage access.");
|
|
12219
|
+
}
|
|
12220
|
+
const job = (async () => {
|
|
12221
|
+
receipt.state = "dispatching";
|
|
12222
|
+
try {
|
|
12223
|
+
await this.persist();
|
|
12224
|
+
receipt.result = await this.adapter.controlEnvironment(command);
|
|
12225
|
+
receipt.state = "delivered";
|
|
12226
|
+
} catch (error) {
|
|
12227
|
+
receipt.state = "delivery_unknown";
|
|
12228
|
+
receipt.errorCode = error instanceof ConnectError && SAFE_RECEIPT_ERRORS.has(error.code) ? error.code : "runtime_unavailable";
|
|
12229
|
+
}
|
|
12230
|
+
receipt.updatedAt = Date.now();
|
|
12231
|
+
await this.persist();
|
|
12232
|
+
})().catch(() => void 0);
|
|
12233
|
+
this.inFlight.add(job);
|
|
12234
|
+
void job.finally(() => this.inFlight.delete(job));
|
|
12235
|
+
return this.publicReceipt(receipt);
|
|
12236
|
+
});
|
|
12237
|
+
}
|
|
12106
12238
|
async withSubmissionLock(key, action) {
|
|
12107
12239
|
const previous = this.submissionLocks.get(key) ?? Promise.resolve();
|
|
12108
12240
|
let release;
|
|
@@ -12139,15 +12271,17 @@ var ConnectorCore = class {
|
|
|
12139
12271
|
}
|
|
12140
12272
|
async getRequestStatus(args, principal) {
|
|
12141
12273
|
assertKeys(args, ["requestId"]);
|
|
12142
|
-
this.requireScope(principal, "agents:read");
|
|
12274
|
+
if (!principal.scopes.includes("environment:control")) this.requireScope(principal, "agents:read");
|
|
12143
12275
|
if (typeof args.requestId !== "string" || args.requestId.length > 256) throw new ConnectError("invalid_argument", "requestId is required.", "Use the request ID returned by send_agent_message.");
|
|
12144
12276
|
this.pruneReceipts();
|
|
12145
12277
|
const receipt = this.receipts.get(args.requestId);
|
|
12146
12278
|
if (!receipt || receipt.principalHash !== hash(principal.id)) throw new ConnectError("request_not_found", "No request receipt is available for this caller.", "Check the request ID or submit a new authorized request.");
|
|
12279
|
+
if (receipt.tool === "control_environment") this.authorizeEnvironment(principal);
|
|
12280
|
+
else this.requireScope(principal, "agents:read");
|
|
12147
12281
|
return this.publicReceipt(receipt);
|
|
12148
12282
|
}
|
|
12149
12283
|
publicReceipt(receipt) {
|
|
12150
|
-
return { requestId: receipt.requestId, state: receipt.state, createdAt: new Date(receipt.createdAt).toISOString(), updatedAt: new Date(receipt.updatedAt).toISOString(), ...receipt.errorCode ? { errorCode: receipt.errorCode } : {} };
|
|
12284
|
+
return { ...receipt.result ? { result: receipt.result } : {}, requestId: receipt.requestId, state: receipt.state, createdAt: new Date(receipt.createdAt).toISOString(), updatedAt: new Date(receipt.updatedAt).toISOString(), ...receipt.errorCode ? { errorCode: receipt.errorCode } : {} };
|
|
12151
12285
|
}
|
|
12152
12286
|
pruneReceipts() {
|
|
12153
12287
|
const cutoff = Date.now() - this.retentionMs;
|
|
@@ -12268,9 +12402,9 @@ var ConnectorCore = class {
|
|
|
12268
12402
|
}
|
|
12269
12403
|
isValidReceipt(value) {
|
|
12270
12404
|
if (!isRecord(value)) return false;
|
|
12271
|
-
const receiptKeys = ["requestId", "principalHash", "machineId", "targetId", "workspace", "tool", "idempotencyHash", "requestKeyHash", "payloadHash", "state", "createdAt", "updatedAt", "errorCode"];
|
|
12405
|
+
const receiptKeys = ["requestId", "principalHash", "machineId", "targetId", "workspace", "tool", "idempotencyHash", "requestKeyHash", "payloadHash", "state", "createdAt", "updatedAt", "errorCode", "result"];
|
|
12272
12406
|
if (Object.keys(value).some((key) => !receiptKeys.includes(key))) return false;
|
|
12273
|
-
return typeof value.requestId === "string" && value.requestId.length > 0 && value.requestId.length <= 256 && typeof value.principalHash === "string" && HASH_PATTERN.test(value.principalHash) && typeof value.machineId === "string" && value.machineId.length > 0 && value.machineId.length <= 512 && typeof value.targetId === "string" && value.targetId.length > 0 && value.targetId.length <= 256 && typeof value.workspace === "string" && value.workspace.length <= 2048 && value.tool === "send_agent_message" && typeof value.idempotencyHash === "string" && HASH_PATTERN.test(value.idempotencyHash) && typeof value.requestKeyHash === "string" && HASH_PATTERN.test(value.requestKeyHash) && typeof value.payloadHash === "string" && HASH_PATTERN.test(value.payloadHash) && typeof value.state === "string" && RECEIPT_STATES.includes(value.state) && Number.isSafeInteger(value.createdAt) && Number.isSafeInteger(value.updatedAt) && value.updatedAt >= value.createdAt && (value.errorCode === void 0 || typeof value.errorCode === "string" && SAFE_RECEIPT_ERRORS.has(value.errorCode));
|
|
12407
|
+
return typeof value.requestId === "string" && value.requestId.length > 0 && value.requestId.length <= 256 && typeof value.principalHash === "string" && HASH_PATTERN.test(value.principalHash) && typeof value.machineId === "string" && value.machineId.length > 0 && value.machineId.length <= 512 && typeof value.targetId === "string" && value.targetId.length > 0 && value.targetId.length <= 256 && typeof value.workspace === "string" && value.workspace.length <= 2048 && (value.tool === "send_agent_message" || value.tool === "control_environment") && (value.result === void 0 || isRecord(value.result) && JSON.stringify(value.result).length <= 16384) && typeof value.idempotencyHash === "string" && HASH_PATTERN.test(value.idempotencyHash) && typeof value.requestKeyHash === "string" && HASH_PATTERN.test(value.requestKeyHash) && typeof value.payloadHash === "string" && HASH_PATTERN.test(value.payloadHash) && typeof value.state === "string" && RECEIPT_STATES.includes(value.state) && Number.isSafeInteger(value.createdAt) && Number.isSafeInteger(value.updatedAt) && value.updatedAt >= value.createdAt && (value.errorCode === void 0 || typeof value.errorCode === "string" && SAFE_RECEIPT_ERRORS.has(value.errorCode));
|
|
12274
12408
|
}
|
|
12275
12409
|
persist() {
|
|
12276
12410
|
if (!this.receiptPath) return Promise.resolve();
|
|
@@ -12430,7 +12564,7 @@ function stringList(record, key, where) {
|
|
|
12430
12564
|
}
|
|
12431
12565
|
function parseConnectorConfig(value, source = "connector config") {
|
|
12432
12566
|
if (!isRecord2(value)) throw new ConfigError(`${source}: expected a JSON object.`);
|
|
12433
|
-
rejectUnknown(value, ["allowedAgents", "allowedWorkspaces", "stateDirectory", "herdr", "enableWrites"], source);
|
|
12567
|
+
rejectUnknown(value, ["allowedAgents", "allowedWorkspaces", "stateDirectory", "herdr", "enableWrites", "enableEnvironmentControl"], source);
|
|
12434
12568
|
const config = {};
|
|
12435
12569
|
const agents = stringList(value, "allowedAgents", source);
|
|
12436
12570
|
if (agents) config.allowedAgents = agents;
|
|
@@ -12442,6 +12576,10 @@ function parseConnectorConfig(value, source = "connector config") {
|
|
|
12442
12576
|
if (typeof value.enableWrites !== "boolean") throw new ConfigError(`${source}.enableWrites must be true or false.`);
|
|
12443
12577
|
config.enableWrites = value.enableWrites;
|
|
12444
12578
|
}
|
|
12579
|
+
if (value.enableEnvironmentControl !== void 0) {
|
|
12580
|
+
if (typeof value.enableEnvironmentControl !== "boolean") throw new ConfigError(`${source}.enableEnvironmentControl must be a boolean.`);
|
|
12581
|
+
config.enableEnvironmentControl = value.enableEnvironmentControl;
|
|
12582
|
+
}
|
|
12445
12583
|
if (value.herdr !== void 0) {
|
|
12446
12584
|
const raw = value.herdr;
|
|
12447
12585
|
if (!isRecord2(raw)) throw new ConfigError(`${source}.herdr must be an object.`);
|
|
@@ -12481,7 +12619,7 @@ async function loadConnectorConfig(path, options = {}) {
|
|
|
12481
12619
|
// src/core/relay-client.ts
|
|
12482
12620
|
import { isIP } from "node:net";
|
|
12483
12621
|
|
|
12484
|
-
// node_modules/ws/wrapper.mjs
|
|
12622
|
+
// ../peerband-cli/node_modules/ws/wrapper.mjs
|
|
12485
12623
|
var import_stream = __toESM(require_stream(), 1);
|
|
12486
12624
|
var import_extension = __toESM(require_extension(), 1);
|
|
12487
12625
|
var import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
|
|
@@ -12589,7 +12727,7 @@ async function runRemoteClient(core, credentials, options = {}) {
|
|
|
12589
12727
|
const socket = new wrapper_default(serverUrl, {
|
|
12590
12728
|
headers: {
|
|
12591
12729
|
Authorization: `Bearer ${credentials.credential}`,
|
|
12592
|
-
|
|
12730
|
+
"x-peerband-features": options.events ? "events,environment-control" : "environment-control"
|
|
12593
12731
|
},
|
|
12594
12732
|
maxPayload: MAX_FRAME,
|
|
12595
12733
|
handshakeTimeout: 1e4,
|
|
@@ -12686,7 +12824,7 @@ async function runRemoteClient(core, credentials, options = {}) {
|
|
|
12686
12824
|
return;
|
|
12687
12825
|
}
|
|
12688
12826
|
const pending = {
|
|
12689
|
-
write: request.tool === "send_agent_message",
|
|
12827
|
+
write: request.tool === "send_agent_message" || request.tool === "control_environment",
|
|
12690
12828
|
socket,
|
|
12691
12829
|
startedAt: Date.now(),
|
|
12692
12830
|
tool: request.tool,
|
|
@@ -14143,6 +14281,51 @@ var CONNECTOR_PATTERN2 = CONNECTOR_PATTERN;
|
|
|
14143
14281
|
// src/cli/commands/connect.ts
|
|
14144
14282
|
import { resolve as resolve3 } from "node:path";
|
|
14145
14283
|
|
|
14284
|
+
// src/runtime-herdr/environment.ts
|
|
14285
|
+
var FIELDS2 = ["workspace_id", "tab_id", "pane_id", "name", "label", "cwd", "agent", "agent_status", "type"];
|
|
14286
|
+
function metadata(value) {
|
|
14287
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return {};
|
|
14288
|
+
const row = value;
|
|
14289
|
+
const result = Object.fromEntries(FIELDS2.filter((key) => typeof row[key] === "string").map((key) => [key.replace(/_([a-z])/g, (_, c) => c.toUpperCase()), sanitizeOutput(row[key], { bytes: key === "cwd" ? 2048 : 256, lines: 1 }).text]));
|
|
14290
|
+
for (const key of ["number", "pane_count", "tab_count"]) if (Number.isSafeInteger(row[key]) && row[key] >= 0) result[key.replace(/_([a-z])/g, (_, c) => c.toUpperCase())] = row[key];
|
|
14291
|
+
if (typeof row.focused === "boolean") result.focused = row.focused;
|
|
14292
|
+
return result;
|
|
14293
|
+
}
|
|
14294
|
+
function environmentMetadata(value) {
|
|
14295
|
+
const row = value && typeof value === "object" ? value : {};
|
|
14296
|
+
const result = metadata(row);
|
|
14297
|
+
for (const key of ["workspace", "tab", "pane", "root_pane", "agent"]) {
|
|
14298
|
+
if (row[key] && typeof row[key] === "object") result[key.replace(/_([a-z])/g, (_, c) => c.toUpperCase())] = metadata(row[key]);
|
|
14299
|
+
}
|
|
14300
|
+
return result;
|
|
14301
|
+
}
|
|
14302
|
+
async function listEnvironment(client) {
|
|
14303
|
+
const result = {};
|
|
14304
|
+
for (const [method, key] of [["workspace.list", "workspaces"], ["tab.list", "tabs"], ["pane.list", "panes"]]) {
|
|
14305
|
+
const response = await client.request(method, {});
|
|
14306
|
+
if (!Array.isArray(response[key])) throw new ConnectError("schema_mismatch", `Unexpected ${method} response.`, "Check the installed Herdr schema.");
|
|
14307
|
+
result[key] = response[key].slice(0, 50).map(metadata);
|
|
14308
|
+
result[`${key}Truncated`] = response[key].length > 50;
|
|
14309
|
+
}
|
|
14310
|
+
if (Buffer.byteLength(JSON.stringify(result), "utf8") > 48 * 1024) throw new ConnectError("response_too_large", "The environment metadata exceeds the frame budget.", "Reduce the session layout before listing it remotely.");
|
|
14311
|
+
return result;
|
|
14312
|
+
}
|
|
14313
|
+
function environmentParams(input) {
|
|
14314
|
+
const command = environmentCommand(input);
|
|
14315
|
+
const params = {};
|
|
14316
|
+
for (const [key, value] of Object.entries(command)) {
|
|
14317
|
+
if (key === "action") continue;
|
|
14318
|
+
params[key.replace(/[A-Z]/g, (c) => `_${c.toLowerCase()}`)] = value;
|
|
14319
|
+
}
|
|
14320
|
+
if (["workspace.create", "tab.create", "pane.split"].includes(command.action)) params.focus = false;
|
|
14321
|
+
if (command.action === "pane.split") {
|
|
14322
|
+
params.target_pane_id = params.pane_id;
|
|
14323
|
+
delete params.pane_id;
|
|
14324
|
+
}
|
|
14325
|
+
if (command.action === "agent.start") params.timeout_ms = 8e3;
|
|
14326
|
+
return params;
|
|
14327
|
+
}
|
|
14328
|
+
|
|
14146
14329
|
// src/runtime-herdr/adapter.ts
|
|
14147
14330
|
import { createHash as createHash4, randomUUID as randomUUID7 } from "node:crypto";
|
|
14148
14331
|
import { readFile as readFile7, stat as stat3 } from "node:fs/promises";
|
|
@@ -14241,7 +14424,17 @@ function isRecord3(value) {
|
|
|
14241
14424
|
}
|
|
14242
14425
|
|
|
14243
14426
|
// src/runtime-herdr/events.ts
|
|
14244
|
-
var LIST_SUBSCRIPTIONS = [
|
|
14427
|
+
var LIST_SUBSCRIPTIONS = [
|
|
14428
|
+
"pane.created",
|
|
14429
|
+
"pane.closed",
|
|
14430
|
+
"pane.exited",
|
|
14431
|
+
"pane.agent_detected",
|
|
14432
|
+
"pane.moved",
|
|
14433
|
+
"tab.renamed",
|
|
14434
|
+
"tab.moved",
|
|
14435
|
+
"workspace.renamed",
|
|
14436
|
+
"workspace.reordered"
|
|
14437
|
+
];
|
|
14245
14438
|
var UNSUPPORTED = /* @__PURE__ */ new Set(["invalid_request", "unknown_method", "method_not_found", "unsupported_capability", "schema_mismatch"]);
|
|
14246
14439
|
var normalizeName = (name) => name.replaceAll(".", "_");
|
|
14247
14440
|
var HerdrEventBridge = class {
|
|
@@ -14750,7 +14943,8 @@ var HerdrAdapter = class {
|
|
|
14750
14943
|
}
|
|
14751
14944
|
async refreshAgents() {
|
|
14752
14945
|
const { client } = await this.initialize();
|
|
14753
|
-
const
|
|
14946
|
+
const [listed, layout] = await Promise.all([client.request("agent.list", {}), readLayout(client)]);
|
|
14947
|
+
const result = asObject(listed);
|
|
14754
14948
|
if (result.type !== "agent_list" || !Array.isArray(result.agents)) throw this.schemaMismatch("agent.list returned an unexpected result type");
|
|
14755
14949
|
const marker = this.socketPath ? await readEndpointMarker(this.socketPath) : void 0;
|
|
14756
14950
|
const reconnected = marker !== void 0 && this.endpointMarker !== void 0 && marker !== this.endpointMarker;
|
|
@@ -14769,14 +14963,18 @@ var HerdrAdapter = class {
|
|
|
14769
14963
|
const live = { id, fingerprint, agent: raw };
|
|
14770
14964
|
next.set(raw.pane_id, live);
|
|
14771
14965
|
nextIds.add(id);
|
|
14772
|
-
records.push(toRecord(live, this.machineId, promptTarget(raw, rawAgents) !== void 0));
|
|
14966
|
+
records.push(toRecord(live, this.machineId, promptTarget(raw, rawAgents) !== void 0, layout));
|
|
14773
14967
|
}
|
|
14774
14968
|
for (const previous of previousTargets) if (!nextIds.has(previous.id)) this.retired.add(previous.id);
|
|
14775
14969
|
const idsChanged = this.listed && (nextIds.size !== previousTargets.length || previousTargets.some((item) => !nextIds.has(item.id)));
|
|
14970
|
+
const layoutChanged = this.listed && records.some((record) => {
|
|
14971
|
+
const before = this.records.get(record.id);
|
|
14972
|
+
return before !== void 0 && JSON.stringify(before.location) !== JSON.stringify(record.location);
|
|
14973
|
+
});
|
|
14776
14974
|
this.current = next;
|
|
14777
14975
|
this.records = new Map(records.map((record) => [record.id, record]));
|
|
14778
14976
|
this.listed = true;
|
|
14779
|
-
this.bridge?.agentsRefreshed(idsChanged);
|
|
14977
|
+
this.bridge?.agentsRefreshed(idsChanged || layoutChanged);
|
|
14780
14978
|
return records;
|
|
14781
14979
|
}
|
|
14782
14980
|
/** Status and list-change events from Herdr's events.subscribe (metadata only, never pane text). */
|
|
@@ -14859,6 +15057,21 @@ var HerdrAdapter = class {
|
|
|
14859
15057
|
const result = asObject(await client.request("agent.prompt", { target, text: message }));
|
|
14860
15058
|
if (result.type !== "agent_prompted") throw this.schemaMismatch("agent.prompt returned an unexpected result type");
|
|
14861
15059
|
}
|
|
15060
|
+
async listEnvironment() {
|
|
15061
|
+
const { client } = await this.initialize();
|
|
15062
|
+
return listEnvironment(client);
|
|
15063
|
+
}
|
|
15064
|
+
async controlEnvironment(command) {
|
|
15065
|
+
const params = environmentParams(command);
|
|
15066
|
+
const { schema, client } = await this.initialize();
|
|
15067
|
+
const request = { id: randomUUID7(), method: command.action, params };
|
|
15068
|
+
if (!schema.validateRequest(request)) throw new ConnectError("unsupported_capability", "The installed Herdr API does not support this environment action.", "Update Herdr and use its matching schema.");
|
|
15069
|
+
const result = asObject(await client.request(command.action, params));
|
|
15070
|
+
const expected = command.action === "workspace.create" ? "workspace_created" : command.action === "tab.create" ? "tab_created" : command.action === "agent.start" ? "agent_started" : void 0;
|
|
15071
|
+
if (expected && result.type !== expected) throw this.schemaMismatch(`${command.action} returned an unexpected result type`);
|
|
15072
|
+
if (!expected && !["workspace_info", "tab_info", "pane_info", "ok"].includes(result.type)) throw this.schemaMismatch(`${command.action} returned an unexpected result type`);
|
|
15073
|
+
return environmentMetadata(result);
|
|
15074
|
+
}
|
|
14862
15075
|
async close() {
|
|
14863
15076
|
await this.bridge?.stop();
|
|
14864
15077
|
const pending = await this.ready?.catch(() => void 0);
|
|
@@ -14897,7 +15110,43 @@ var HerdrAdapter = class {
|
|
|
14897
15110
|
return new ConnectError("schema_mismatch", `Herdr response did not match the selected API schema: ${message}`, "Use the API schema shipped with the connected Herdr version.");
|
|
14898
15111
|
}
|
|
14899
15112
|
};
|
|
14900
|
-
function
|
|
15113
|
+
async function readLayout(client) {
|
|
15114
|
+
const [spaces, tabs] = await Promise.all([
|
|
15115
|
+
client.request("workspace.list", {}).then((result) => layoutEntries(result, "workspace_list", "workspaces", "workspace_id"), () => /* @__PURE__ */ new Map()),
|
|
15116
|
+
client.request("tab.list", {}).then((result) => layoutEntries(result, "tab_list", "tabs", "tab_id"), () => /* @__PURE__ */ new Map())
|
|
15117
|
+
]);
|
|
15118
|
+
return { spaces, tabs };
|
|
15119
|
+
}
|
|
15120
|
+
function layoutEntries(result, type, key, idKey) {
|
|
15121
|
+
const entries = /* @__PURE__ */ new Map();
|
|
15122
|
+
if (!result || typeof result !== "object") return entries;
|
|
15123
|
+
const value = result;
|
|
15124
|
+
if (value.type !== type || !Array.isArray(value[key])) return entries;
|
|
15125
|
+
for (const item of value[key]) {
|
|
15126
|
+
if (!item || typeof item !== "object") continue;
|
|
15127
|
+
const row = item;
|
|
15128
|
+
if (typeof row[idKey] !== "string") continue;
|
|
15129
|
+
entries.set(row[idKey], {
|
|
15130
|
+
label: layoutLabel(row.label),
|
|
15131
|
+
number: Number.isSafeInteger(row.number) && row.number >= 0 ? row.number : null
|
|
15132
|
+
});
|
|
15133
|
+
}
|
|
15134
|
+
return entries;
|
|
15135
|
+
}
|
|
15136
|
+
function layoutLabel(value) {
|
|
15137
|
+
if (typeof value !== "string") return null;
|
|
15138
|
+
const label = value.replace(/[\u0000-\u001f\u007f-\u009f]/g, " ").trim().slice(0, 128);
|
|
15139
|
+
return label || null;
|
|
15140
|
+
}
|
|
15141
|
+
function toLocation(agent, layout) {
|
|
15142
|
+
const space = layout.spaces.get(agent.workspace_id);
|
|
15143
|
+
const tab = layout.tabs.get(agent.tab_id);
|
|
15144
|
+
return {
|
|
15145
|
+
space: { id: agent.workspace_id, label: space?.label ?? null, number: space?.number ?? null },
|
|
15146
|
+
tab: { id: agent.tab_id, label: tab?.label ?? null, number: tab?.number ?? null }
|
|
15147
|
+
};
|
|
15148
|
+
}
|
|
15149
|
+
function toRecord(live, machineId, canSend, layout) {
|
|
14901
15150
|
const agent = live.agent;
|
|
14902
15151
|
const label = agent.display_agent ?? agent.name ?? agent.agent ?? agent.terminal_title_stripped ?? agent.title ?? "Herdr agent";
|
|
14903
15152
|
const status = ["idle", "working", "blocked", "done", "unknown"].includes(agent.agent_status) ? agent.agent_status : "unknown";
|
|
@@ -14912,7 +15161,8 @@ function toRecord(live, machineId, canSend) {
|
|
|
14912
15161
|
rawStatus: agent.agent_status,
|
|
14913
15162
|
observedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
14914
15163
|
stale: false,
|
|
14915
|
-
capabilities: { readOutput: true, sendMessage: canSend, ...canSend ? {} : { reason: "A unique valid live name or pane target is required for prompt targeting." } }
|
|
15164
|
+
capabilities: { readOutput: true, sendMessage: canSend, ...canSend ? {} : { reason: "A unique valid live name or pane target is required for prompt targeting." } },
|
|
15165
|
+
location: toLocation(agent, layout)
|
|
14916
15166
|
};
|
|
14917
15167
|
}
|
|
14918
15168
|
function isValidAlias(value) {
|
|
@@ -15008,6 +15258,7 @@ var spec2 = {
|
|
|
15008
15258
|
description: 'Connects this machine to PeerBand and serves agent requests from your MCP clients until you press Ctrl+C. MCP clients may send messages to agents by default, but only after you approve the agents:message consent when you connect them; pass --read-only (or set "enableWrites": false in connector.json) to make this machine read-only. Activity lines show metadata only (tool, target, outcome, latency), never message or output content. Most people use `peerband relay` instead, which runs the connector inside Herdr.',
|
|
15009
15259
|
options: [
|
|
15010
15260
|
{ name: "runtime", type: "string", valueName: "herdr|mock", description: 'Agent runtime. Default: $PEERBAND_RUNTIME or herdr. "mock" serves fake agents for testing.' },
|
|
15261
|
+
{ name: "enable-environment-control", type: "boolean", description: "Allow owner-only Herdr environment tools with separate environment:control consent. Off by default; also enableEnvironmentControl in connector.json." },
|
|
15011
15262
|
{ name: "read-only", type: "boolean", description: 'Do not allow MCP clients to send messages to agents on this machine (also: "enableWrites": false in connector.json).' },
|
|
15012
15263
|
{ name: "enable-writes", type: "boolean", description: "Redundant: sending messages is allowed by default. Kept so old scripts keep working." },
|
|
15013
15264
|
{ name: "config", type: "string", valueName: "PATH", description: "Connector config file. Default: $PEERBAND_CONNECTOR_CONFIG or connector.json in the config directory (optional)." },
|
|
@@ -15025,6 +15276,7 @@ var spec2 = {
|
|
|
15025
15276
|
runtime: str(parsed, "runtime"),
|
|
15026
15277
|
enableWrites: flag(parsed, "enable-writes"),
|
|
15027
15278
|
readOnly: flag(parsed, "read-only"),
|
|
15279
|
+
enableEnvironmentControl: flag(parsed, "enable-environment-control"),
|
|
15028
15280
|
config: str(parsed, "config"),
|
|
15029
15281
|
server: str(parsed, "server"),
|
|
15030
15282
|
managed: flag(parsed, "managed")
|
|
@@ -15067,6 +15319,7 @@ async function connect(options, ctx) {
|
|
|
15067
15319
|
const adapter = runtime === "mock" ? new MockRuntime() : new HerdrAdapter(config.herdr ?? {});
|
|
15068
15320
|
const core = new ConnectorCore(adapter, {
|
|
15069
15321
|
writesEnabled: enableWrites,
|
|
15322
|
+
environmentControlEnabled: options.enableEnvironmentControl || config.enableEnvironmentControl,
|
|
15070
15323
|
labelMessages: true,
|
|
15071
15324
|
allowedAgents: config.allowedAgents,
|
|
15072
15325
|
allowedWorkspaces: config.allowedWorkspaces,
|
|
@@ -16853,7 +17106,7 @@ function herdrGroupHelp(s) {
|
|
|
16853
17106
|
}
|
|
16854
17107
|
|
|
16855
17108
|
// src/cli/cli.ts
|
|
16856
|
-
var VERSION = true ? "0.2.
|
|
17109
|
+
var VERSION = true ? "0.2.3" : "0.0.0-dev";
|
|
16857
17110
|
function createContext(overrides = {}) {
|
|
16858
17111
|
const env = overrides.env ?? process.env;
|
|
16859
17112
|
const stdout = overrides.stdout ?? process.stdout;
|