@hua-labs/tap 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 +2 -2
- package/dist/bridges/codex-app-server-bridge.mjs +8 -1
- package/dist/bridges/codex-app-server-bridge.mjs.map +1 -1
- package/dist/bridges/codex-bridge-runner.mjs +102 -29
- package/dist/bridges/codex-bridge-runner.mjs.map +1 -1
- package/dist/cli.mjs +456 -52
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +63 -1
- package/dist/index.mjs +302 -17
- package/dist/index.mjs.map +1 -1
- package/dist/mcp-server.mjs +461 -198
- package/dist/mcp-server.mjs.map +1 -1
- package/package.json +1 -1
package/dist/mcp-server.mjs
CHANGED
|
@@ -38,9 +38,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
));
|
|
39
39
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
40
40
|
|
|
41
|
-
//
|
|
41
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
42
42
|
var require_code = __commonJS({
|
|
43
|
-
"
|
|
43
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
44
44
|
"use strict";
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
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;
|
|
@@ -192,9 +192,9 @@ var require_code = __commonJS({
|
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
//
|
|
195
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
196
196
|
var require_scope = __commonJS({
|
|
197
|
-
"
|
|
197
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
198
198
|
"use strict";
|
|
199
199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
200
200
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -337,9 +337,9 @@ var require_scope = __commonJS({
|
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
|
|
340
|
-
//
|
|
340
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
341
341
|
var require_codegen = __commonJS({
|
|
342
|
-
"
|
|
342
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
343
343
|
"use strict";
|
|
344
344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
345
345
|
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;
|
|
@@ -1057,9 +1057,9 @@ var require_codegen = __commonJS({
|
|
|
1057
1057
|
}
|
|
1058
1058
|
});
|
|
1059
1059
|
|
|
1060
|
-
//
|
|
1060
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
|
|
1061
1061
|
var require_util = __commonJS({
|
|
1062
|
-
"
|
|
1062
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1063
1063
|
"use strict";
|
|
1064
1064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1065
1065
|
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;
|
|
@@ -1224,9 +1224,9 @@ var require_util = __commonJS({
|
|
|
1224
1224
|
}
|
|
1225
1225
|
});
|
|
1226
1226
|
|
|
1227
|
-
//
|
|
1227
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
|
|
1228
1228
|
var require_names = __commonJS({
|
|
1229
|
-
"
|
|
1229
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1230
1230
|
"use strict";
|
|
1231
1231
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1232
1232
|
var codegen_1 = require_codegen();
|
|
@@ -1263,9 +1263,9 @@ var require_names = __commonJS({
|
|
|
1263
1263
|
}
|
|
1264
1264
|
});
|
|
1265
1265
|
|
|
1266
|
-
//
|
|
1266
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
|
|
1267
1267
|
var require_errors = __commonJS({
|
|
1268
|
-
"
|
|
1268
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1269
1269
|
"use strict";
|
|
1270
1270
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1271
1271
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -1385,9 +1385,9 @@ var require_errors = __commonJS({
|
|
|
1385
1385
|
}
|
|
1386
1386
|
});
|
|
1387
1387
|
|
|
1388
|
-
//
|
|
1388
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1389
1389
|
var require_boolSchema = __commonJS({
|
|
1390
|
-
"
|
|
1390
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1391
1391
|
"use strict";
|
|
1392
1392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1393
1393
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -1436,9 +1436,9 @@ var require_boolSchema = __commonJS({
|
|
|
1436
1436
|
}
|
|
1437
1437
|
});
|
|
1438
1438
|
|
|
1439
|
-
//
|
|
1439
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
|
|
1440
1440
|
var require_rules = __commonJS({
|
|
1441
|
-
"
|
|
1441
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1442
1442
|
"use strict";
|
|
1443
1443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1444
1444
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -1467,9 +1467,9 @@ var require_rules = __commonJS({
|
|
|
1467
1467
|
}
|
|
1468
1468
|
});
|
|
1469
1469
|
|
|
1470
|
-
//
|
|
1470
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1471
1471
|
var require_applicability = __commonJS({
|
|
1472
|
-
"
|
|
1472
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1473
1473
|
"use strict";
|
|
1474
1474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1475
1475
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -1490,9 +1490,9 @@ var require_applicability = __commonJS({
|
|
|
1490
1490
|
}
|
|
1491
1491
|
});
|
|
1492
1492
|
|
|
1493
|
-
//
|
|
1493
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1494
1494
|
var require_dataType = __commonJS({
|
|
1495
|
-
"
|
|
1495
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1496
1496
|
"use strict";
|
|
1497
1497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1498
1498
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -1674,9 +1674,9 @@ var require_dataType = __commonJS({
|
|
|
1674
1674
|
}
|
|
1675
1675
|
});
|
|
1676
1676
|
|
|
1677
|
-
//
|
|
1677
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1678
1678
|
var require_defaults = __commonJS({
|
|
1679
|
-
"
|
|
1679
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1680
1680
|
"use strict";
|
|
1681
1681
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1682
1682
|
exports.assignDefaults = void 0;
|
|
@@ -1711,9 +1711,9 @@ var require_defaults = __commonJS({
|
|
|
1711
1711
|
}
|
|
1712
1712
|
});
|
|
1713
1713
|
|
|
1714
|
-
//
|
|
1714
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1715
1715
|
var require_code2 = __commonJS({
|
|
1716
|
-
"
|
|
1716
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1717
1717
|
"use strict";
|
|
1718
1718
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1719
1719
|
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;
|
|
@@ -1844,9 +1844,9 @@ var require_code2 = __commonJS({
|
|
|
1844
1844
|
}
|
|
1845
1845
|
});
|
|
1846
1846
|
|
|
1847
|
-
//
|
|
1847
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1848
1848
|
var require_keyword = __commonJS({
|
|
1849
|
-
"
|
|
1849
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1850
1850
|
"use strict";
|
|
1851
1851
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1852
1852
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -1962,9 +1962,9 @@ var require_keyword = __commonJS({
|
|
|
1962
1962
|
}
|
|
1963
1963
|
});
|
|
1964
1964
|
|
|
1965
|
-
//
|
|
1965
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1966
1966
|
var require_subschema = __commonJS({
|
|
1967
|
-
"
|
|
1967
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1968
1968
|
"use strict";
|
|
1969
1969
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1970
1970
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -2045,9 +2045,9 @@ var require_subschema = __commonJS({
|
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
|
|
2048
|
-
//
|
|
2048
|
+
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
2049
2049
|
var require_fast_deep_equal = __commonJS({
|
|
2050
|
-
"
|
|
2050
|
+
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2051
2051
|
"use strict";
|
|
2052
2052
|
module.exports = function equal(a, b) {
|
|
2053
2053
|
if (a === b) return true;
|
|
@@ -2080,9 +2080,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2080
2080
|
}
|
|
2081
2081
|
});
|
|
2082
2082
|
|
|
2083
|
-
//
|
|
2083
|
+
// ../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
2084
2084
|
var require_json_schema_traverse = __commonJS({
|
|
2085
|
-
"
|
|
2085
|
+
"../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2086
2086
|
"use strict";
|
|
2087
2087
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
2088
2088
|
if (typeof opts == "function") {
|
|
@@ -2168,9 +2168,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2168
2168
|
}
|
|
2169
2169
|
});
|
|
2170
2170
|
|
|
2171
|
-
//
|
|
2171
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
|
|
2172
2172
|
var require_resolve = __commonJS({
|
|
2173
|
-
"
|
|
2173
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2174
2174
|
"use strict";
|
|
2175
2175
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2176
2176
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -2324,9 +2324,9 @@ var require_resolve = __commonJS({
|
|
|
2324
2324
|
}
|
|
2325
2325
|
});
|
|
2326
2326
|
|
|
2327
|
-
//
|
|
2327
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2328
2328
|
var require_validate = __commonJS({
|
|
2329
|
-
"
|
|
2329
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2330
2330
|
"use strict";
|
|
2331
2331
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2332
2332
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -2832,9 +2832,9 @@ var require_validate = __commonJS({
|
|
|
2832
2832
|
}
|
|
2833
2833
|
});
|
|
2834
2834
|
|
|
2835
|
-
//
|
|
2835
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2836
2836
|
var require_validation_error = __commonJS({
|
|
2837
|
-
"
|
|
2837
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2838
2838
|
"use strict";
|
|
2839
2839
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2840
2840
|
var ValidationError = class extends Error {
|
|
@@ -2848,9 +2848,9 @@ var require_validation_error = __commonJS({
|
|
|
2848
2848
|
}
|
|
2849
2849
|
});
|
|
2850
2850
|
|
|
2851
|
-
//
|
|
2851
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2852
2852
|
var require_ref_error = __commonJS({
|
|
2853
|
-
"
|
|
2853
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2854
2854
|
"use strict";
|
|
2855
2855
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2856
2856
|
var resolve_1 = require_resolve();
|
|
@@ -2865,9 +2865,9 @@ var require_ref_error = __commonJS({
|
|
|
2865
2865
|
}
|
|
2866
2866
|
});
|
|
2867
2867
|
|
|
2868
|
-
//
|
|
2868
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
|
|
2869
2869
|
var require_compile = __commonJS({
|
|
2870
|
-
"
|
|
2870
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2871
2871
|
"use strict";
|
|
2872
2872
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2873
2873
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -3089,9 +3089,9 @@ var require_compile = __commonJS({
|
|
|
3089
3089
|
}
|
|
3090
3090
|
});
|
|
3091
3091
|
|
|
3092
|
-
//
|
|
3092
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
|
|
3093
3093
|
var require_data = __commonJS({
|
|
3094
|
-
"
|
|
3094
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3095
3095
|
module.exports = {
|
|
3096
3096
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3097
3097
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3108,9 +3108,9 @@ var require_data = __commonJS({
|
|
|
3108
3108
|
}
|
|
3109
3109
|
});
|
|
3110
3110
|
|
|
3111
|
-
//
|
|
3111
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
|
|
3112
3112
|
var require_utils = __commonJS({
|
|
3113
|
-
"
|
|
3113
|
+
"../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3114
3114
|
"use strict";
|
|
3115
3115
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3116
3116
|
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);
|
|
@@ -3365,9 +3365,9 @@ var require_utils = __commonJS({
|
|
|
3365
3365
|
}
|
|
3366
3366
|
});
|
|
3367
3367
|
|
|
3368
|
-
//
|
|
3368
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
|
|
3369
3369
|
var require_schemes = __commonJS({
|
|
3370
|
-
"
|
|
3370
|
+
"../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3371
3371
|
"use strict";
|
|
3372
3372
|
var { isUUID } = require_utils();
|
|
3373
3373
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3575,9 +3575,9 @@ var require_schemes = __commonJS({
|
|
|
3575
3575
|
}
|
|
3576
3576
|
});
|
|
3577
3577
|
|
|
3578
|
-
//
|
|
3578
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js
|
|
3579
3579
|
var require_fast_uri = __commonJS({
|
|
3580
|
-
"
|
|
3580
|
+
"../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports, module) {
|
|
3581
3581
|
"use strict";
|
|
3582
3582
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3583
3583
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3830,9 +3830,9 @@ var require_fast_uri = __commonJS({
|
|
|
3830
3830
|
}
|
|
3831
3831
|
});
|
|
3832
3832
|
|
|
3833
|
-
//
|
|
3833
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
|
|
3834
3834
|
var require_uri = __commonJS({
|
|
3835
|
-
"
|
|
3835
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
3836
3836
|
"use strict";
|
|
3837
3837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3838
3838
|
var uri = require_fast_uri();
|
|
@@ -3841,9 +3841,9 @@ var require_uri = __commonJS({
|
|
|
3841
3841
|
}
|
|
3842
3842
|
});
|
|
3843
3843
|
|
|
3844
|
-
//
|
|
3844
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js
|
|
3845
3845
|
var require_core = __commonJS({
|
|
3846
|
-
"
|
|
3846
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports) {
|
|
3847
3847
|
"use strict";
|
|
3848
3848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3849
3849
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -4452,9 +4452,9 @@ var require_core = __commonJS({
|
|
|
4452
4452
|
}
|
|
4453
4453
|
});
|
|
4454
4454
|
|
|
4455
|
-
//
|
|
4455
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4456
4456
|
var require_id = __commonJS({
|
|
4457
|
-
"
|
|
4457
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4458
4458
|
"use strict";
|
|
4459
4459
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4460
4460
|
var def = {
|
|
@@ -4467,9 +4467,9 @@ var require_id = __commonJS({
|
|
|
4467
4467
|
}
|
|
4468
4468
|
});
|
|
4469
4469
|
|
|
4470
|
-
//
|
|
4470
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4471
4471
|
var require_ref = __commonJS({
|
|
4472
|
-
"
|
|
4472
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4473
4473
|
"use strict";
|
|
4474
4474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4475
4475
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -4589,9 +4589,9 @@ var require_ref = __commonJS({
|
|
|
4589
4589
|
}
|
|
4590
4590
|
});
|
|
4591
4591
|
|
|
4592
|
-
//
|
|
4592
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4593
4593
|
var require_core2 = __commonJS({
|
|
4594
|
-
"
|
|
4594
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4595
4595
|
"use strict";
|
|
4596
4596
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4597
4597
|
var id_1 = require_id();
|
|
@@ -4610,9 +4610,9 @@ var require_core2 = __commonJS({
|
|
|
4610
4610
|
}
|
|
4611
4611
|
});
|
|
4612
4612
|
|
|
4613
|
-
//
|
|
4613
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4614
4614
|
var require_limitNumber = __commonJS({
|
|
4615
|
-
"
|
|
4615
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4616
4616
|
"use strict";
|
|
4617
4617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4618
4618
|
var codegen_1 = require_codegen();
|
|
@@ -4642,9 +4642,9 @@ var require_limitNumber = __commonJS({
|
|
|
4642
4642
|
}
|
|
4643
4643
|
});
|
|
4644
4644
|
|
|
4645
|
-
//
|
|
4645
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4646
4646
|
var require_multipleOf = __commonJS({
|
|
4647
|
-
"
|
|
4647
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
4648
4648
|
"use strict";
|
|
4649
4649
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4650
4650
|
var codegen_1 = require_codegen();
|
|
@@ -4670,9 +4670,9 @@ var require_multipleOf = __commonJS({
|
|
|
4670
4670
|
}
|
|
4671
4671
|
});
|
|
4672
4672
|
|
|
4673
|
-
//
|
|
4673
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4674
4674
|
var require_ucs2length = __commonJS({
|
|
4675
|
-
"
|
|
4675
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4676
4676
|
"use strict";
|
|
4677
4677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4678
4678
|
function ucs2length(str) {
|
|
@@ -4696,9 +4696,9 @@ var require_ucs2length = __commonJS({
|
|
|
4696
4696
|
}
|
|
4697
4697
|
});
|
|
4698
4698
|
|
|
4699
|
-
//
|
|
4699
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4700
4700
|
var require_limitLength = __commonJS({
|
|
4701
|
-
"
|
|
4701
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
4702
4702
|
"use strict";
|
|
4703
4703
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4704
4704
|
var codegen_1 = require_codegen();
|
|
@@ -4728,9 +4728,9 @@ var require_limitLength = __commonJS({
|
|
|
4728
4728
|
}
|
|
4729
4729
|
});
|
|
4730
4730
|
|
|
4731
|
-
//
|
|
4731
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4732
4732
|
var require_pattern = __commonJS({
|
|
4733
|
-
"
|
|
4733
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
4734
4734
|
"use strict";
|
|
4735
4735
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4736
4736
|
var code_1 = require_code2();
|
|
@@ -4765,9 +4765,9 @@ var require_pattern = __commonJS({
|
|
|
4765
4765
|
}
|
|
4766
4766
|
});
|
|
4767
4767
|
|
|
4768
|
-
//
|
|
4768
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4769
4769
|
var require_limitProperties = __commonJS({
|
|
4770
|
-
"
|
|
4770
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
4771
4771
|
"use strict";
|
|
4772
4772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4773
4773
|
var codegen_1 = require_codegen();
|
|
@@ -4794,9 +4794,9 @@ var require_limitProperties = __commonJS({
|
|
|
4794
4794
|
}
|
|
4795
4795
|
});
|
|
4796
4796
|
|
|
4797
|
-
//
|
|
4797
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4798
4798
|
var require_required = __commonJS({
|
|
4799
|
-
"
|
|
4799
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
4800
4800
|
"use strict";
|
|
4801
4801
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4802
4802
|
var code_1 = require_code2();
|
|
@@ -4876,9 +4876,9 @@ var require_required = __commonJS({
|
|
|
4876
4876
|
}
|
|
4877
4877
|
});
|
|
4878
4878
|
|
|
4879
|
-
//
|
|
4879
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4880
4880
|
var require_limitItems = __commonJS({
|
|
4881
|
-
"
|
|
4881
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
4882
4882
|
"use strict";
|
|
4883
4883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4884
4884
|
var codegen_1 = require_codegen();
|
|
@@ -4905,9 +4905,9 @@ var require_limitItems = __commonJS({
|
|
|
4905
4905
|
}
|
|
4906
4906
|
});
|
|
4907
4907
|
|
|
4908
|
-
//
|
|
4908
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
|
|
4909
4909
|
var require_equal = __commonJS({
|
|
4910
|
-
"
|
|
4910
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
4911
4911
|
"use strict";
|
|
4912
4912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4913
4913
|
var equal = require_fast_deep_equal();
|
|
@@ -4916,9 +4916,9 @@ var require_equal = __commonJS({
|
|
|
4916
4916
|
}
|
|
4917
4917
|
});
|
|
4918
4918
|
|
|
4919
|
-
//
|
|
4919
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4920
4920
|
var require_uniqueItems = __commonJS({
|
|
4921
|
-
"
|
|
4921
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
4922
4922
|
"use strict";
|
|
4923
4923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4924
4924
|
var dataType_1 = require_dataType();
|
|
@@ -4983,9 +4983,9 @@ var require_uniqueItems = __commonJS({
|
|
|
4983
4983
|
}
|
|
4984
4984
|
});
|
|
4985
4985
|
|
|
4986
|
-
//
|
|
4986
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4987
4987
|
var require_const = __commonJS({
|
|
4988
|
-
"
|
|
4988
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
4989
4989
|
"use strict";
|
|
4990
4990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4991
4991
|
var codegen_1 = require_codegen();
|
|
@@ -5012,9 +5012,9 @@ var require_const = __commonJS({
|
|
|
5012
5012
|
}
|
|
5013
5013
|
});
|
|
5014
5014
|
|
|
5015
|
-
//
|
|
5015
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5016
5016
|
var require_enum = __commonJS({
|
|
5017
|
-
"
|
|
5017
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5018
5018
|
"use strict";
|
|
5019
5019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5020
5020
|
var codegen_1 = require_codegen();
|
|
@@ -5061,9 +5061,9 @@ var require_enum = __commonJS({
|
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
5063
|
|
|
5064
|
-
//
|
|
5064
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5065
5065
|
var require_validation = __commonJS({
|
|
5066
|
-
"
|
|
5066
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5067
5067
|
"use strict";
|
|
5068
5068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5069
5069
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5099,9 +5099,9 @@ var require_validation = __commonJS({
|
|
|
5099
5099
|
}
|
|
5100
5100
|
});
|
|
5101
5101
|
|
|
5102
|
-
//
|
|
5102
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5103
5103
|
var require_additionalItems = __commonJS({
|
|
5104
|
-
"
|
|
5104
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5105
5105
|
"use strict";
|
|
5106
5106
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5107
5107
|
exports.validateAdditionalItems = void 0;
|
|
@@ -5152,9 +5152,9 @@ var require_additionalItems = __commonJS({
|
|
|
5152
5152
|
}
|
|
5153
5153
|
});
|
|
5154
5154
|
|
|
5155
|
-
//
|
|
5155
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5156
5156
|
var require_items = __commonJS({
|
|
5157
|
-
"
|
|
5157
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5158
5158
|
"use strict";
|
|
5159
5159
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5160
5160
|
exports.validateTuple = void 0;
|
|
@@ -5209,9 +5209,9 @@ var require_items = __commonJS({
|
|
|
5209
5209
|
}
|
|
5210
5210
|
});
|
|
5211
5211
|
|
|
5212
|
-
//
|
|
5212
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5213
5213
|
var require_prefixItems = __commonJS({
|
|
5214
|
-
"
|
|
5214
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5215
5215
|
"use strict";
|
|
5216
5216
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5217
5217
|
var items_1 = require_items();
|
|
@@ -5226,9 +5226,9 @@ var require_prefixItems = __commonJS({
|
|
|
5226
5226
|
}
|
|
5227
5227
|
});
|
|
5228
5228
|
|
|
5229
|
-
//
|
|
5229
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5230
5230
|
var require_items2020 = __commonJS({
|
|
5231
|
-
"
|
|
5231
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5232
5232
|
"use strict";
|
|
5233
5233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5234
5234
|
var codegen_1 = require_codegen();
|
|
@@ -5261,9 +5261,9 @@ var require_items2020 = __commonJS({
|
|
|
5261
5261
|
}
|
|
5262
5262
|
});
|
|
5263
5263
|
|
|
5264
|
-
//
|
|
5264
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5265
5265
|
var require_contains = __commonJS({
|
|
5266
|
-
"
|
|
5266
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5267
5267
|
"use strict";
|
|
5268
5268
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5269
5269
|
var codegen_1 = require_codegen();
|
|
@@ -5355,9 +5355,9 @@ var require_contains = __commonJS({
|
|
|
5355
5355
|
}
|
|
5356
5356
|
});
|
|
5357
5357
|
|
|
5358
|
-
//
|
|
5358
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5359
5359
|
var require_dependencies = __commonJS({
|
|
5360
|
-
"
|
|
5360
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5361
5361
|
"use strict";
|
|
5362
5362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5363
5363
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -5449,9 +5449,9 @@ var require_dependencies = __commonJS({
|
|
|
5449
5449
|
}
|
|
5450
5450
|
});
|
|
5451
5451
|
|
|
5452
|
-
//
|
|
5452
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5453
5453
|
var require_propertyNames = __commonJS({
|
|
5454
|
-
"
|
|
5454
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5455
5455
|
"use strict";
|
|
5456
5456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5457
5457
|
var codegen_1 = require_codegen();
|
|
@@ -5492,9 +5492,9 @@ var require_propertyNames = __commonJS({
|
|
|
5492
5492
|
}
|
|
5493
5493
|
});
|
|
5494
5494
|
|
|
5495
|
-
//
|
|
5495
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5496
5496
|
var require_additionalProperties = __commonJS({
|
|
5497
|
-
"
|
|
5497
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5498
5498
|
"use strict";
|
|
5499
5499
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5500
5500
|
var code_1 = require_code2();
|
|
@@ -5598,9 +5598,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5598
5598
|
}
|
|
5599
5599
|
});
|
|
5600
5600
|
|
|
5601
|
-
//
|
|
5601
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5602
5602
|
var require_properties = __commonJS({
|
|
5603
|
-
"
|
|
5603
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5604
5604
|
"use strict";
|
|
5605
5605
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5606
5606
|
var validate_1 = require_validate();
|
|
@@ -5656,9 +5656,9 @@ var require_properties = __commonJS({
|
|
|
5656
5656
|
}
|
|
5657
5657
|
});
|
|
5658
5658
|
|
|
5659
|
-
//
|
|
5659
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5660
5660
|
var require_patternProperties = __commonJS({
|
|
5661
|
-
"
|
|
5661
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
5662
5662
|
"use strict";
|
|
5663
5663
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5664
5664
|
var code_1 = require_code2();
|
|
@@ -5730,9 +5730,9 @@ var require_patternProperties = __commonJS({
|
|
|
5730
5730
|
}
|
|
5731
5731
|
});
|
|
5732
5732
|
|
|
5733
|
-
//
|
|
5733
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5734
5734
|
var require_not = __commonJS({
|
|
5735
|
-
"
|
|
5735
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
5736
5736
|
"use strict";
|
|
5737
5737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5738
5738
|
var util_1 = require_util();
|
|
@@ -5761,9 +5761,9 @@ var require_not = __commonJS({
|
|
|
5761
5761
|
}
|
|
5762
5762
|
});
|
|
5763
5763
|
|
|
5764
|
-
//
|
|
5764
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5765
5765
|
var require_anyOf = __commonJS({
|
|
5766
|
-
"
|
|
5766
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
5767
5767
|
"use strict";
|
|
5768
5768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5769
5769
|
var code_1 = require_code2();
|
|
@@ -5778,9 +5778,9 @@ var require_anyOf = __commonJS({
|
|
|
5778
5778
|
}
|
|
5779
5779
|
});
|
|
5780
5780
|
|
|
5781
|
-
//
|
|
5781
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5782
5782
|
var require_oneOf = __commonJS({
|
|
5783
|
-
"
|
|
5783
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
5784
5784
|
"use strict";
|
|
5785
5785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5786
5786
|
var codegen_1 = require_codegen();
|
|
@@ -5836,9 +5836,9 @@ var require_oneOf = __commonJS({
|
|
|
5836
5836
|
}
|
|
5837
5837
|
});
|
|
5838
5838
|
|
|
5839
|
-
//
|
|
5839
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5840
5840
|
var require_allOf = __commonJS({
|
|
5841
|
-
"
|
|
5841
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
5842
5842
|
"use strict";
|
|
5843
5843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5844
5844
|
var util_1 = require_util();
|
|
@@ -5863,9 +5863,9 @@ var require_allOf = __commonJS({
|
|
|
5863
5863
|
}
|
|
5864
5864
|
});
|
|
5865
5865
|
|
|
5866
|
-
//
|
|
5866
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5867
5867
|
var require_if = __commonJS({
|
|
5868
|
-
"
|
|
5868
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
5869
5869
|
"use strict";
|
|
5870
5870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5871
5871
|
var codegen_1 = require_codegen();
|
|
@@ -5932,9 +5932,9 @@ var require_if = __commonJS({
|
|
|
5932
5932
|
}
|
|
5933
5933
|
});
|
|
5934
5934
|
|
|
5935
|
-
//
|
|
5935
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5936
5936
|
var require_thenElse = __commonJS({
|
|
5937
|
-
"
|
|
5937
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
5938
5938
|
"use strict";
|
|
5939
5939
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5940
5940
|
var util_1 = require_util();
|
|
@@ -5950,9 +5950,9 @@ var require_thenElse = __commonJS({
|
|
|
5950
5950
|
}
|
|
5951
5951
|
});
|
|
5952
5952
|
|
|
5953
|
-
//
|
|
5953
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5954
5954
|
var require_applicator = __commonJS({
|
|
5955
|
-
"
|
|
5955
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
5956
5956
|
"use strict";
|
|
5957
5957
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5958
5958
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -5998,9 +5998,9 @@ var require_applicator = __commonJS({
|
|
|
5998
5998
|
}
|
|
5999
5999
|
});
|
|
6000
6000
|
|
|
6001
|
-
//
|
|
6001
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
6002
6002
|
var require_format = __commonJS({
|
|
6003
|
-
"
|
|
6003
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
6004
6004
|
"use strict";
|
|
6005
6005
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6006
6006
|
var codegen_1 = require_codegen();
|
|
@@ -6088,9 +6088,9 @@ var require_format = __commonJS({
|
|
|
6088
6088
|
}
|
|
6089
6089
|
});
|
|
6090
6090
|
|
|
6091
|
-
//
|
|
6091
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6092
6092
|
var require_format2 = __commonJS({
|
|
6093
|
-
"
|
|
6093
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6094
6094
|
"use strict";
|
|
6095
6095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6096
6096
|
var format_1 = require_format();
|
|
@@ -6099,9 +6099,9 @@ var require_format2 = __commonJS({
|
|
|
6099
6099
|
}
|
|
6100
6100
|
});
|
|
6101
6101
|
|
|
6102
|
-
//
|
|
6102
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6103
6103
|
var require_metadata = __commonJS({
|
|
6104
|
-
"
|
|
6104
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6105
6105
|
"use strict";
|
|
6106
6106
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6107
6107
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -6122,9 +6122,9 @@ var require_metadata = __commonJS({
|
|
|
6122
6122
|
}
|
|
6123
6123
|
});
|
|
6124
6124
|
|
|
6125
|
-
//
|
|
6125
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6126
6126
|
var require_draft7 = __commonJS({
|
|
6127
|
-
"
|
|
6127
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6128
6128
|
"use strict";
|
|
6129
6129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6130
6130
|
var core_1 = require_core2();
|
|
@@ -6144,9 +6144,9 @@ var require_draft7 = __commonJS({
|
|
|
6144
6144
|
}
|
|
6145
6145
|
});
|
|
6146
6146
|
|
|
6147
|
-
//
|
|
6147
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6148
6148
|
var require_types = __commonJS({
|
|
6149
|
-
"
|
|
6149
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6150
6150
|
"use strict";
|
|
6151
6151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6152
6152
|
exports.DiscrError = void 0;
|
|
@@ -6158,9 +6158,9 @@ var require_types = __commonJS({
|
|
|
6158
6158
|
}
|
|
6159
6159
|
});
|
|
6160
6160
|
|
|
6161
|
-
//
|
|
6161
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6162
6162
|
var require_discriminator = __commonJS({
|
|
6163
|
-
"
|
|
6163
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6164
6164
|
"use strict";
|
|
6165
6165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6166
6166
|
var codegen_1 = require_codegen();
|
|
@@ -6263,9 +6263,9 @@ var require_discriminator = __commonJS({
|
|
|
6263
6263
|
}
|
|
6264
6264
|
});
|
|
6265
6265
|
|
|
6266
|
-
//
|
|
6266
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6267
6267
|
var require_json_schema_draft_07 = __commonJS({
|
|
6268
|
-
"
|
|
6268
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6269
6269
|
module.exports = {
|
|
6270
6270
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6271
6271
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6420,9 +6420,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6420
6420
|
}
|
|
6421
6421
|
});
|
|
6422
6422
|
|
|
6423
|
-
//
|
|
6423
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js
|
|
6424
6424
|
var require_ajv = __commonJS({
|
|
6425
|
-
"
|
|
6425
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6426
6426
|
"use strict";
|
|
6427
6427
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6428
6428
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -6490,9 +6490,9 @@ var require_ajv = __commonJS({
|
|
|
6490
6490
|
}
|
|
6491
6491
|
});
|
|
6492
6492
|
|
|
6493
|
-
//
|
|
6493
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js
|
|
6494
6494
|
var require_formats = __commonJS({
|
|
6495
|
-
"
|
|
6495
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
6496
6496
|
"use strict";
|
|
6497
6497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6498
6498
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -6693,9 +6693,9 @@ var require_formats = __commonJS({
|
|
|
6693
6693
|
}
|
|
6694
6694
|
});
|
|
6695
6695
|
|
|
6696
|
-
//
|
|
6696
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js
|
|
6697
6697
|
var require_limit = __commonJS({
|
|
6698
|
-
"
|
|
6698
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
6699
6699
|
"use strict";
|
|
6700
6700
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6701
6701
|
exports.formatLimitDefinition = void 0;
|
|
@@ -6765,9 +6765,9 @@ var require_limit = __commonJS({
|
|
|
6765
6765
|
}
|
|
6766
6766
|
});
|
|
6767
6767
|
|
|
6768
|
-
//
|
|
6768
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js
|
|
6769
6769
|
var require_dist = __commonJS({
|
|
6770
|
-
"
|
|
6770
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
6771
6771
|
"use strict";
|
|
6772
6772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6773
6773
|
var formats_1 = require_formats();
|
|
@@ -6838,7 +6838,7 @@ __export(tap_utils_exports, {
|
|
|
6838
6838
|
stripBom: () => stripBom,
|
|
6839
6839
|
updateActivityTime: () => updateActivityTime
|
|
6840
6840
|
});
|
|
6841
|
-
import { existsSync, readdirSync, statSync } from "fs";
|
|
6841
|
+
import { existsSync, readFileSync, readdirSync, statSync } from "fs";
|
|
6842
6842
|
import { join, resolve } from "path";
|
|
6843
6843
|
function resolveInitialId() {
|
|
6844
6844
|
const envId = process.env.TAP_AGENT_ID;
|
|
@@ -6848,6 +6848,20 @@ function resolveInitialId() {
|
|
|
6848
6848
|
return envName.replace(/-/g, "_");
|
|
6849
6849
|
return "unknown";
|
|
6850
6850
|
}
|
|
6851
|
+
function resolveNameFromState() {
|
|
6852
|
+
const stateDir = process.env.TAP_STATE_DIR;
|
|
6853
|
+
const agentId = process.env.TAP_AGENT_ID;
|
|
6854
|
+
if (!stateDir || !agentId) return null;
|
|
6855
|
+
try {
|
|
6856
|
+
const statePath = join(stateDir, "state.json");
|
|
6857
|
+
if (!existsSync(statePath)) return null;
|
|
6858
|
+
const state = JSON.parse(readFileSync(statePath, "utf-8"));
|
|
6859
|
+
const instance = state.instances?.[agentId] ?? state.instances?.[agentId.replace(/_/g, "-")];
|
|
6860
|
+
return instance?.agentName ?? null;
|
|
6861
|
+
} catch {
|
|
6862
|
+
return null;
|
|
6863
|
+
}
|
|
6864
|
+
}
|
|
6851
6865
|
function getAgentId() {
|
|
6852
6866
|
return _agentId;
|
|
6853
6867
|
}
|
|
@@ -6965,7 +6979,7 @@ var init_tap_utils = __esm({
|
|
|
6965
6979
|
SERVER_START = Date.now();
|
|
6966
6980
|
PLACEHOLDER_NAMES = /* @__PURE__ */ new Set(["unknown", "unnamed", "<set-per-session>"]);
|
|
6967
6981
|
_agentId = resolveInitialId();
|
|
6968
|
-
_agentName = process.env.TAP_AGENT_NAME
|
|
6982
|
+
_agentName = resolveNameFromState() ?? (process.env.TAP_AGENT_NAME && !PLACEHOLDER_NAMES.has(process.env.TAP_AGENT_NAME) ? process.env.TAP_AGENT_NAME : "unknown");
|
|
6969
6983
|
_idLocked = _agentId !== "unknown";
|
|
6970
6984
|
_lastActivityTime = (/* @__PURE__ */ new Date()).toISOString();
|
|
6971
6985
|
}
|
|
@@ -6991,7 +7005,7 @@ __export(tap_io_exports, {
|
|
|
6991
7005
|
import {
|
|
6992
7006
|
existsSync as existsSync2,
|
|
6993
7007
|
mkdirSync,
|
|
6994
|
-
readFileSync,
|
|
7008
|
+
readFileSync as readFileSync2,
|
|
6995
7009
|
readdirSync as readdirSync2,
|
|
6996
7010
|
renameSync,
|
|
6997
7011
|
statSync as statSync2,
|
|
@@ -7033,7 +7047,7 @@ function ensureReceiptsDir() {
|
|
|
7033
7047
|
}
|
|
7034
7048
|
function loadReceipts() {
|
|
7035
7049
|
try {
|
|
7036
|
-
return JSON.parse(
|
|
7050
|
+
return JSON.parse(readFileSync2(RECEIPTS_PATH, "utf-8"));
|
|
7037
7051
|
} catch {
|
|
7038
7052
|
return {};
|
|
7039
7053
|
}
|
|
@@ -7046,7 +7060,7 @@ function saveReceipts(store) {
|
|
|
7046
7060
|
}
|
|
7047
7061
|
function loadHeartbeats() {
|
|
7048
7062
|
try {
|
|
7049
|
-
return JSON.parse(
|
|
7063
|
+
return JSON.parse(readFileSync2(HEARTBEATS_PATH, "utf-8"));
|
|
7050
7064
|
} catch {
|
|
7051
7065
|
return {};
|
|
7052
7066
|
}
|
|
@@ -7130,7 +7144,7 @@ function getUnreadItems(options) {
|
|
|
7130
7144
|
if (effectiveSinceMs && mtime < effectiveSinceMs) continue;
|
|
7131
7145
|
let content;
|
|
7132
7146
|
try {
|
|
7133
|
-
content = stripBom(
|
|
7147
|
+
content = stripBom(readFileSync2(fullPath, "utf-8"));
|
|
7134
7148
|
} catch {
|
|
7135
7149
|
continue;
|
|
7136
7150
|
}
|
|
@@ -7179,7 +7193,7 @@ var init_tap_io = __esm({
|
|
|
7179
7193
|
}
|
|
7180
7194
|
});
|
|
7181
7195
|
|
|
7182
|
-
//
|
|
7196
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.js
|
|
7183
7197
|
var util;
|
|
7184
7198
|
(function(util2) {
|
|
7185
7199
|
util2.assertEqual = (_) => {
|
|
@@ -7313,7 +7327,7 @@ var getParsedType = (data) => {
|
|
|
7313
7327
|
}
|
|
7314
7328
|
};
|
|
7315
7329
|
|
|
7316
|
-
//
|
|
7330
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.js
|
|
7317
7331
|
var ZodIssueCode = util.arrayToEnum([
|
|
7318
7332
|
"invalid_type",
|
|
7319
7333
|
"invalid_literal",
|
|
@@ -7427,7 +7441,7 @@ ZodError.create = (issues) => {
|
|
|
7427
7441
|
return error2;
|
|
7428
7442
|
};
|
|
7429
7443
|
|
|
7430
|
-
//
|
|
7444
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.js
|
|
7431
7445
|
var errorMap = (issue2, _ctx) => {
|
|
7432
7446
|
let message;
|
|
7433
7447
|
switch (issue2.code) {
|
|
@@ -7530,13 +7544,13 @@ var errorMap = (issue2, _ctx) => {
|
|
|
7530
7544
|
};
|
|
7531
7545
|
var en_default = errorMap;
|
|
7532
7546
|
|
|
7533
|
-
//
|
|
7547
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.js
|
|
7534
7548
|
var overrideErrorMap = en_default;
|
|
7535
7549
|
function getErrorMap() {
|
|
7536
7550
|
return overrideErrorMap;
|
|
7537
7551
|
}
|
|
7538
7552
|
|
|
7539
|
-
//
|
|
7553
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.js
|
|
7540
7554
|
var makeIssue = (params) => {
|
|
7541
7555
|
const { data, path, errorMaps, issueData } = params;
|
|
7542
7556
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -7645,14 +7659,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
7645
7659
|
var isValid = (x) => x.status === "valid";
|
|
7646
7660
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
7647
7661
|
|
|
7648
|
-
//
|
|
7662
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.js
|
|
7649
7663
|
var errorUtil;
|
|
7650
7664
|
(function(errorUtil2) {
|
|
7651
7665
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
7652
7666
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
7653
7667
|
})(errorUtil || (errorUtil = {}));
|
|
7654
7668
|
|
|
7655
|
-
//
|
|
7669
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.js
|
|
7656
7670
|
var ParseInputLazyPath = class {
|
|
7657
7671
|
constructor(parent, value, path, key) {
|
|
7658
7672
|
this._cachedPath = [];
|
|
@@ -11055,7 +11069,7 @@ var nullableType = ZodNullable.create;
|
|
|
11055
11069
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
11056
11070
|
var pipelineType = ZodPipeline.create;
|
|
11057
11071
|
|
|
11058
|
-
//
|
|
11072
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
11059
11073
|
var NEVER = Object.freeze({
|
|
11060
11074
|
status: "aborted"
|
|
11061
11075
|
});
|
|
@@ -11129,7 +11143,7 @@ function config(newConfig) {
|
|
|
11129
11143
|
return globalConfig;
|
|
11130
11144
|
}
|
|
11131
11145
|
|
|
11132
|
-
//
|
|
11146
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
11133
11147
|
var util_exports = {};
|
|
11134
11148
|
__export(util_exports, {
|
|
11135
11149
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -11808,7 +11822,7 @@ var Class = class {
|
|
|
11808
11822
|
}
|
|
11809
11823
|
};
|
|
11810
11824
|
|
|
11811
|
-
//
|
|
11825
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
11812
11826
|
var initializer = (inst, def) => {
|
|
11813
11827
|
inst.name = "$ZodError";
|
|
11814
11828
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -11874,7 +11888,7 @@ function formatError(error2, mapper = (issue2) => issue2.message) {
|
|
|
11874
11888
|
return fieldErrors;
|
|
11875
11889
|
}
|
|
11876
11890
|
|
|
11877
|
-
//
|
|
11891
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
11878
11892
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
11879
11893
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
11880
11894
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -11954,7 +11968,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
11954
11968
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
11955
11969
|
};
|
|
11956
11970
|
|
|
11957
|
-
//
|
|
11971
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
11958
11972
|
var regexes_exports = {};
|
|
11959
11973
|
__export(regexes_exports, {
|
|
11960
11974
|
base64: () => base64,
|
|
@@ -12111,7 +12125,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
12111
12125
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
12112
12126
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
12113
12127
|
|
|
12114
|
-
//
|
|
12128
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
12115
12129
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
12116
12130
|
var _a2;
|
|
12117
12131
|
inst._zod ?? (inst._zod = {});
|
|
@@ -12659,7 +12673,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
12659
12673
|
};
|
|
12660
12674
|
});
|
|
12661
12675
|
|
|
12662
|
-
//
|
|
12676
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
12663
12677
|
var Doc = class {
|
|
12664
12678
|
constructor(args = []) {
|
|
12665
12679
|
this.content = [];
|
|
@@ -12695,14 +12709,14 @@ var Doc = class {
|
|
|
12695
12709
|
}
|
|
12696
12710
|
};
|
|
12697
12711
|
|
|
12698
|
-
//
|
|
12712
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
12699
12713
|
var version = {
|
|
12700
12714
|
major: 4,
|
|
12701
12715
|
minor: 3,
|
|
12702
12716
|
patch: 6
|
|
12703
12717
|
};
|
|
12704
12718
|
|
|
12705
|
-
//
|
|
12719
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
12706
12720
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
12707
12721
|
var _a2;
|
|
12708
12722
|
inst ?? (inst = {});
|
|
@@ -14673,7 +14687,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
14673
14687
|
}
|
|
14674
14688
|
}
|
|
14675
14689
|
|
|
14676
|
-
//
|
|
14690
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
14677
14691
|
var error = () => {
|
|
14678
14692
|
const Sizable = {
|
|
14679
14693
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -14782,7 +14796,7 @@ function en_default2() {
|
|
|
14782
14796
|
};
|
|
14783
14797
|
}
|
|
14784
14798
|
|
|
14785
|
-
//
|
|
14799
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
14786
14800
|
var _a;
|
|
14787
14801
|
var $ZodRegistry = class {
|
|
14788
14802
|
constructor() {
|
|
@@ -14830,7 +14844,7 @@ function registry() {
|
|
|
14830
14844
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
14831
14845
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
14832
14846
|
|
|
14833
|
-
//
|
|
14847
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
14834
14848
|
// @__NO_SIDE_EFFECTS__
|
|
14835
14849
|
function _string(Class2, params) {
|
|
14836
14850
|
return new Class2({
|
|
@@ -15634,7 +15648,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15634
15648
|
return inst;
|
|
15635
15649
|
}
|
|
15636
15650
|
|
|
15637
|
-
//
|
|
15651
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
15638
15652
|
function initializeContext(params) {
|
|
15639
15653
|
let target = params?.target ?? "draft-2020-12";
|
|
15640
15654
|
if (target === "draft-4")
|
|
@@ -15986,7 +16000,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
15986
16000
|
return finalize(ctx, schema);
|
|
15987
16001
|
};
|
|
15988
16002
|
|
|
15989
|
-
//
|
|
16003
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
15990
16004
|
var formatMap = {
|
|
15991
16005
|
guid: "uuid",
|
|
15992
16006
|
url: "uri",
|
|
@@ -16462,7 +16476,7 @@ var lazyProcessor = (schema, ctx, _json, params) => {
|
|
|
16462
16476
|
seen.ref = innerType;
|
|
16463
16477
|
};
|
|
16464
16478
|
|
|
16465
|
-
//
|
|
16479
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
16466
16480
|
function isZ4Schema(s) {
|
|
16467
16481
|
const schema = s;
|
|
16468
16482
|
return !!schema._zod;
|
|
@@ -16525,7 +16539,7 @@ function getLiteralValue(schema) {
|
|
|
16525
16539
|
return void 0;
|
|
16526
16540
|
}
|
|
16527
16541
|
|
|
16528
|
-
//
|
|
16542
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
16529
16543
|
var schemas_exports3 = {};
|
|
16530
16544
|
__export(schemas_exports3, {
|
|
16531
16545
|
ZodAny: () => ZodAny2,
|
|
@@ -16694,7 +16708,7 @@ __export(schemas_exports3, {
|
|
|
16694
16708
|
xor: () => xor
|
|
16695
16709
|
});
|
|
16696
16710
|
|
|
16697
|
-
//
|
|
16711
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
16698
16712
|
var checks_exports2 = {};
|
|
16699
16713
|
__export(checks_exports2, {
|
|
16700
16714
|
endsWith: () => _endsWith,
|
|
@@ -16728,7 +16742,7 @@ __export(checks_exports2, {
|
|
|
16728
16742
|
uppercase: () => _uppercase
|
|
16729
16743
|
});
|
|
16730
16744
|
|
|
16731
|
-
//
|
|
16745
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
16732
16746
|
var iso_exports2 = {};
|
|
16733
16747
|
__export(iso_exports2, {
|
|
16734
16748
|
ZodISODate: () => ZodISODate,
|
|
@@ -16769,7 +16783,7 @@ function duration2(params) {
|
|
|
16769
16783
|
return _isoDuration(ZodISODuration, params);
|
|
16770
16784
|
}
|
|
16771
16785
|
|
|
16772
|
-
//
|
|
16786
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
16773
16787
|
var initializer2 = (inst, issues) => {
|
|
16774
16788
|
$ZodError.init(inst, issues);
|
|
16775
16789
|
inst.name = "ZodError";
|
|
@@ -16809,7 +16823,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
16809
16823
|
Parent: Error
|
|
16810
16824
|
});
|
|
16811
16825
|
|
|
16812
|
-
//
|
|
16826
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
16813
16827
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
16814
16828
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
16815
16829
|
var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -16823,7 +16837,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
16823
16837
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
16824
16838
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
16825
16839
|
|
|
16826
|
-
//
|
|
16840
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
16827
16841
|
var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
16828
16842
|
$ZodType.init(inst, def);
|
|
16829
16843
|
Object.assign(inst["~standard"], {
|
|
@@ -17902,22 +17916,22 @@ function preprocess(fn, schema) {
|
|
|
17902
17916
|
return pipe(transform(fn), schema);
|
|
17903
17917
|
}
|
|
17904
17918
|
|
|
17905
|
-
//
|
|
17919
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
17906
17920
|
var ZodFirstPartyTypeKind2;
|
|
17907
17921
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind3) {
|
|
17908
17922
|
})(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
|
|
17909
17923
|
|
|
17910
|
-
//
|
|
17924
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
17911
17925
|
var z = {
|
|
17912
17926
|
...schemas_exports3,
|
|
17913
17927
|
...checks_exports2,
|
|
17914
17928
|
iso: iso_exports2
|
|
17915
17929
|
};
|
|
17916
17930
|
|
|
17917
|
-
//
|
|
17931
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
17918
17932
|
config(en_default2());
|
|
17919
17933
|
|
|
17920
|
-
//
|
|
17934
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
17921
17935
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
17922
17936
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
17923
17937
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -19423,15 +19437,15 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
19423
19437
|
}
|
|
19424
19438
|
};
|
|
19425
19439
|
|
|
19426
|
-
//
|
|
19440
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
19427
19441
|
function isTerminal(status) {
|
|
19428
19442
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
19429
19443
|
}
|
|
19430
19444
|
|
|
19431
|
-
//
|
|
19445
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
19432
19446
|
var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
19433
19447
|
|
|
19434
|
-
//
|
|
19448
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
19435
19449
|
function getMethodLiteral(schema) {
|
|
19436
19450
|
const shape = getObjectShape(schema);
|
|
19437
19451
|
const methodSchema = shape?.method;
|
|
@@ -19452,7 +19466,7 @@ function parseWithCompat(schema, data) {
|
|
|
19452
19466
|
return result.data;
|
|
19453
19467
|
}
|
|
19454
19468
|
|
|
19455
|
-
//
|
|
19469
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
19456
19470
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
|
|
19457
19471
|
var Protocol = class {
|
|
19458
19472
|
constructor(_options) {
|
|
@@ -20400,7 +20414,7 @@ function mergeCapabilities(base, additional) {
|
|
|
20400
20414
|
return result;
|
|
20401
20415
|
}
|
|
20402
20416
|
|
|
20403
|
-
//
|
|
20417
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
20404
20418
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
20405
20419
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
20406
20420
|
function createDefaultAjvInstance() {
|
|
@@ -20468,7 +20482,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
20468
20482
|
}
|
|
20469
20483
|
};
|
|
20470
20484
|
|
|
20471
|
-
//
|
|
20485
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
20472
20486
|
var ExperimentalServerTasks = class {
|
|
20473
20487
|
constructor(_server) {
|
|
20474
20488
|
this._server = _server;
|
|
@@ -20681,7 +20695,7 @@ var ExperimentalServerTasks = class {
|
|
|
20681
20695
|
}
|
|
20682
20696
|
};
|
|
20683
20697
|
|
|
20684
|
-
//
|
|
20698
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
20685
20699
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
20686
20700
|
if (!requests) {
|
|
20687
20701
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -20716,7 +20730,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
20716
20730
|
}
|
|
20717
20731
|
}
|
|
20718
20732
|
|
|
20719
|
-
//
|
|
20733
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
20720
20734
|
var Server = class extends Protocol {
|
|
20721
20735
|
/**
|
|
20722
20736
|
* Initializes this server with the given name and version information.
|
|
@@ -21096,10 +21110,10 @@ var Server = class extends Protocol {
|
|
|
21096
21110
|
}
|
|
21097
21111
|
};
|
|
21098
21112
|
|
|
21099
|
-
//
|
|
21113
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
21100
21114
|
import process3 from "process";
|
|
21101
21115
|
|
|
21102
|
-
//
|
|
21116
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
21103
21117
|
var ReadBuffer = class {
|
|
21104
21118
|
append(chunk) {
|
|
21105
21119
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -21127,7 +21141,7 @@ function serializeMessage(message) {
|
|
|
21127
21141
|
return JSON.stringify(message) + "\n";
|
|
21128
21142
|
}
|
|
21129
21143
|
|
|
21130
|
-
//
|
|
21144
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
21131
21145
|
var StdioServerTransport = class {
|
|
21132
21146
|
constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
|
|
21133
21147
|
this._stdin = _stdin;
|
|
@@ -21191,12 +21205,12 @@ var StdioServerTransport = class {
|
|
|
21191
21205
|
// ../tap-plugin/channels/tap-comms.ts
|
|
21192
21206
|
init_tap_utils();
|
|
21193
21207
|
init_tap_io();
|
|
21194
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
21208
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync2, readFileSync as readFileSync5, writeFileSync as writeFileSync2 } from "fs";
|
|
21195
21209
|
import { join as join5 } from "path";
|
|
21196
21210
|
|
|
21197
21211
|
// ../tap-plugin/channels/tap-db.ts
|
|
21198
21212
|
init_tap_utils();
|
|
21199
|
-
import { existsSync as existsSync3, readFileSync as
|
|
21213
|
+
import { existsSync as existsSync3, readFileSync as readFileSync3, readdirSync as readdirSync3, statSync as statSync3 } from "fs";
|
|
21200
21214
|
import { join as join3 } from "path";
|
|
21201
21215
|
var db = null;
|
|
21202
21216
|
function initDb() {
|
|
@@ -21264,7 +21278,7 @@ function autoSyncOnStartup() {
|
|
|
21264
21278
|
const rcptPath = join3(RECEIPTS_DIR, "receipts.json");
|
|
21265
21279
|
if (existsSync3(rcptPath)) {
|
|
21266
21280
|
try {
|
|
21267
|
-
const rcptStore = JSON.parse(
|
|
21281
|
+
const rcptStore = JSON.parse(readFileSync3(rcptPath, "utf-8"));
|
|
21268
21282
|
for (const [fname, readers] of Object.entries(rcptStore)) {
|
|
21269
21283
|
for (const r of readers) {
|
|
21270
21284
|
db.run(
|
|
@@ -21393,7 +21407,7 @@ function dbSyncAll() {
|
|
|
21393
21407
|
|
|
21394
21408
|
// ../tap-plugin/channels/tap-watcher.ts
|
|
21395
21409
|
init_tap_utils();
|
|
21396
|
-
import { existsSync as existsSync4, readFileSync as
|
|
21410
|
+
import { existsSync as existsSync4, readFileSync as readFileSync4, statSync as statSync4, watch } from "fs";
|
|
21397
21411
|
import { join as join4 } from "path";
|
|
21398
21412
|
init_tap_io();
|
|
21399
21413
|
var notifiedFiles = /* @__PURE__ */ new Set();
|
|
@@ -21417,7 +21431,7 @@ async function waitForFileReady(filepath) {
|
|
|
21417
21431
|
try {
|
|
21418
21432
|
const mtime = statSync4(filepath).mtimeMs;
|
|
21419
21433
|
if (mtime < SERVER_START - 5e3) return "stale";
|
|
21420
|
-
const content = stripBom(
|
|
21434
|
+
const content = stripBom(readFileSync4(filepath, "utf-8"));
|
|
21421
21435
|
return { content, mtime };
|
|
21422
21436
|
} catch (error2) {
|
|
21423
21437
|
if (attempt === MAX_READY_ATTEMPTS - 1 || !isRetryableFsError(error2)) {
|
|
@@ -21632,14 +21646,56 @@ autoSyncOnStartup();
|
|
|
21632
21646
|
seedStartupFiles("inbox");
|
|
21633
21647
|
seedStartupFiles("reviews");
|
|
21634
21648
|
seedStartupFiles("findings");
|
|
21649
|
+
var ONBOARDING_TEASER_LINES = 10;
|
|
21650
|
+
function loadOnboardingTeaser() {
|
|
21651
|
+
const commsDir = process.env.TAP_COMMS_DIR;
|
|
21652
|
+
if (!commsDir) return "";
|
|
21653
|
+
const stateDir = process.env.TAP_STATE_DIR;
|
|
21654
|
+
const agentId = process.env.TAP_AGENT_ID;
|
|
21655
|
+
if (stateDir && agentId) {
|
|
21656
|
+
try {
|
|
21657
|
+
const markerPath = join5(stateDir, "onboarded.json");
|
|
21658
|
+
if (existsSync6(markerPath)) {
|
|
21659
|
+
const store = JSON.parse(readFileSync5(markerPath, "utf-8"));
|
|
21660
|
+
if (store[agentId]) return "";
|
|
21661
|
+
}
|
|
21662
|
+
} catch {
|
|
21663
|
+
}
|
|
21664
|
+
}
|
|
21665
|
+
try {
|
|
21666
|
+
const welcomePath = join5(commsDir, "onboarding", "welcome.md");
|
|
21667
|
+
if (!existsSync6(welcomePath)) return "";
|
|
21668
|
+
const content = readFileSync5(welcomePath, "utf-8");
|
|
21669
|
+
const lines = content.split("\n").slice(0, ONBOARDING_TEASER_LINES);
|
|
21670
|
+
if (stateDir && agentId) {
|
|
21671
|
+
try {
|
|
21672
|
+
const markerPath = join5(stateDir, "onboarded.json");
|
|
21673
|
+
let store = {};
|
|
21674
|
+
if (existsSync6(markerPath)) {
|
|
21675
|
+
store = JSON.parse(readFileSync5(markerPath, "utf-8"));
|
|
21676
|
+
}
|
|
21677
|
+
if (!store[agentId]) {
|
|
21678
|
+
store[agentId] = { onboardedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
21679
|
+
mkdirSync2(stateDir, { recursive: true });
|
|
21680
|
+
writeFileSync2(markerPath, JSON.stringify(store, null, 2), "utf-8");
|
|
21681
|
+
}
|
|
21682
|
+
} catch {
|
|
21683
|
+
}
|
|
21684
|
+
}
|
|
21685
|
+
return "\n\n--- Onboarding ---\n" + lines.join("\n") + "\n(Use tap_onboard tool for full onboarding guide.)";
|
|
21686
|
+
} catch {
|
|
21687
|
+
return "";
|
|
21688
|
+
}
|
|
21689
|
+
}
|
|
21690
|
+
var baseInstructions = 'You are connected to the tap-comms channel. Messages from other agents may arrive as <channel source="tap-comms" from="X" to="Y" subject="Z"> notifications. If your client does not surface Claude channel notifications, call tap_list_unread to pull pending inbox and review messages. Reply using the tap_reply tool to send messages back to other agents or the control tower.';
|
|
21635
21691
|
var mcp = new Server(
|
|
21636
|
-
{ name: "tap-comms", version: "0.2.
|
|
21692
|
+
{ name: "tap-comms", version: "0.2.2" },
|
|
21637
21693
|
{
|
|
21638
21694
|
capabilities: {
|
|
21639
21695
|
experimental: { "claude/channel": {} },
|
|
21640
21696
|
tools: {}
|
|
21641
21697
|
},
|
|
21642
|
-
instructions:
|
|
21698
|
+
instructions: baseInstructions + loadOnboardingTeaser()
|
|
21643
21699
|
}
|
|
21644
21700
|
);
|
|
21645
21701
|
mcp.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
@@ -21808,6 +21864,11 @@ mcp.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
21808
21864
|
name: "tap_db_sync",
|
|
21809
21865
|
description: "Sync existing inbox/receipts/heartbeats files into the SQLite database.",
|
|
21810
21866
|
inputSchema: { type: "object", properties: {} }
|
|
21867
|
+
},
|
|
21868
|
+
{
|
|
21869
|
+
name: "tap_onboard",
|
|
21870
|
+
description: "Get the full onboarding guide for this project. Returns welcome.md + any additional onboarding docs from commsDir/onboarding/.",
|
|
21871
|
+
inputSchema: { type: "object", properties: {} }
|
|
21811
21872
|
}
|
|
21812
21873
|
]
|
|
21813
21874
|
}));
|
|
@@ -21862,11 +21923,15 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
21862
21923
|
);
|
|
21863
21924
|
const activeList = [...activeSenders].filter((n) => n !== "unnamed" && n !== "unknown").join(", ");
|
|
21864
21925
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
21926
|
+
let priorJoinedAt = null;
|
|
21927
|
+
let priorLastActivity = null;
|
|
21865
21928
|
const locked = acquireLock(HEARTBEATS_LOCK);
|
|
21866
21929
|
if (locked) {
|
|
21867
21930
|
try {
|
|
21868
21931
|
const store = loadHeartbeats();
|
|
21869
21932
|
const oldEntry = store[agentId] ?? (oldName !== "unknown" ? store[oldName] : void 0);
|
|
21933
|
+
priorJoinedAt = oldEntry?.joinedAt ?? null;
|
|
21934
|
+
priorLastActivity = oldEntry?.lastActivity ?? null;
|
|
21870
21935
|
if (oldName !== "unknown" && oldName !== agentId) {
|
|
21871
21936
|
delete store[oldName];
|
|
21872
21937
|
}
|
|
@@ -21884,6 +21949,84 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
21884
21949
|
releaseLock(HEARTBEATS_LOCK);
|
|
21885
21950
|
}
|
|
21886
21951
|
}
|
|
21952
|
+
const stateDir = process.env.TAP_STATE_DIR;
|
|
21953
|
+
if (stateDir) {
|
|
21954
|
+
try {
|
|
21955
|
+
const statePath = join5(stateDir, "state.json");
|
|
21956
|
+
if (existsSync6(statePath)) {
|
|
21957
|
+
const state = JSON.parse(readFileSync5(statePath, "utf-8"));
|
|
21958
|
+
const instanceKey = agentId.replace(/_/g, "-");
|
|
21959
|
+
const instance = state.instances?.[agentId] ?? state.instances?.[instanceKey];
|
|
21960
|
+
if (instance) {
|
|
21961
|
+
instance.agentName = name;
|
|
21962
|
+
const tmp = `${statePath}.tmp.${process.pid}`;
|
|
21963
|
+
writeFileSync2(tmp, JSON.stringify(state, null, 2), "utf-8");
|
|
21964
|
+
try {
|
|
21965
|
+
renameSync2(tmp, statePath);
|
|
21966
|
+
} catch {
|
|
21967
|
+
try {
|
|
21968
|
+
renameSync2(tmp, statePath);
|
|
21969
|
+
} catch {
|
|
21970
|
+
}
|
|
21971
|
+
}
|
|
21972
|
+
debug(`backwrite agentName="${name}" to state.json for ${agentId}`);
|
|
21973
|
+
}
|
|
21974
|
+
}
|
|
21975
|
+
} catch {
|
|
21976
|
+
}
|
|
21977
|
+
}
|
|
21978
|
+
if (oldName === "unknown" || oldName === "unnamed") {
|
|
21979
|
+
try {
|
|
21980
|
+
const repoRoot = process.env.TAP_REPO_ROOT ?? ".";
|
|
21981
|
+
let towerName = null;
|
|
21982
|
+
const cfgPath = join5(repoRoot, "tap-config.json");
|
|
21983
|
+
if (existsSync6(cfgPath)) {
|
|
21984
|
+
const cfg = JSON.parse(readFileSync5(cfgPath, "utf-8"));
|
|
21985
|
+
towerName = cfg.towerName ?? null;
|
|
21986
|
+
}
|
|
21987
|
+
let runtime = process.env.TAP_BRIDGE_RUNTIME ?? null;
|
|
21988
|
+
if (!runtime && stateDir) {
|
|
21989
|
+
try {
|
|
21990
|
+
const statePath = join5(stateDir, "state.json");
|
|
21991
|
+
if (existsSync6(statePath)) {
|
|
21992
|
+
const state = JSON.parse(readFileSync5(statePath, "utf-8"));
|
|
21993
|
+
const instanceKey = agentId.replace(/_/g, "-");
|
|
21994
|
+
const inst = state.instances?.[agentId] ?? state.instances?.[instanceKey];
|
|
21995
|
+
runtime = inst?.runtime ?? null;
|
|
21996
|
+
}
|
|
21997
|
+
} catch {
|
|
21998
|
+
}
|
|
21999
|
+
}
|
|
22000
|
+
if (towerName && towerName !== name && towerName !== agentId) {
|
|
22001
|
+
const SKIP_WINDOW_MS = 10 * 60 * 1e3;
|
|
22002
|
+
const STALE_WINDOW_MS = 30 * 60 * 1e3;
|
|
22003
|
+
let shouldNotify = true;
|
|
22004
|
+
if (priorJoinedAt) {
|
|
22005
|
+
const activityTs = priorLastActivity ?? priorJoinedAt;
|
|
22006
|
+
const activityAge = Date.now() - new Date(activityTs).getTime();
|
|
22007
|
+
if (activityAge < SKIP_WINDOW_MS) {
|
|
22008
|
+
shouldNotify = false;
|
|
22009
|
+
} else if (activityAge < STALE_WINDOW_MS) {
|
|
22010
|
+
shouldNotify = false;
|
|
22011
|
+
}
|
|
22012
|
+
}
|
|
22013
|
+
if (shouldNotify) {
|
|
22014
|
+
const ts = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
|
|
22015
|
+
const notifyFilename = `${ts.slice(0, 10).replace(/-/g, "")}-tap-${towerName}-new-agent-${agentId}.md`;
|
|
22016
|
+
const notifyPath = join5(INBOX_DIR, notifyFilename);
|
|
22017
|
+
writeFileSync2(
|
|
22018
|
+
notifyPath,
|
|
22019
|
+
`[NEW] ${name} (${agentId}) joined. Runtime: ${runtime ?? "unknown"}.`,
|
|
22020
|
+
"utf-8"
|
|
22021
|
+
);
|
|
22022
|
+
debug(
|
|
22023
|
+
`tower notify: ${towerName} \u2190 new agent ${name} (${runtime})`
|
|
22024
|
+
);
|
|
22025
|
+
}
|
|
22026
|
+
}
|
|
22027
|
+
} catch {
|
|
22028
|
+
}
|
|
22029
|
+
}
|
|
21887
22030
|
let text = `Name set: ${name} (was: ${oldName}). Messages to "${name}", "${agentId}", "\uC804\uCCB4", or "all" will be received.`;
|
|
21888
22031
|
if (!wasIdLocked)
|
|
21889
22032
|
text += `
|
|
@@ -21897,6 +22040,53 @@ Recent active names: ${activeList}`;
|
|
|
21897
22040
|
}
|
|
21898
22041
|
if (req.params.name === "tap_reply") {
|
|
21899
22042
|
const { to, subject, content, cc } = req.params.arguments;
|
|
22043
|
+
const broadcastNames = /* @__PURE__ */ new Set(["\uC804\uCCB4", "all"]);
|
|
22044
|
+
const recipientWarnings = [];
|
|
22045
|
+
const store = loadHeartbeats();
|
|
22046
|
+
const knownAgents = /* @__PURE__ */ new Set();
|
|
22047
|
+
const displayNameCount = /* @__PURE__ */ new Map();
|
|
22048
|
+
const placeholders = /* @__PURE__ */ new Set(["unknown", "unnamed", "<set-per-session>"]);
|
|
22049
|
+
for (const [key, hb] of Object.entries(store)) {
|
|
22050
|
+
if (!placeholders.has(key)) knownAgents.add(key);
|
|
22051
|
+
if (hb.agent && !placeholders.has(hb.agent)) {
|
|
22052
|
+
knownAgents.add(hb.agent);
|
|
22053
|
+
const ids = displayNameCount.get(hb.agent) ?? [];
|
|
22054
|
+
ids.push(key);
|
|
22055
|
+
displayNameCount.set(hb.agent, ids);
|
|
22056
|
+
}
|
|
22057
|
+
}
|
|
22058
|
+
const knownList = [...knownAgents].filter((n) => n !== "unknown").join(", ");
|
|
22059
|
+
if (!broadcastNames.has(to)) {
|
|
22060
|
+
if (!knownAgents.has(to)) {
|
|
22061
|
+
recipientWarnings.push(
|
|
22062
|
+
`\u26A0\uFE0F WARNING: "${to}" is not a known agent. Check spelling. Known: ${knownList}`
|
|
22063
|
+
);
|
|
22064
|
+
} else {
|
|
22065
|
+
const ids = displayNameCount.get(to);
|
|
22066
|
+
if (ids && ids.length > 1) {
|
|
22067
|
+
recipientWarnings.push(
|
|
22068
|
+
`\u26A0\uFE0F WARNING: "${to}" matches multiple agents (${ids.join(", ")}). Use agent ID for precise routing.`
|
|
22069
|
+
);
|
|
22070
|
+
}
|
|
22071
|
+
}
|
|
22072
|
+
}
|
|
22073
|
+
if (cc?.length) {
|
|
22074
|
+
for (const recipient of cc) {
|
|
22075
|
+
if (broadcastNames.has(recipient)) continue;
|
|
22076
|
+
if (!knownAgents.has(recipient)) {
|
|
22077
|
+
recipientWarnings.push(
|
|
22078
|
+
`\u26A0\uFE0F WARNING: CC "${recipient}" is not a known agent. Known: ${knownList}`
|
|
22079
|
+
);
|
|
22080
|
+
} else {
|
|
22081
|
+
const ids = displayNameCount.get(recipient);
|
|
22082
|
+
if (ids && ids.length > 1) {
|
|
22083
|
+
recipientWarnings.push(
|
|
22084
|
+
`\u26A0\uFE0F WARNING: CC "${recipient}" matches multiple agents (${ids.join(", ")}). Use agent ID.`
|
|
22085
|
+
);
|
|
22086
|
+
}
|
|
22087
|
+
}
|
|
22088
|
+
}
|
|
22089
|
+
}
|
|
21900
22090
|
const date4 = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "");
|
|
21901
22091
|
const fromId = getAgentId();
|
|
21902
22092
|
const fromName = getAgentName();
|
|
@@ -21935,6 +22125,7 @@ ${content}`,
|
|
|
21935
22125
|
}
|
|
21936
22126
|
}
|
|
21937
22127
|
}
|
|
22128
|
+
sent.push(...recipientWarnings);
|
|
21938
22129
|
return { content: [{ type: "text", text: sent.join("\n") }] };
|
|
21939
22130
|
}
|
|
21940
22131
|
if (req.params.name === "tap_broadcast") {
|
|
@@ -22158,6 +22349,78 @@ ${content}`,
|
|
|
22158
22349
|
]
|
|
22159
22350
|
};
|
|
22160
22351
|
}
|
|
22352
|
+
if (req.params.name === "tap_onboard") {
|
|
22353
|
+
const commsDir = process.env.TAP_COMMS_DIR;
|
|
22354
|
+
if (!commsDir) {
|
|
22355
|
+
return {
|
|
22356
|
+
content: [
|
|
22357
|
+
{ type: "text", text: "TAP_COMMS_DIR not set. Cannot load onboarding docs." }
|
|
22358
|
+
]
|
|
22359
|
+
};
|
|
22360
|
+
}
|
|
22361
|
+
const stateDir = process.env.TAP_STATE_DIR;
|
|
22362
|
+
const agentId = getAgentId();
|
|
22363
|
+
let alreadyOnboarded = false;
|
|
22364
|
+
let markerStore = {};
|
|
22365
|
+
const markerPath = stateDir ? join5(stateDir, "onboarded.json") : null;
|
|
22366
|
+
if (markerPath) {
|
|
22367
|
+
try {
|
|
22368
|
+
if (existsSync6(markerPath)) {
|
|
22369
|
+
markerStore = JSON.parse(readFileSync5(markerPath, "utf-8"));
|
|
22370
|
+
if (markerStore[agentId]) {
|
|
22371
|
+
alreadyOnboarded = true;
|
|
22372
|
+
}
|
|
22373
|
+
}
|
|
22374
|
+
} catch {
|
|
22375
|
+
}
|
|
22376
|
+
}
|
|
22377
|
+
const onboardingDir = join5(commsDir, "onboarding");
|
|
22378
|
+
if (!existsSync6(onboardingDir)) {
|
|
22379
|
+
return {
|
|
22380
|
+
content: [
|
|
22381
|
+
{ type: "text", text: "No onboarding directory found at " + onboardingDir }
|
|
22382
|
+
]
|
|
22383
|
+
};
|
|
22384
|
+
}
|
|
22385
|
+
const docs = [];
|
|
22386
|
+
const allFiles = readdirSync5(onboardingDir).filter((f) => f.endsWith(".md"));
|
|
22387
|
+
const files = [
|
|
22388
|
+
...allFiles.filter((f) => f === "welcome.md"),
|
|
22389
|
+
...allFiles.filter((f) => f !== "welcome.md").sort()
|
|
22390
|
+
];
|
|
22391
|
+
for (const file2 of files) {
|
|
22392
|
+
try {
|
|
22393
|
+
const content = readFileSync5(join5(onboardingDir, file2), "utf-8");
|
|
22394
|
+
docs.push(`# ${file2}
|
|
22395
|
+
|
|
22396
|
+
${content}`);
|
|
22397
|
+
} catch {
|
|
22398
|
+
docs.push(`# ${file2}
|
|
22399
|
+
|
|
22400
|
+
(failed to read)`);
|
|
22401
|
+
}
|
|
22402
|
+
}
|
|
22403
|
+
if (docs.length === 0) {
|
|
22404
|
+
return {
|
|
22405
|
+
content: [
|
|
22406
|
+
{ type: "text", text: "Onboarding directory is empty." }
|
|
22407
|
+
]
|
|
22408
|
+
};
|
|
22409
|
+
}
|
|
22410
|
+
if (markerPath && !alreadyOnboarded) {
|
|
22411
|
+
try {
|
|
22412
|
+
markerStore[agentId] = { onboardedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
22413
|
+
writeFileSync2(markerPath, JSON.stringify(markerStore, null, 2), "utf-8");
|
|
22414
|
+
} catch {
|
|
22415
|
+
}
|
|
22416
|
+
}
|
|
22417
|
+
const prefix = alreadyOnboarded ? "(You have already been onboarded. Showing docs again for reference.)\n\n" : "";
|
|
22418
|
+
return {
|
|
22419
|
+
content: [
|
|
22420
|
+
{ type: "text", text: prefix + docs.join("\n\n---\n\n") }
|
|
22421
|
+
]
|
|
22422
|
+
};
|
|
22423
|
+
}
|
|
22161
22424
|
throw new Error(`unknown tool: ${req.params.name}`);
|
|
22162
22425
|
});
|
|
22163
22426
|
await mcp.connect(new StdioServerTransport());
|