zooid 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +106 -12
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-N5POSZX5.js → chunk-SUPTPSN3.js} +629 -195
- package/dist/chunk-SUPTPSN3.js.map +1 -0
- package/dist/index.d.ts +27 -3
- package/dist/index.js +1 -1
- package/dist/web/assets/index-C2MAIew3.css +1 -0
- package/dist/web/assets/{index-JZMMlqDP.js → index-CqfWXqvO.js} +1 -1
- package/dist/web/assets/{index-BT_v3DKu.js → index-Cz5fEZBc.js} +51 -51
- package/dist/web/assets/{reaction-picker-emoji-Kh7emgFa.js → reaction-picker-emoji-cME0vOsX.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +8 -7
- package/src/bin.ts +5 -2
- package/src/build-registry.ts +211 -10
- package/src/build-registry.zod044.test.ts +261 -0
- package/src/commands/dev.ts +15 -7
- package/src/commands/init/generators.ts +5 -0
- package/src/commands/status.ts +7 -2
- package/src/daemon/start-daemon.ts +28 -1
- package/src/prepull-images.test.ts +149 -0
- package/src/prepull-images.ts +100 -0
- package/dist/chunk-N5POSZX5.js.map +0 -1
- package/dist/web/assets/index-DJTghnF-.css +0 -1
|
@@ -101,9 +101,9 @@ var require_main = __commonJS({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
//
|
|
104
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
105
105
|
var require_code = __commonJS({
|
|
106
|
-
"
|
|
106
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
107
107
|
"use strict";
|
|
108
108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109
109
|
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;
|
|
@@ -255,9 +255,9 @@ var require_code = __commonJS({
|
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
257
|
|
|
258
|
-
//
|
|
258
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
259
259
|
var require_scope = __commonJS({
|
|
260
|
-
"
|
|
260
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
261
261
|
"use strict";
|
|
262
262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
263
263
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -400,9 +400,9 @@ var require_scope = __commonJS({
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
|
|
403
|
-
//
|
|
403
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
404
404
|
var require_codegen = __commonJS({
|
|
405
|
-
"
|
|
405
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
406
406
|
"use strict";
|
|
407
407
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
408
408
|
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;
|
|
@@ -1120,9 +1120,9 @@ var require_codegen = __commonJS({
|
|
|
1120
1120
|
}
|
|
1121
1121
|
});
|
|
1122
1122
|
|
|
1123
|
-
//
|
|
1123
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
1124
1124
|
var require_util = __commonJS({
|
|
1125
|
-
"
|
|
1125
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1126
1126
|
"use strict";
|
|
1127
1127
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1128
1128
|
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;
|
|
@@ -1287,9 +1287,9 @@ var require_util = __commonJS({
|
|
|
1287
1287
|
}
|
|
1288
1288
|
});
|
|
1289
1289
|
|
|
1290
|
-
//
|
|
1290
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
1291
1291
|
var require_names = __commonJS({
|
|
1292
|
-
"
|
|
1292
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1293
1293
|
"use strict";
|
|
1294
1294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1295
1295
|
var codegen_1 = require_codegen();
|
|
@@ -1326,9 +1326,9 @@ var require_names = __commonJS({
|
|
|
1326
1326
|
}
|
|
1327
1327
|
});
|
|
1328
1328
|
|
|
1329
|
-
//
|
|
1329
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
1330
1330
|
var require_errors = __commonJS({
|
|
1331
|
-
"
|
|
1331
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1332
1332
|
"use strict";
|
|
1333
1333
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1334
1334
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -1448,9 +1448,9 @@ var require_errors = __commonJS({
|
|
|
1448
1448
|
}
|
|
1449
1449
|
});
|
|
1450
1450
|
|
|
1451
|
-
//
|
|
1451
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1452
1452
|
var require_boolSchema = __commonJS({
|
|
1453
|
-
"
|
|
1453
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1454
1454
|
"use strict";
|
|
1455
1455
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1456
1456
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -1499,9 +1499,9 @@ var require_boolSchema = __commonJS({
|
|
|
1499
1499
|
}
|
|
1500
1500
|
});
|
|
1501
1501
|
|
|
1502
|
-
//
|
|
1502
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
1503
1503
|
var require_rules = __commonJS({
|
|
1504
|
-
"
|
|
1504
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1505
1505
|
"use strict";
|
|
1506
1506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1507
1507
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -1530,9 +1530,9 @@ var require_rules = __commonJS({
|
|
|
1530
1530
|
}
|
|
1531
1531
|
});
|
|
1532
1532
|
|
|
1533
|
-
//
|
|
1533
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1534
1534
|
var require_applicability = __commonJS({
|
|
1535
|
-
"
|
|
1535
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1536
1536
|
"use strict";
|
|
1537
1537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1538
1538
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -1553,9 +1553,9 @@ var require_applicability = __commonJS({
|
|
|
1553
1553
|
}
|
|
1554
1554
|
});
|
|
1555
1555
|
|
|
1556
|
-
//
|
|
1556
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1557
1557
|
var require_dataType = __commonJS({
|
|
1558
|
-
"
|
|
1558
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1559
1559
|
"use strict";
|
|
1560
1560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1561
1561
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -1737,9 +1737,9 @@ var require_dataType = __commonJS({
|
|
|
1737
1737
|
}
|
|
1738
1738
|
});
|
|
1739
1739
|
|
|
1740
|
-
//
|
|
1740
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1741
1741
|
var require_defaults = __commonJS({
|
|
1742
|
-
"
|
|
1742
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1743
1743
|
"use strict";
|
|
1744
1744
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1745
1745
|
exports.assignDefaults = void 0;
|
|
@@ -1774,9 +1774,9 @@ var require_defaults = __commonJS({
|
|
|
1774
1774
|
}
|
|
1775
1775
|
});
|
|
1776
1776
|
|
|
1777
|
-
//
|
|
1777
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1778
1778
|
var require_code2 = __commonJS({
|
|
1779
|
-
"
|
|
1779
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1780
1780
|
"use strict";
|
|
1781
1781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1782
1782
|
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;
|
|
@@ -1907,9 +1907,9 @@ var require_code2 = __commonJS({
|
|
|
1907
1907
|
}
|
|
1908
1908
|
});
|
|
1909
1909
|
|
|
1910
|
-
//
|
|
1910
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1911
1911
|
var require_keyword = __commonJS({
|
|
1912
|
-
"
|
|
1912
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1913
1913
|
"use strict";
|
|
1914
1914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1915
1915
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -2025,9 +2025,9 @@ var require_keyword = __commonJS({
|
|
|
2025
2025
|
}
|
|
2026
2026
|
});
|
|
2027
2027
|
|
|
2028
|
-
//
|
|
2028
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
2029
2029
|
var require_subschema = __commonJS({
|
|
2030
|
-
"
|
|
2030
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
2031
2031
|
"use strict";
|
|
2032
2032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2033
2033
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -2108,9 +2108,9 @@ var require_subschema = __commonJS({
|
|
|
2108
2108
|
}
|
|
2109
2109
|
});
|
|
2110
2110
|
|
|
2111
|
-
//
|
|
2111
|
+
// ../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
2112
2112
|
var require_fast_deep_equal = __commonJS({
|
|
2113
|
-
"
|
|
2113
|
+
"../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2114
2114
|
"use strict";
|
|
2115
2115
|
module.exports = function equal(a, b) {
|
|
2116
2116
|
if (a === b) return true;
|
|
@@ -2143,9 +2143,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2143
2143
|
}
|
|
2144
2144
|
});
|
|
2145
2145
|
|
|
2146
|
-
//
|
|
2146
|
+
// ../../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
2147
2147
|
var require_json_schema_traverse = __commonJS({
|
|
2148
|
-
"
|
|
2148
|
+
"../../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2149
2149
|
"use strict";
|
|
2150
2150
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
2151
2151
|
if (typeof opts == "function") {
|
|
@@ -2231,9 +2231,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2231
2231
|
}
|
|
2232
2232
|
});
|
|
2233
2233
|
|
|
2234
|
-
//
|
|
2234
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
2235
2235
|
var require_resolve = __commonJS({
|
|
2236
|
-
"
|
|
2236
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2237
2237
|
"use strict";
|
|
2238
2238
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2239
2239
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -2387,9 +2387,9 @@ var require_resolve = __commonJS({
|
|
|
2387
2387
|
}
|
|
2388
2388
|
});
|
|
2389
2389
|
|
|
2390
|
-
//
|
|
2390
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2391
2391
|
var require_validate = __commonJS({
|
|
2392
|
-
"
|
|
2392
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2393
2393
|
"use strict";
|
|
2394
2394
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2395
2395
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -2895,9 +2895,9 @@ var require_validate = __commonJS({
|
|
|
2895
2895
|
}
|
|
2896
2896
|
});
|
|
2897
2897
|
|
|
2898
|
-
//
|
|
2898
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2899
2899
|
var require_validation_error = __commonJS({
|
|
2900
|
-
"
|
|
2900
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2901
2901
|
"use strict";
|
|
2902
2902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2903
2903
|
var ValidationError = class extends Error {
|
|
@@ -2911,9 +2911,9 @@ var require_validation_error = __commonJS({
|
|
|
2911
2911
|
}
|
|
2912
2912
|
});
|
|
2913
2913
|
|
|
2914
|
-
//
|
|
2914
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2915
2915
|
var require_ref_error = __commonJS({
|
|
2916
|
-
"
|
|
2916
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2917
2917
|
"use strict";
|
|
2918
2918
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2919
2919
|
var resolve_1 = require_resolve();
|
|
@@ -2928,9 +2928,9 @@ var require_ref_error = __commonJS({
|
|
|
2928
2928
|
}
|
|
2929
2929
|
});
|
|
2930
2930
|
|
|
2931
|
-
//
|
|
2931
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
2932
2932
|
var require_compile = __commonJS({
|
|
2933
|
-
"
|
|
2933
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2934
2934
|
"use strict";
|
|
2935
2935
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2936
2936
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -3152,9 +3152,9 @@ var require_compile = __commonJS({
|
|
|
3152
3152
|
}
|
|
3153
3153
|
});
|
|
3154
3154
|
|
|
3155
|
-
//
|
|
3155
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
3156
3156
|
var require_data = __commonJS({
|
|
3157
|
-
"
|
|
3157
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3158
3158
|
module.exports = {
|
|
3159
3159
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3160
3160
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3171,9 +3171,9 @@ var require_data = __commonJS({
|
|
|
3171
3171
|
}
|
|
3172
3172
|
});
|
|
3173
3173
|
|
|
3174
|
-
//
|
|
3174
|
+
// ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
|
|
3175
3175
|
var require_utils = __commonJS({
|
|
3176
|
-
"
|
|
3176
|
+
"../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3177
3177
|
"use strict";
|
|
3178
3178
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3179
3179
|
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);
|
|
@@ -3484,9 +3484,9 @@ var require_utils = __commonJS({
|
|
|
3484
3484
|
}
|
|
3485
3485
|
});
|
|
3486
3486
|
|
|
3487
|
-
//
|
|
3487
|
+
// ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
|
|
3488
3488
|
var require_schemes = __commonJS({
|
|
3489
|
-
"
|
|
3489
|
+
"../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3490
3490
|
"use strict";
|
|
3491
3491
|
var { isUUID } = require_utils();
|
|
3492
3492
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3694,9 +3694,9 @@ var require_schemes = __commonJS({
|
|
|
3694
3694
|
}
|
|
3695
3695
|
});
|
|
3696
3696
|
|
|
3697
|
-
//
|
|
3697
|
+
// ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js
|
|
3698
3698
|
var require_fast_uri = __commonJS({
|
|
3699
|
-
"
|
|
3699
|
+
"../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js"(exports, module) {
|
|
3700
3700
|
"use strict";
|
|
3701
3701
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3702
3702
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3980,9 +3980,9 @@ var require_fast_uri = __commonJS({
|
|
|
3980
3980
|
}
|
|
3981
3981
|
});
|
|
3982
3982
|
|
|
3983
|
-
//
|
|
3983
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
3984
3984
|
var require_uri = __commonJS({
|
|
3985
|
-
"
|
|
3985
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
3986
3986
|
"use strict";
|
|
3987
3987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3988
3988
|
var uri = require_fast_uri();
|
|
@@ -3991,9 +3991,9 @@ var require_uri = __commonJS({
|
|
|
3991
3991
|
}
|
|
3992
3992
|
});
|
|
3993
3993
|
|
|
3994
|
-
//
|
|
3994
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
3995
3995
|
var require_core = __commonJS({
|
|
3996
|
-
"
|
|
3996
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports) {
|
|
3997
3997
|
"use strict";
|
|
3998
3998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3999
3999
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -4602,9 +4602,9 @@ var require_core = __commonJS({
|
|
|
4602
4602
|
}
|
|
4603
4603
|
});
|
|
4604
4604
|
|
|
4605
|
-
//
|
|
4605
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4606
4606
|
var require_id = __commonJS({
|
|
4607
|
-
"
|
|
4607
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4608
4608
|
"use strict";
|
|
4609
4609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4610
4610
|
var def = {
|
|
@@ -4617,9 +4617,9 @@ var require_id = __commonJS({
|
|
|
4617
4617
|
}
|
|
4618
4618
|
});
|
|
4619
4619
|
|
|
4620
|
-
//
|
|
4620
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4621
4621
|
var require_ref = __commonJS({
|
|
4622
|
-
"
|
|
4622
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4623
4623
|
"use strict";
|
|
4624
4624
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4625
4625
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -4739,9 +4739,9 @@ var require_ref = __commonJS({
|
|
|
4739
4739
|
}
|
|
4740
4740
|
});
|
|
4741
4741
|
|
|
4742
|
-
//
|
|
4742
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4743
4743
|
var require_core2 = __commonJS({
|
|
4744
|
-
"
|
|
4744
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4745
4745
|
"use strict";
|
|
4746
4746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4747
4747
|
var id_1 = require_id();
|
|
@@ -4760,9 +4760,9 @@ var require_core2 = __commonJS({
|
|
|
4760
4760
|
}
|
|
4761
4761
|
});
|
|
4762
4762
|
|
|
4763
|
-
//
|
|
4763
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4764
4764
|
var require_limitNumber = __commonJS({
|
|
4765
|
-
"
|
|
4765
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4766
4766
|
"use strict";
|
|
4767
4767
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4768
4768
|
var codegen_1 = require_codegen();
|
|
@@ -4792,9 +4792,9 @@ var require_limitNumber = __commonJS({
|
|
|
4792
4792
|
}
|
|
4793
4793
|
});
|
|
4794
4794
|
|
|
4795
|
-
//
|
|
4795
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4796
4796
|
var require_multipleOf = __commonJS({
|
|
4797
|
-
"
|
|
4797
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
4798
4798
|
"use strict";
|
|
4799
4799
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4800
4800
|
var codegen_1 = require_codegen();
|
|
@@ -4820,9 +4820,9 @@ var require_multipleOf = __commonJS({
|
|
|
4820
4820
|
}
|
|
4821
4821
|
});
|
|
4822
4822
|
|
|
4823
|
-
//
|
|
4823
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4824
4824
|
var require_ucs2length = __commonJS({
|
|
4825
|
-
"
|
|
4825
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4826
4826
|
"use strict";
|
|
4827
4827
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4828
4828
|
function ucs2length(str) {
|
|
@@ -4846,9 +4846,9 @@ var require_ucs2length = __commonJS({
|
|
|
4846
4846
|
}
|
|
4847
4847
|
});
|
|
4848
4848
|
|
|
4849
|
-
//
|
|
4849
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4850
4850
|
var require_limitLength = __commonJS({
|
|
4851
|
-
"
|
|
4851
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
4852
4852
|
"use strict";
|
|
4853
4853
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4854
4854
|
var codegen_1 = require_codegen();
|
|
@@ -4878,9 +4878,9 @@ var require_limitLength = __commonJS({
|
|
|
4878
4878
|
}
|
|
4879
4879
|
});
|
|
4880
4880
|
|
|
4881
|
-
//
|
|
4881
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4882
4882
|
var require_pattern = __commonJS({
|
|
4883
|
-
"
|
|
4883
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
4884
4884
|
"use strict";
|
|
4885
4885
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4886
4886
|
var code_1 = require_code2();
|
|
@@ -4915,9 +4915,9 @@ var require_pattern = __commonJS({
|
|
|
4915
4915
|
}
|
|
4916
4916
|
});
|
|
4917
4917
|
|
|
4918
|
-
//
|
|
4918
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4919
4919
|
var require_limitProperties = __commonJS({
|
|
4920
|
-
"
|
|
4920
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
var codegen_1 = require_codegen();
|
|
@@ -4944,9 +4944,9 @@ var require_limitProperties = __commonJS({
|
|
|
4944
4944
|
}
|
|
4945
4945
|
});
|
|
4946
4946
|
|
|
4947
|
-
//
|
|
4947
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4948
4948
|
var require_required = __commonJS({
|
|
4949
|
-
"
|
|
4949
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
4950
4950
|
"use strict";
|
|
4951
4951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4952
4952
|
var code_1 = require_code2();
|
|
@@ -5026,9 +5026,9 @@ var require_required = __commonJS({
|
|
|
5026
5026
|
}
|
|
5027
5027
|
});
|
|
5028
5028
|
|
|
5029
|
-
//
|
|
5029
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
5030
5030
|
var require_limitItems = __commonJS({
|
|
5031
|
-
"
|
|
5031
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
5032
5032
|
"use strict";
|
|
5033
5033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5034
5034
|
var codegen_1 = require_codegen();
|
|
@@ -5055,9 +5055,9 @@ var require_limitItems = __commonJS({
|
|
|
5055
5055
|
}
|
|
5056
5056
|
});
|
|
5057
5057
|
|
|
5058
|
-
//
|
|
5058
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
5059
5059
|
var require_equal = __commonJS({
|
|
5060
|
-
"
|
|
5060
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
5061
5061
|
"use strict";
|
|
5062
5062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5063
5063
|
var equal = require_fast_deep_equal();
|
|
@@ -5066,9 +5066,9 @@ var require_equal = __commonJS({
|
|
|
5066
5066
|
}
|
|
5067
5067
|
});
|
|
5068
5068
|
|
|
5069
|
-
//
|
|
5069
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
5070
5070
|
var require_uniqueItems = __commonJS({
|
|
5071
|
-
"
|
|
5071
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
5072
5072
|
"use strict";
|
|
5073
5073
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5074
5074
|
var dataType_1 = require_dataType();
|
|
@@ -5133,9 +5133,9 @@ var require_uniqueItems = __commonJS({
|
|
|
5133
5133
|
}
|
|
5134
5134
|
});
|
|
5135
5135
|
|
|
5136
|
-
//
|
|
5136
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
5137
5137
|
var require_const = __commonJS({
|
|
5138
|
-
"
|
|
5138
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
5139
5139
|
"use strict";
|
|
5140
5140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5141
5141
|
var codegen_1 = require_codegen();
|
|
@@ -5162,9 +5162,9 @@ var require_const = __commonJS({
|
|
|
5162
5162
|
}
|
|
5163
5163
|
});
|
|
5164
5164
|
|
|
5165
|
-
//
|
|
5165
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5166
5166
|
var require_enum = __commonJS({
|
|
5167
|
-
"
|
|
5167
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5168
5168
|
"use strict";
|
|
5169
5169
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5170
5170
|
var codegen_1 = require_codegen();
|
|
@@ -5211,9 +5211,9 @@ var require_enum = __commonJS({
|
|
|
5211
5211
|
}
|
|
5212
5212
|
});
|
|
5213
5213
|
|
|
5214
|
-
//
|
|
5214
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5215
5215
|
var require_validation = __commonJS({
|
|
5216
|
-
"
|
|
5216
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5217
5217
|
"use strict";
|
|
5218
5218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5219
5219
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5249,9 +5249,9 @@ var require_validation = __commonJS({
|
|
|
5249
5249
|
}
|
|
5250
5250
|
});
|
|
5251
5251
|
|
|
5252
|
-
//
|
|
5252
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5253
5253
|
var require_additionalItems = __commonJS({
|
|
5254
|
-
"
|
|
5254
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5255
5255
|
"use strict";
|
|
5256
5256
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5257
5257
|
exports.validateAdditionalItems = void 0;
|
|
@@ -5302,9 +5302,9 @@ var require_additionalItems = __commonJS({
|
|
|
5302
5302
|
}
|
|
5303
5303
|
});
|
|
5304
5304
|
|
|
5305
|
-
//
|
|
5305
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5306
5306
|
var require_items = __commonJS({
|
|
5307
|
-
"
|
|
5307
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5308
5308
|
"use strict";
|
|
5309
5309
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5310
5310
|
exports.validateTuple = void 0;
|
|
@@ -5359,9 +5359,9 @@ var require_items = __commonJS({
|
|
|
5359
5359
|
}
|
|
5360
5360
|
});
|
|
5361
5361
|
|
|
5362
|
-
//
|
|
5362
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5363
5363
|
var require_prefixItems = __commonJS({
|
|
5364
|
-
"
|
|
5364
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5365
5365
|
"use strict";
|
|
5366
5366
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5367
5367
|
var items_1 = require_items();
|
|
@@ -5376,9 +5376,9 @@ var require_prefixItems = __commonJS({
|
|
|
5376
5376
|
}
|
|
5377
5377
|
});
|
|
5378
5378
|
|
|
5379
|
-
//
|
|
5379
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5380
5380
|
var require_items2020 = __commonJS({
|
|
5381
|
-
"
|
|
5381
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5382
5382
|
"use strict";
|
|
5383
5383
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5384
5384
|
var codegen_1 = require_codegen();
|
|
@@ -5411,9 +5411,9 @@ var require_items2020 = __commonJS({
|
|
|
5411
5411
|
}
|
|
5412
5412
|
});
|
|
5413
5413
|
|
|
5414
|
-
//
|
|
5414
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5415
5415
|
var require_contains = __commonJS({
|
|
5416
|
-
"
|
|
5416
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5417
5417
|
"use strict";
|
|
5418
5418
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5419
5419
|
var codegen_1 = require_codegen();
|
|
@@ -5505,9 +5505,9 @@ var require_contains = __commonJS({
|
|
|
5505
5505
|
}
|
|
5506
5506
|
});
|
|
5507
5507
|
|
|
5508
|
-
//
|
|
5508
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5509
5509
|
var require_dependencies = __commonJS({
|
|
5510
|
-
"
|
|
5510
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5511
5511
|
"use strict";
|
|
5512
5512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5513
5513
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -5599,9 +5599,9 @@ var require_dependencies = __commonJS({
|
|
|
5599
5599
|
}
|
|
5600
5600
|
});
|
|
5601
5601
|
|
|
5602
|
-
//
|
|
5602
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5603
5603
|
var require_propertyNames = __commonJS({
|
|
5604
|
-
"
|
|
5604
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5605
5605
|
"use strict";
|
|
5606
5606
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5607
5607
|
var codegen_1 = require_codegen();
|
|
@@ -5642,9 +5642,9 @@ var require_propertyNames = __commonJS({
|
|
|
5642
5642
|
}
|
|
5643
5643
|
});
|
|
5644
5644
|
|
|
5645
|
-
//
|
|
5645
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5646
5646
|
var require_additionalProperties = __commonJS({
|
|
5647
|
-
"
|
|
5647
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5648
5648
|
"use strict";
|
|
5649
5649
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5650
5650
|
var code_1 = require_code2();
|
|
@@ -5748,9 +5748,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5748
5748
|
}
|
|
5749
5749
|
});
|
|
5750
5750
|
|
|
5751
|
-
//
|
|
5751
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5752
5752
|
var require_properties = __commonJS({
|
|
5753
|
-
"
|
|
5753
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5754
5754
|
"use strict";
|
|
5755
5755
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5756
5756
|
var validate_1 = require_validate();
|
|
@@ -5806,9 +5806,9 @@ var require_properties = __commonJS({
|
|
|
5806
5806
|
}
|
|
5807
5807
|
});
|
|
5808
5808
|
|
|
5809
|
-
//
|
|
5809
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5810
5810
|
var require_patternProperties = __commonJS({
|
|
5811
|
-
"
|
|
5811
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
5812
5812
|
"use strict";
|
|
5813
5813
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5814
5814
|
var code_1 = require_code2();
|
|
@@ -5880,9 +5880,9 @@ var require_patternProperties = __commonJS({
|
|
|
5880
5880
|
}
|
|
5881
5881
|
});
|
|
5882
5882
|
|
|
5883
|
-
//
|
|
5883
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5884
5884
|
var require_not = __commonJS({
|
|
5885
|
-
"
|
|
5885
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
5886
5886
|
"use strict";
|
|
5887
5887
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5888
5888
|
var util_1 = require_util();
|
|
@@ -5911,9 +5911,9 @@ var require_not = __commonJS({
|
|
|
5911
5911
|
}
|
|
5912
5912
|
});
|
|
5913
5913
|
|
|
5914
|
-
//
|
|
5914
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5915
5915
|
var require_anyOf = __commonJS({
|
|
5916
|
-
"
|
|
5916
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
5917
5917
|
"use strict";
|
|
5918
5918
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5919
5919
|
var code_1 = require_code2();
|
|
@@ -5928,9 +5928,9 @@ var require_anyOf = __commonJS({
|
|
|
5928
5928
|
}
|
|
5929
5929
|
});
|
|
5930
5930
|
|
|
5931
|
-
//
|
|
5931
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5932
5932
|
var require_oneOf = __commonJS({
|
|
5933
|
-
"
|
|
5933
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
5934
5934
|
"use strict";
|
|
5935
5935
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5936
5936
|
var codegen_1 = require_codegen();
|
|
@@ -5986,9 +5986,9 @@ var require_oneOf = __commonJS({
|
|
|
5986
5986
|
}
|
|
5987
5987
|
});
|
|
5988
5988
|
|
|
5989
|
-
//
|
|
5989
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5990
5990
|
var require_allOf = __commonJS({
|
|
5991
|
-
"
|
|
5991
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
5992
5992
|
"use strict";
|
|
5993
5993
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5994
5994
|
var util_1 = require_util();
|
|
@@ -6013,9 +6013,9 @@ var require_allOf = __commonJS({
|
|
|
6013
6013
|
}
|
|
6014
6014
|
});
|
|
6015
6015
|
|
|
6016
|
-
//
|
|
6016
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
6017
6017
|
var require_if = __commonJS({
|
|
6018
|
-
"
|
|
6018
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
6019
6019
|
"use strict";
|
|
6020
6020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6021
6021
|
var codegen_1 = require_codegen();
|
|
@@ -6082,9 +6082,9 @@ var require_if = __commonJS({
|
|
|
6082
6082
|
}
|
|
6083
6083
|
});
|
|
6084
6084
|
|
|
6085
|
-
//
|
|
6085
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6086
6086
|
var require_thenElse = __commonJS({
|
|
6087
|
-
"
|
|
6087
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
6088
6088
|
"use strict";
|
|
6089
6089
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6090
6090
|
var util_1 = require_util();
|
|
@@ -6100,9 +6100,9 @@ var require_thenElse = __commonJS({
|
|
|
6100
6100
|
}
|
|
6101
6101
|
});
|
|
6102
6102
|
|
|
6103
|
-
//
|
|
6103
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6104
6104
|
var require_applicator = __commonJS({
|
|
6105
|
-
"
|
|
6105
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
6106
6106
|
"use strict";
|
|
6107
6107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6108
6108
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -6148,9 +6148,9 @@ var require_applicator = __commonJS({
|
|
|
6148
6148
|
}
|
|
6149
6149
|
});
|
|
6150
6150
|
|
|
6151
|
-
//
|
|
6151
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
6152
6152
|
var require_format = __commonJS({
|
|
6153
|
-
"
|
|
6153
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
6154
6154
|
"use strict";
|
|
6155
6155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6156
6156
|
var codegen_1 = require_codegen();
|
|
@@ -6238,9 +6238,9 @@ var require_format = __commonJS({
|
|
|
6238
6238
|
}
|
|
6239
6239
|
});
|
|
6240
6240
|
|
|
6241
|
-
//
|
|
6241
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6242
6242
|
var require_format2 = __commonJS({
|
|
6243
|
-
"
|
|
6243
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6244
6244
|
"use strict";
|
|
6245
6245
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6246
6246
|
var format_1 = require_format();
|
|
@@ -6249,9 +6249,9 @@ var require_format2 = __commonJS({
|
|
|
6249
6249
|
}
|
|
6250
6250
|
});
|
|
6251
6251
|
|
|
6252
|
-
//
|
|
6252
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6253
6253
|
var require_metadata = __commonJS({
|
|
6254
|
-
"
|
|
6254
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6255
6255
|
"use strict";
|
|
6256
6256
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6257
6257
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -6272,9 +6272,9 @@ var require_metadata = __commonJS({
|
|
|
6272
6272
|
}
|
|
6273
6273
|
});
|
|
6274
6274
|
|
|
6275
|
-
//
|
|
6275
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6276
6276
|
var require_draft7 = __commonJS({
|
|
6277
|
-
"
|
|
6277
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6278
6278
|
"use strict";
|
|
6279
6279
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6280
6280
|
var core_1 = require_core2();
|
|
@@ -6294,9 +6294,9 @@ var require_draft7 = __commonJS({
|
|
|
6294
6294
|
}
|
|
6295
6295
|
});
|
|
6296
6296
|
|
|
6297
|
-
//
|
|
6297
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6298
6298
|
var require_types = __commonJS({
|
|
6299
|
-
"
|
|
6299
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6300
6300
|
"use strict";
|
|
6301
6301
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6302
6302
|
exports.DiscrError = void 0;
|
|
@@ -6308,9 +6308,9 @@ var require_types = __commonJS({
|
|
|
6308
6308
|
}
|
|
6309
6309
|
});
|
|
6310
6310
|
|
|
6311
|
-
//
|
|
6311
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6312
6312
|
var require_discriminator = __commonJS({
|
|
6313
|
-
"
|
|
6313
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6314
6314
|
"use strict";
|
|
6315
6315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6316
6316
|
var codegen_1 = require_codegen();
|
|
@@ -6413,9 +6413,9 @@ var require_discriminator = __commonJS({
|
|
|
6413
6413
|
}
|
|
6414
6414
|
});
|
|
6415
6415
|
|
|
6416
|
-
//
|
|
6416
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6417
6417
|
var require_json_schema_draft_07 = __commonJS({
|
|
6418
|
-
"
|
|
6418
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6419
6419
|
module.exports = {
|
|
6420
6420
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6421
6421
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6570,9 +6570,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6570
6570
|
}
|
|
6571
6571
|
});
|
|
6572
6572
|
|
|
6573
|
-
//
|
|
6573
|
+
// ../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
6574
6574
|
var require_ajv = __commonJS({
|
|
6575
|
-
"
|
|
6575
|
+
"../../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6576
6576
|
"use strict";
|
|
6577
6577
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6578
6578
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -6640,9 +6640,9 @@ var require_ajv = __commonJS({
|
|
|
6640
6640
|
}
|
|
6641
6641
|
});
|
|
6642
6642
|
|
|
6643
|
-
//
|
|
6643
|
+
// ../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
|
|
6644
6644
|
var require_formats = __commonJS({
|
|
6645
|
-
"
|
|
6645
|
+
"../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
6646
6646
|
"use strict";
|
|
6647
6647
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6648
6648
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -6843,9 +6843,9 @@ var require_formats = __commonJS({
|
|
|
6843
6843
|
}
|
|
6844
6844
|
});
|
|
6845
6845
|
|
|
6846
|
-
//
|
|
6846
|
+
// ../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
|
|
6847
6847
|
var require_limit = __commonJS({
|
|
6848
|
-
"
|
|
6848
|
+
"../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
6849
6849
|
"use strict";
|
|
6850
6850
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6851
6851
|
exports.formatLimitDefinition = void 0;
|
|
@@ -6915,9 +6915,9 @@ var require_limit = __commonJS({
|
|
|
6915
6915
|
}
|
|
6916
6916
|
});
|
|
6917
6917
|
|
|
6918
|
-
//
|
|
6918
|
+
// ../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
|
|
6919
6919
|
var require_dist = __commonJS({
|
|
6920
|
-
"
|
|
6920
|
+
"../../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
6921
6921
|
"use strict";
|
|
6922
6922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6923
6923
|
var formats_1 = require_formats();
|
|
@@ -6957,6 +6957,9 @@ var require_dist = __commonJS({
|
|
|
6957
6957
|
}
|
|
6958
6958
|
});
|
|
6959
6959
|
|
|
6960
|
+
// src/build-registry.ts
|
|
6961
|
+
import { isAbsolute as isAbsolute2, resolve as pathResolve3 } from "path";
|
|
6962
|
+
|
|
6960
6963
|
// ../runtime-local/src/local-acp.ts
|
|
6961
6964
|
import { spawn } from "child_process";
|
|
6962
6965
|
var LocalAcpRuntime = class {
|
|
@@ -7009,7 +7012,7 @@ var DockerAcpRuntime = class {
|
|
|
7009
7012
|
|
|
7010
7013
|
// ../core/src/config.ts
|
|
7011
7014
|
import { existsSync } from "fs";
|
|
7012
|
-
import { join as join2 } from "path";
|
|
7015
|
+
import { isAbsolute, join as join2, resolve as pathResolve2 } from "path";
|
|
7013
7016
|
import { parse as parse3 } from "yaml";
|
|
7014
7017
|
|
|
7015
7018
|
// ../acp-client/src/acp-client.ts
|
|
@@ -23251,27 +23254,80 @@ var JsonFileSessionStore = class {
|
|
|
23251
23254
|
|
|
23252
23255
|
// ../acp-client/src/presets.ts
|
|
23253
23256
|
var PRESETS_INTERNAL = {
|
|
23254
|
-
opencode: {
|
|
23257
|
+
opencode: {
|
|
23258
|
+
command: "opencode",
|
|
23259
|
+
args: ["acp"],
|
|
23260
|
+
image: "ghcr.io/zooid-ai/agent-opencode:latest",
|
|
23261
|
+
mounts: (ctx) => [
|
|
23262
|
+
{
|
|
23263
|
+
id: "data",
|
|
23264
|
+
host: `${ctx.daemonHome}/.local/share/opencode`,
|
|
23265
|
+
target: "/root/.local/share/opencode",
|
|
23266
|
+
mode: "rw",
|
|
23267
|
+
create: false
|
|
23268
|
+
},
|
|
23269
|
+
{
|
|
23270
|
+
id: "config",
|
|
23271
|
+
host: `${ctx.daemonHome}/.config/opencode`,
|
|
23272
|
+
target: "/root/.config/opencode",
|
|
23273
|
+
mode: "rw",
|
|
23274
|
+
create: false
|
|
23275
|
+
}
|
|
23276
|
+
]
|
|
23277
|
+
},
|
|
23255
23278
|
cline: { command: "cline", args: ["--acp"] },
|
|
23256
23279
|
kiro: { command: "kiro", args: ["--acp"] },
|
|
23257
23280
|
gemini: { command: "gemini", args: ["--acp"] },
|
|
23258
|
-
claude: {
|
|
23259
|
-
|
|
23281
|
+
claude: {
|
|
23282
|
+
command: "npx",
|
|
23283
|
+
args: ["-y", "@agentclientprotocol/claude-agent-acp"],
|
|
23284
|
+
image: "ghcr.io/zooid-ai/agent-claude-code:latest",
|
|
23285
|
+
mounts: (ctx) => [
|
|
23286
|
+
{
|
|
23287
|
+
id: "home",
|
|
23288
|
+
host: `${ctx.daemonHome}/.claude`,
|
|
23289
|
+
target: "/root/.claude",
|
|
23290
|
+
mode: "rw",
|
|
23291
|
+
create: false
|
|
23292
|
+
}
|
|
23293
|
+
]
|
|
23294
|
+
},
|
|
23295
|
+
codex: {
|
|
23296
|
+
command: "npx",
|
|
23297
|
+
// web_search="live" forces live web fetches instead of codex's cached snippet
|
|
23298
|
+
// index, which doesn't know about recently-launched sites (e.g. zooid.dev).
|
|
23299
|
+
args: ["-y", "@zed-industries/codex-acp", "-c", 'web_search="live"'],
|
|
23300
|
+
image: "ghcr.io/zooid-ai/agent-codex:latest",
|
|
23301
|
+
mounts: (ctx) => [
|
|
23302
|
+
{
|
|
23303
|
+
id: "home",
|
|
23304
|
+
host: `${ctx.daemonHome}/.codex`,
|
|
23305
|
+
target: "/root/.codex",
|
|
23306
|
+
mode: "rw",
|
|
23307
|
+
create: false
|
|
23308
|
+
}
|
|
23309
|
+
]
|
|
23310
|
+
}
|
|
23260
23311
|
};
|
|
23261
23312
|
var PRESETS = Object.freeze(
|
|
23262
23313
|
Object.fromEntries(
|
|
23263
|
-
Object.keys(PRESETS_INTERNAL).map((k) =>
|
|
23264
|
-
k
|
|
23265
|
-
{ command:
|
|
23266
|
-
|
|
23314
|
+
Object.keys(PRESETS_INTERNAL).map((k) => {
|
|
23315
|
+
const e = PRESETS_INTERNAL[k];
|
|
23316
|
+
const copy = { command: e.command, args: [...e.args] };
|
|
23317
|
+
if ("image" in e && e.image) copy.image = e.image;
|
|
23318
|
+
if ("mounts" in e && typeof e.mounts === "function") {
|
|
23319
|
+
copy.mounts = e.mounts;
|
|
23320
|
+
}
|
|
23321
|
+
return [k, copy];
|
|
23322
|
+
})
|
|
23267
23323
|
)
|
|
23268
23324
|
);
|
|
23269
23325
|
function isPreset(name) {
|
|
23270
23326
|
return Object.prototype.hasOwnProperty.call(PRESETS_INTERNAL, name);
|
|
23271
23327
|
}
|
|
23272
|
-
var
|
|
23273
|
-
claude: "--model",
|
|
23274
|
-
codex: "
|
|
23328
|
+
var MODEL_ARGS_PER_PRESET = {
|
|
23329
|
+
claude: (m) => ["--model", m],
|
|
23330
|
+
codex: (m) => ["-c", `model="${m.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`],
|
|
23275
23331
|
opencode: null
|
|
23276
23332
|
};
|
|
23277
23333
|
function resolvePreset(name, opts = {}) {
|
|
@@ -23282,8 +23338,8 @@ function resolvePreset(name, opts = {}) {
|
|
|
23282
23338
|
const entry = PRESETS_INTERNAL[name];
|
|
23283
23339
|
const args = [...entry.args];
|
|
23284
23340
|
if (opts.model !== void 0) {
|
|
23285
|
-
const
|
|
23286
|
-
if (
|
|
23341
|
+
const builder = MODEL_ARGS_PER_PRESET[name];
|
|
23342
|
+
if (builder) args.push(...builder(opts.model));
|
|
23287
23343
|
}
|
|
23288
23344
|
return { command: entry.command, args };
|
|
23289
23345
|
}
|
|
@@ -23394,6 +23450,44 @@ var TurnTracker = class {
|
|
|
23394
23450
|
}
|
|
23395
23451
|
};
|
|
23396
23452
|
|
|
23453
|
+
// ../acp-client/src/errors.ts
|
|
23454
|
+
var PROTOCOL_CODES = /* @__PURE__ */ new Set([-32700, -32600, -32601, -32602]);
|
|
23455
|
+
function classify(err) {
|
|
23456
|
+
if (err instanceof RequestError) {
|
|
23457
|
+
const acp_error = { code: err.code, message: err.message, data: err.data };
|
|
23458
|
+
if (PROTOCOL_CODES.has(err.code)) return { code: "acp_protocol", transient: false, acp_error };
|
|
23459
|
+
if (err.code === -32603) return { code: "internal", transient: false, acp_error };
|
|
23460
|
+
if (err.code === -32002) return { code: "auth_missing", transient: false, acp_error };
|
|
23461
|
+
const m = err.message;
|
|
23462
|
+
if (/^auth(entication)? required$/i.test(m)) {
|
|
23463
|
+
return { code: "auth_missing", transient: false, acp_error };
|
|
23464
|
+
}
|
|
23465
|
+
if (/\b(token|api ?key|credential)\b/i.test(m) && /\b(invalid|expired|revoked)\b/i.test(m)) {
|
|
23466
|
+
return { code: "auth_invalid", transient: false, acp_error };
|
|
23467
|
+
}
|
|
23468
|
+
if (/\brate ?limit\b|\b429\b/i.test(m)) {
|
|
23469
|
+
return { code: "model_rate_limit", transient: true, acp_error };
|
|
23470
|
+
}
|
|
23471
|
+
if (/\b5\d\d\b|\boverloaded\b|\bunavailable\b|\bunknown model\b/i.test(m)) {
|
|
23472
|
+
return { code: "model_unavailable", transient: true, acp_error };
|
|
23473
|
+
}
|
|
23474
|
+
return { code: "internal", transient: false, acp_error };
|
|
23475
|
+
}
|
|
23476
|
+
if (err instanceof Error) {
|
|
23477
|
+
const m = err.message;
|
|
23478
|
+
if (/error while creating mount source path|mkdir .* permission denied/i.test(m)) {
|
|
23479
|
+
return { code: "mount_failed", transient: false };
|
|
23480
|
+
}
|
|
23481
|
+
if (/^image prepull failed/i.test(m)) {
|
|
23482
|
+
return { code: "image_pull_failed", transient: true };
|
|
23483
|
+
}
|
|
23484
|
+
if (/ACP connection closed/i.test(m)) {
|
|
23485
|
+
return { code: "container_exit", transient: true };
|
|
23486
|
+
}
|
|
23487
|
+
}
|
|
23488
|
+
return { code: "internal", transient: false };
|
|
23489
|
+
}
|
|
23490
|
+
|
|
23397
23491
|
// ../acp-client/src/acp-client.ts
|
|
23398
23492
|
var AcpClient = class {
|
|
23399
23493
|
constructor(options) {
|
|
@@ -23421,7 +23515,8 @@ var AcpClient = class {
|
|
|
23421
23515
|
args,
|
|
23422
23516
|
env: this.options.agent.env,
|
|
23423
23517
|
cwd: this.options.agent.cwd,
|
|
23424
|
-
image: this.options.agent.image
|
|
23518
|
+
image: this.options.agent.image,
|
|
23519
|
+
mounts: this.options.agent.mounts
|
|
23425
23520
|
});
|
|
23426
23521
|
this.runtimeChild = child;
|
|
23427
23522
|
if (!child.stdout || !child.stdin) {
|
|
@@ -23545,11 +23640,13 @@ var AcpClient = class {
|
|
|
23545
23640
|
void this.store?.delete(threadId);
|
|
23546
23641
|
}
|
|
23547
23642
|
async prompt(input) {
|
|
23548
|
-
|
|
23549
|
-
|
|
23550
|
-
this.turns?.startTurn({ sessionId, promptText });
|
|
23551
|
-
debugLog(this.options.agent.id, "prompt \u2192", { sessionId, content: input.content });
|
|
23643
|
+
let sessionId = null;
|
|
23644
|
+
let turnId = null;
|
|
23552
23645
|
try {
|
|
23646
|
+
sessionId = await this.ensureSession(input.threadId, input.channelId);
|
|
23647
|
+
const promptText = stringifyPromptForLog(input.content);
|
|
23648
|
+
turnId = this.turns?.startTurn({ sessionId, promptText }) ?? null;
|
|
23649
|
+
debugLog(this.options.agent.id, "prompt \u2192", { sessionId, content: input.content });
|
|
23553
23650
|
const result = await this.connection.prompt({
|
|
23554
23651
|
sessionId,
|
|
23555
23652
|
prompt: input.content
|
|
@@ -23558,7 +23655,19 @@ var AcpClient = class {
|
|
|
23558
23655
|
debugLog(this.options.agent.id, "prompt \u2190", { sessionId, stopReason: result.stopReason });
|
|
23559
23656
|
return { stopReason: result.stopReason };
|
|
23560
23657
|
} catch (err) {
|
|
23561
|
-
|
|
23658
|
+
const c = classify(err);
|
|
23659
|
+
this.options.onTap?.({
|
|
23660
|
+
kind: "error",
|
|
23661
|
+
agentId: this.options.agent.id,
|
|
23662
|
+
sessionId,
|
|
23663
|
+
turnId,
|
|
23664
|
+
code: c.code,
|
|
23665
|
+
message: err instanceof Error ? err.message : String(err),
|
|
23666
|
+
detail: err instanceof Error && err.stack ? err.stack.slice(0, 2e3) : void 0,
|
|
23667
|
+
transient: c.transient,
|
|
23668
|
+
acp_error: c.acp_error
|
|
23669
|
+
});
|
|
23670
|
+
if (sessionId) this.turns?.endTurn({ sessionId, stopReason: "error" });
|
|
23562
23671
|
throw err;
|
|
23563
23672
|
}
|
|
23564
23673
|
}
|
|
@@ -23782,7 +23891,7 @@ function parseApprovalTimeout(name, raw) {
|
|
|
23782
23891
|
}
|
|
23783
23892
|
throw new Error("unreachable");
|
|
23784
23893
|
}
|
|
23785
|
-
function parseAgentContainer(name, raw, processEnv) {
|
|
23894
|
+
function parseAgentContainer(name, raw, processEnv, configDir) {
|
|
23786
23895
|
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
|
|
23787
23896
|
throw new Error(`agents.${name}.container must be a mapping`);
|
|
23788
23897
|
}
|
|
@@ -23810,6 +23919,132 @@ function parseAgentContainer(name, raw, processEnv) {
|
|
|
23810
23919
|
}
|
|
23811
23920
|
out.env = interpolateEnv(stringEnv, processEnv, `agents.${name}.container.env`);
|
|
23812
23921
|
}
|
|
23922
|
+
if (r.mounts !== void 0) {
|
|
23923
|
+
out.mounts = parseMountList(name, r.mounts, processEnv, configDir);
|
|
23924
|
+
}
|
|
23925
|
+
if (r.disable_mounts !== void 0) {
|
|
23926
|
+
out.disable_mounts = parseDisableMounts(name, r.disable_mounts);
|
|
23927
|
+
}
|
|
23928
|
+
return out;
|
|
23929
|
+
}
|
|
23930
|
+
function parseMountList(agentName, raw, processEnv, configDir) {
|
|
23931
|
+
if (!Array.isArray(raw)) {
|
|
23932
|
+
throw new Error(`agents.${agentName}.container.mounts must be an array`);
|
|
23933
|
+
}
|
|
23934
|
+
const out = [];
|
|
23935
|
+
const seenIds = /* @__PURE__ */ new Set();
|
|
23936
|
+
for (let i = 0; i < raw.length; i++) {
|
|
23937
|
+
const entry = raw[i];
|
|
23938
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
23939
|
+
throw new Error(`agents.${agentName}.container.mounts[${i}] must be a mapping`);
|
|
23940
|
+
}
|
|
23941
|
+
const e = entry;
|
|
23942
|
+
if (e.host === void 0) {
|
|
23943
|
+
throw new Error(`agents.${agentName}.container.mounts[${i}].host is required`);
|
|
23944
|
+
}
|
|
23945
|
+
if (e.target === void 0) {
|
|
23946
|
+
throw new Error(`agents.${agentName}.container.mounts[${i}].target is required`);
|
|
23947
|
+
}
|
|
23948
|
+
if (typeof e.host !== "string" || e.host.length === 0) {
|
|
23949
|
+
throw new Error(
|
|
23950
|
+
`agents.${agentName}.container.mounts[${i}].host must be a non-empty string`
|
|
23951
|
+
);
|
|
23952
|
+
}
|
|
23953
|
+
if (typeof e.target !== "string" || e.target.length === 0) {
|
|
23954
|
+
throw new Error(
|
|
23955
|
+
`agents.${agentName}.container.mounts[${i}].target must be a non-empty string`
|
|
23956
|
+
);
|
|
23957
|
+
}
|
|
23958
|
+
const mode = e.mode ?? "rw";
|
|
23959
|
+
if (mode !== "ro" && mode !== "rw") {
|
|
23960
|
+
throw new Error(
|
|
23961
|
+
`agents.${agentName}.container.mounts[${i}].mode must be "ro" or "rw" (got ${JSON.stringify(e.mode)})`
|
|
23962
|
+
);
|
|
23963
|
+
}
|
|
23964
|
+
let id;
|
|
23965
|
+
if (e.id !== void 0) {
|
|
23966
|
+
if (typeof e.id !== "string" || e.id.length === 0) {
|
|
23967
|
+
throw new Error(
|
|
23968
|
+
`agents.${agentName}.container.mounts[${i}].id must be a non-empty string`
|
|
23969
|
+
);
|
|
23970
|
+
}
|
|
23971
|
+
if (e.id === "workspace") {
|
|
23972
|
+
throw new Error(
|
|
23973
|
+
`agents.${agentName}.container.mounts[${i}].id: "workspace" is a reserved id (set by the workspace auto-mount). Use a different id or rely on disable_mounts to subtract.`
|
|
23974
|
+
);
|
|
23975
|
+
}
|
|
23976
|
+
if (seenIds.has(e.id)) {
|
|
23977
|
+
throw new Error(
|
|
23978
|
+
`agents.${agentName}.container.mounts: duplicate id "${e.id}"`
|
|
23979
|
+
);
|
|
23980
|
+
}
|
|
23981
|
+
seenIds.add(e.id);
|
|
23982
|
+
id = e.id;
|
|
23983
|
+
}
|
|
23984
|
+
let create;
|
|
23985
|
+
if (e.create !== void 0) {
|
|
23986
|
+
if (typeof e.create !== "boolean") {
|
|
23987
|
+
throw new Error(
|
|
23988
|
+
`agents.${agentName}.container.mounts[${i}].create must be a boolean`
|
|
23989
|
+
);
|
|
23990
|
+
}
|
|
23991
|
+
create = e.create;
|
|
23992
|
+
}
|
|
23993
|
+
const host = resolveHostPath(
|
|
23994
|
+
agentName,
|
|
23995
|
+
i,
|
|
23996
|
+
interpolateString(e.host, processEnv),
|
|
23997
|
+
configDir
|
|
23998
|
+
);
|
|
23999
|
+
const target = interpolateString(e.target, processEnv);
|
|
24000
|
+
const m = { host, target, mode };
|
|
24001
|
+
if (id !== void 0) m.id = id;
|
|
24002
|
+
if (create !== void 0) m.create = create;
|
|
24003
|
+
out.push(m);
|
|
24004
|
+
}
|
|
24005
|
+
return out;
|
|
24006
|
+
}
|
|
24007
|
+
function resolveHostPath(agentName, index, host, configDir) {
|
|
24008
|
+
if (host.startsWith("~/")) {
|
|
24009
|
+
const home = process.env.HOME;
|
|
24010
|
+
if (!home) {
|
|
24011
|
+
throw new Error(
|
|
24012
|
+
`agents.${agentName}.container.mounts[${index}].host: cannot expand ~ \u2014 $HOME is not set`
|
|
24013
|
+
);
|
|
24014
|
+
}
|
|
24015
|
+
return `${home}/${host.slice(2)}`;
|
|
24016
|
+
}
|
|
24017
|
+
if (host === "~") {
|
|
24018
|
+
const home = process.env.HOME;
|
|
24019
|
+
if (!home) {
|
|
24020
|
+
throw new Error(
|
|
24021
|
+
`agents.${agentName}.container.mounts[${index}].host: cannot expand ~ \u2014 $HOME is not set`
|
|
24022
|
+
);
|
|
24023
|
+
}
|
|
24024
|
+
return home;
|
|
24025
|
+
}
|
|
24026
|
+
if (isAbsolute(host)) return host;
|
|
24027
|
+
if (!configDir) {
|
|
24028
|
+
throw new Error(
|
|
24029
|
+
`agents.${agentName}.container.mounts[${index}]: relative host path "${host}" requires configDir (zooid.yaml directory) \u2014 pass it via loadZooidConfig(yaml, { configDir })`
|
|
24030
|
+
);
|
|
24031
|
+
}
|
|
24032
|
+
return pathResolve2(configDir, host);
|
|
24033
|
+
}
|
|
24034
|
+
function parseDisableMounts(agentName, raw) {
|
|
24035
|
+
if (!Array.isArray(raw)) {
|
|
24036
|
+
throw new Error(`agents.${agentName}.container.disable_mounts must be an array of strings`);
|
|
24037
|
+
}
|
|
24038
|
+
const out = [];
|
|
24039
|
+
for (let i = 0; i < raw.length; i++) {
|
|
24040
|
+
const v = raw[i];
|
|
24041
|
+
if (typeof v !== "string" || v.length === 0) {
|
|
24042
|
+
throw new Error(
|
|
24043
|
+
`agents.${agentName}.container.disable_mounts[${i}] must be a non-empty string`
|
|
24044
|
+
);
|
|
24045
|
+
}
|
|
24046
|
+
out.push(v);
|
|
24047
|
+
}
|
|
23813
24048
|
return out;
|
|
23814
24049
|
}
|
|
23815
24050
|
function parseZooidContainer(raw) {
|
|
@@ -24059,7 +24294,7 @@ function parseTransportBinding(name, entry, transports) {
|
|
|
24059
24294
|
}
|
|
24060
24295
|
return { http: { transport: refName } };
|
|
24061
24296
|
}
|
|
24062
|
-
function parseAgents(raw, runtime, transports, daemonHooks, processEnv) {
|
|
24297
|
+
function parseAgents(raw, runtime, transports, daemonHooks, processEnv, configDir) {
|
|
24063
24298
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
24064
24299
|
throw new Error("agents: must be a mapping");
|
|
24065
24300
|
}
|
|
@@ -24136,11 +24371,18 @@ See [ZOD043].`
|
|
|
24136
24371
|
let containerBlock;
|
|
24137
24372
|
if (entry.container !== void 0 && entry.container !== null) {
|
|
24138
24373
|
if (runtime === "local") {
|
|
24139
|
-
|
|
24140
|
-
`agents.${name}.container
|
|
24141
|
-
|
|
24374
|
+
if (typeof entry.container !== "object" || entry.container === null || Array.isArray(entry.container)) {
|
|
24375
|
+
throw new Error(`agents.${name}.container must be a mapping`);
|
|
24376
|
+
}
|
|
24377
|
+
const c = entry.container;
|
|
24378
|
+
const disallowed = Object.keys(c).filter((k) => k !== "mounts" && k !== "disable_mounts");
|
|
24379
|
+
if (disallowed.length > 0) {
|
|
24380
|
+
throw new Error(
|
|
24381
|
+
`agents.${name}.container.${disallowed[0]} is only valid when runtime is 'docker' or 'podman'. runtime: local spawns agents as host child processes \u2014 there is no container, so 'image' is inert and 'env' would silently lie (the agent inherits the daemon's full process.env regardless). 'mounts' and 'disable_mounts' are accepted under runtime: local but ignored at compose time.`
|
|
24382
|
+
);
|
|
24383
|
+
}
|
|
24142
24384
|
}
|
|
24143
|
-
containerBlock = parseAgentContainer(name, entry.container, processEnv);
|
|
24385
|
+
containerBlock = parseAgentContainer(name, entry.container, processEnv, configDir);
|
|
24144
24386
|
}
|
|
24145
24387
|
const binding = parseTransportBinding(name, entry, transports);
|
|
24146
24388
|
const agentCfg = {
|
|
@@ -24173,7 +24415,7 @@ function zooidHooks(raw) {
|
|
|
24173
24415
|
}
|
|
24174
24416
|
return out;
|
|
24175
24417
|
}
|
|
24176
|
-
function loadZooidConfig(yamlText) {
|
|
24418
|
+
function loadZooidConfig(yamlText, opts = {}) {
|
|
24177
24419
|
const raw = parse3(yamlText) ?? {};
|
|
24178
24420
|
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
|
|
24179
24421
|
throw new Error("zooid.yaml must be a YAML object");
|
|
@@ -24206,7 +24448,7 @@ function loadZooidConfig(yamlText) {
|
|
|
24206
24448
|
const processEnv = process.env;
|
|
24207
24449
|
const transports = parseTransports(r.transports, processEnv);
|
|
24208
24450
|
const hooks = zooidHooks(r);
|
|
24209
|
-
const agents = parseAgents(r.agents, runtime, transports, hooks, processEnv);
|
|
24451
|
+
const agents = parseAgents(r.agents, runtime, transports, hooks, processEnv, opts.configDir);
|
|
24210
24452
|
const cfg = {
|
|
24211
24453
|
runtime,
|
|
24212
24454
|
transports,
|
|
@@ -24284,6 +24526,7 @@ function mergeCliFlags(base, flags) {
|
|
|
24284
24526
|
}
|
|
24285
24527
|
|
|
24286
24528
|
// ../core/src/acp-registry.ts
|
|
24529
|
+
import { mkdirSync } from "fs";
|
|
24287
24530
|
import { join as join3 } from "path";
|
|
24288
24531
|
var AcpAgentRegistry = class {
|
|
24289
24532
|
opts;
|
|
@@ -24322,6 +24565,15 @@ var AcpAgentRegistry = class {
|
|
|
24322
24565
|
resolveSpawnImage(name) {
|
|
24323
24566
|
return this.opts.image?.[name];
|
|
24324
24567
|
}
|
|
24568
|
+
resolveSpawnMounts(name) {
|
|
24569
|
+
return this.opts.mounts?.[name] ?? [];
|
|
24570
|
+
}
|
|
24571
|
+
resolveSpawnCwd(name) {
|
|
24572
|
+
return this.opts.cwd?.[name] ?? this.opts.agents[name]?.workdir ?? process.cwd();
|
|
24573
|
+
}
|
|
24574
|
+
agentNames() {
|
|
24575
|
+
return Object.keys(this.opts.agents);
|
|
24576
|
+
}
|
|
24325
24577
|
getApprovalTimeoutMs(name) {
|
|
24326
24578
|
return this.opts.agents[name]?.approval_timeout_ms ?? 0;
|
|
24327
24579
|
}
|
|
@@ -24363,14 +24615,18 @@ var AcpAgentRegistry = class {
|
|
|
24363
24615
|
const cfg = this.opts.agents[name];
|
|
24364
24616
|
if (!cfg.acp) throw new Error(`agents.${name}: missing acp block`);
|
|
24365
24617
|
const spawn4 = resolveAcpAgentSpec(cfg.acp);
|
|
24618
|
+
for (const dir of this.opts.mkdirOnSpawn?.[name] ?? []) {
|
|
24619
|
+
mkdirSync(dir, { recursive: true });
|
|
24620
|
+
}
|
|
24366
24621
|
const client = new AcpClient({
|
|
24367
24622
|
agent: {
|
|
24368
24623
|
id: name,
|
|
24369
24624
|
command: spawn4.command,
|
|
24370
24625
|
args: spawn4.args,
|
|
24371
24626
|
env: this.opts.env?.[name],
|
|
24372
|
-
cwd:
|
|
24373
|
-
image: this.opts.image?.[name]
|
|
24627
|
+
cwd: this.resolveSpawnCwd(name),
|
|
24628
|
+
image: this.opts.image?.[name],
|
|
24629
|
+
mounts: this.resolveSpawnMounts(name)
|
|
24374
24630
|
},
|
|
24375
24631
|
agentDataDir: this.opts.agentsDir ? join3(this.opts.agentsDir, name) : void 0,
|
|
24376
24632
|
runtime: this.opts.runtime,
|
|
@@ -25086,6 +25342,30 @@ function toPlanBody(evt) {
|
|
|
25086
25342
|
entries: evt.entries
|
|
25087
25343
|
};
|
|
25088
25344
|
}
|
|
25345
|
+
var RECOVERY_URLS = {
|
|
25346
|
+
auth_missing: "https://zooid.dev/docs/guides/run-in-container#authentication-that-carries-over",
|
|
25347
|
+
auth_invalid: "https://zooid.dev/docs/guides/run-in-container#authentication-that-carries-over",
|
|
25348
|
+
mount_failed: "https://zooid.dev/docs/guides/run-in-container#what-you-get-for-free",
|
|
25349
|
+
image_pull_failed: "https://zooid.dev/docs/guides/run-in-container#skipping-the-image-prepull"
|
|
25350
|
+
};
|
|
25351
|
+
function toErrorBody(evt, threadRoot) {
|
|
25352
|
+
const msg = evt.message.slice(0, 250);
|
|
25353
|
+
const out = {
|
|
25354
|
+
msgtype: "m.notice",
|
|
25355
|
+
body: `\u26A0 [${evt.code}] ${msg}`,
|
|
25356
|
+
code: evt.code,
|
|
25357
|
+
message: msg,
|
|
25358
|
+
transient: evt.transient,
|
|
25359
|
+
"m.relates_to": { rel_type: "m.thread", event_id: threadRoot }
|
|
25360
|
+
};
|
|
25361
|
+
if (evt.sessionId) out.session_id = evt.sessionId;
|
|
25362
|
+
if (evt.turnId) out.turn_id = evt.turnId;
|
|
25363
|
+
if (evt.detail) out.detail = evt.detail.slice(0, 2e3);
|
|
25364
|
+
if (evt.acp_error) out.acp_error = evt.acp_error;
|
|
25365
|
+
const recovery = RECOVERY_URLS[evt.code];
|
|
25366
|
+
if (recovery) out.recovery = recovery;
|
|
25367
|
+
return out;
|
|
25368
|
+
}
|
|
25089
25369
|
|
|
25090
25370
|
// ../transport-matrix/src/markdown-to-matrix-html.ts
|
|
25091
25371
|
import { marked } from "marked";
|
|
@@ -25181,7 +25461,9 @@ function createMatrixTransport(opts) {
|
|
|
25181
25461
|
if (event.type === "agent_message_chunk") {
|
|
25182
25462
|
const block = event.content;
|
|
25183
25463
|
if (block.type === "text" && typeof block.text === "string") {
|
|
25184
|
-
|
|
25464
|
+
const current = buffers.get(event.sessionId) ?? "";
|
|
25465
|
+
const prefix = block.text === "" && current.length > 0 ? "\n\n" : "";
|
|
25466
|
+
buffers.set(event.sessionId, current + prefix + block.text);
|
|
25185
25467
|
} else {
|
|
25186
25468
|
console.warn(`[matrix:${name}] dropped chunk block type=${block.type}`, block);
|
|
25187
25469
|
}
|
|
@@ -25369,6 +25651,29 @@ function createMatrixTransport(opts) {
|
|
|
25369
25651
|
if (st.participants.at(-1) !== a.name) st.participants.push(a.name);
|
|
25370
25652
|
}).catch((err) => {
|
|
25371
25653
|
console.error(`[matrix] runTurn failed for ${a.name}:`, err);
|
|
25654
|
+
const c2 = classify(err);
|
|
25655
|
+
const threadRoot = inboundThreadRoot2(evt) ?? evt.event_id;
|
|
25656
|
+
if (!threadRoot || !evt.room_id) return;
|
|
25657
|
+
const body2 = toErrorBody(
|
|
25658
|
+
{
|
|
25659
|
+
kind: "error",
|
|
25660
|
+
agentId: a.name,
|
|
25661
|
+
sessionId: null,
|
|
25662
|
+
turnId: null,
|
|
25663
|
+
code: c2.code,
|
|
25664
|
+
message: err instanceof Error ? err.message : String(err),
|
|
25665
|
+
detail: err instanceof Error && err.stack ? err.stack.slice(0, 2e3) : void 0,
|
|
25666
|
+
transient: c2.transient,
|
|
25667
|
+
acp_error: c2.acp_error
|
|
25668
|
+
},
|
|
25669
|
+
threadRoot
|
|
25670
|
+
);
|
|
25671
|
+
void client.sendCustomEvent({
|
|
25672
|
+
roomId: evt.room_id,
|
|
25673
|
+
asUserId: a.userId,
|
|
25674
|
+
eventType: "eco.zoon.error",
|
|
25675
|
+
content: body2
|
|
25676
|
+
}).catch((e) => console.warn(`[matrix:${a.name}] eco.zoon.error send failed:`, e));
|
|
25372
25677
|
});
|
|
25373
25678
|
}
|
|
25374
25679
|
}
|
|
@@ -25662,7 +25967,7 @@ async function handleLine(line, socket, registry3) {
|
|
|
25662
25967
|
}
|
|
25663
25968
|
}
|
|
25664
25969
|
|
|
25665
|
-
//
|
|
25970
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js
|
|
25666
25971
|
var NEVER2 = Object.freeze({
|
|
25667
25972
|
status: "aborted"
|
|
25668
25973
|
});
|
|
@@ -25721,7 +26026,7 @@ function config2(newConfig) {
|
|
|
25721
26026
|
return globalConfig2;
|
|
25722
26027
|
}
|
|
25723
26028
|
|
|
25724
|
-
//
|
|
26029
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js
|
|
25725
26030
|
var util_exports2 = {};
|
|
25726
26031
|
__export(util_exports2, {
|
|
25727
26032
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES2,
|
|
@@ -26242,7 +26547,7 @@ var Class2 = class {
|
|
|
26242
26547
|
}
|
|
26243
26548
|
};
|
|
26244
26549
|
|
|
26245
|
-
//
|
|
26550
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js
|
|
26246
26551
|
var initializer3 = (inst, def) => {
|
|
26247
26552
|
inst.name = "$ZodError";
|
|
26248
26553
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -26317,7 +26622,7 @@ function formatError2(error49, _mapper) {
|
|
|
26317
26622
|
return fieldErrors;
|
|
26318
26623
|
}
|
|
26319
26624
|
|
|
26320
|
-
//
|
|
26625
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js
|
|
26321
26626
|
var _parse2 = (_Err) => (schema, value, _ctx, _params) => {
|
|
26322
26627
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
26323
26628
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -26367,7 +26672,7 @@ var _safeParseAsync2 = (_Err) => async (schema, value, _ctx) => {
|
|
|
26367
26672
|
};
|
|
26368
26673
|
var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync2($ZodRealError2);
|
|
26369
26674
|
|
|
26370
|
-
//
|
|
26675
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.js
|
|
26371
26676
|
var cuid4 = /^[cC][^\s-]{8,}$/;
|
|
26372
26677
|
var cuid23 = /^[0-9a-z]+$/;
|
|
26373
26678
|
var ulid3 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -26425,7 +26730,7 @@ var _null4 = /null/i;
|
|
|
26425
26730
|
var lowercase2 = /^[^A-Z]*$/;
|
|
26426
26731
|
var uppercase2 = /^[^a-z]*$/;
|
|
26427
26732
|
|
|
26428
|
-
//
|
|
26733
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js
|
|
26429
26734
|
var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
|
|
26430
26735
|
var _a2;
|
|
26431
26736
|
inst._zod ?? (inst._zod = {});
|
|
@@ -26810,7 +27115,7 @@ var $ZodCheckOverwrite2 = /* @__PURE__ */ $constructor2("$ZodCheckOverwrite", (i
|
|
|
26810
27115
|
};
|
|
26811
27116
|
});
|
|
26812
27117
|
|
|
26813
|
-
//
|
|
27118
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.js
|
|
26814
27119
|
var Doc2 = class {
|
|
26815
27120
|
constructor(args = []) {
|
|
26816
27121
|
this.content = [];
|
|
@@ -26846,14 +27151,14 @@ var Doc2 = class {
|
|
|
26846
27151
|
}
|
|
26847
27152
|
};
|
|
26848
27153
|
|
|
26849
|
-
//
|
|
27154
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.js
|
|
26850
27155
|
var version2 = {
|
|
26851
27156
|
major: 4,
|
|
26852
27157
|
minor: 0,
|
|
26853
27158
|
patch: 0
|
|
26854
27159
|
};
|
|
26855
27160
|
|
|
26856
|
-
//
|
|
27161
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js
|
|
26857
27162
|
var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
|
|
26858
27163
|
var _a2;
|
|
26859
27164
|
inst ?? (inst = {});
|
|
@@ -28091,7 +28396,7 @@ function handleRefineResult2(result, payload, input, inst) {
|
|
|
28091
28396
|
}
|
|
28092
28397
|
}
|
|
28093
28398
|
|
|
28094
|
-
//
|
|
28399
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.js
|
|
28095
28400
|
var parsedType2 = (data) => {
|
|
28096
28401
|
const t = typeof data;
|
|
28097
28402
|
switch (t) {
|
|
@@ -28209,7 +28514,7 @@ function en_default2() {
|
|
|
28209
28514
|
};
|
|
28210
28515
|
}
|
|
28211
28516
|
|
|
28212
|
-
//
|
|
28517
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js
|
|
28213
28518
|
var $ZodRegistry2 = class {
|
|
28214
28519
|
constructor() {
|
|
28215
28520
|
this._map = /* @__PURE__ */ new Map();
|
|
@@ -28257,7 +28562,7 @@ function registry2() {
|
|
|
28257
28562
|
}
|
|
28258
28563
|
var globalRegistry2 = /* @__PURE__ */ registry2();
|
|
28259
28564
|
|
|
28260
|
-
//
|
|
28565
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.js
|
|
28261
28566
|
function _string2(Class3, params) {
|
|
28262
28567
|
return new Class3({
|
|
28263
28568
|
type: "string",
|
|
@@ -28696,7 +29001,7 @@ function _refine2(Class3, fn, _params) {
|
|
|
28696
29001
|
return schema;
|
|
28697
29002
|
}
|
|
28698
29003
|
|
|
28699
|
-
//
|
|
29004
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/iso.js
|
|
28700
29005
|
var iso_exports2 = {};
|
|
28701
29006
|
__export(iso_exports2, {
|
|
28702
29007
|
ZodISODate: () => ZodISODate2,
|
|
@@ -28737,7 +29042,7 @@ function duration4(params) {
|
|
|
28737
29042
|
return _isoDuration2(ZodISODuration2, params);
|
|
28738
29043
|
}
|
|
28739
29044
|
|
|
28740
|
-
//
|
|
29045
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.js
|
|
28741
29046
|
var initializer4 = (inst, issues) => {
|
|
28742
29047
|
$ZodError2.init(inst, issues);
|
|
28743
29048
|
inst.name = "ZodError";
|
|
@@ -28771,13 +29076,13 @@ var ZodRealError2 = $constructor2("ZodError", initializer4, {
|
|
|
28771
29076
|
Parent: Error
|
|
28772
29077
|
});
|
|
28773
29078
|
|
|
28774
|
-
//
|
|
29079
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js
|
|
28775
29080
|
var parse4 = /* @__PURE__ */ _parse2(ZodRealError2);
|
|
28776
29081
|
var parseAsync3 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
|
|
28777
29082
|
var safeParse4 = /* @__PURE__ */ _safeParse2(ZodRealError2);
|
|
28778
29083
|
var safeParseAsync4 = /* @__PURE__ */ _safeParseAsync2(ZodRealError2);
|
|
28779
29084
|
|
|
28780
|
-
//
|
|
29085
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.js
|
|
28781
29086
|
var ZodType2 = /* @__PURE__ */ $constructor2("ZodType", (inst, def) => {
|
|
28782
29087
|
$ZodType2.init(inst, def);
|
|
28783
29088
|
inst.def = def;
|
|
@@ -29388,10 +29693,10 @@ function preprocess2(fn, schema) {
|
|
|
29388
29693
|
return pipe2(transform2(fn), schema);
|
|
29389
29694
|
}
|
|
29390
29695
|
|
|
29391
|
-
//
|
|
29696
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
29392
29697
|
config2(en_default2());
|
|
29393
29698
|
|
|
29394
|
-
//
|
|
29699
|
+
// ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
29395
29700
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
29396
29701
|
var JSONRPC_VERSION = "2.0";
|
|
29397
29702
|
var AssertObjectSchema = custom2((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
@@ -30873,13 +31178,13 @@ var ServerResultSchema = union2([
|
|
|
30873
31178
|
CreateTaskResultSchema
|
|
30874
31179
|
]);
|
|
30875
31180
|
|
|
30876
|
-
//
|
|
31181
|
+
// ../../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
30877
31182
|
var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
30878
31183
|
|
|
30879
|
-
//
|
|
31184
|
+
// ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
30880
31185
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
30881
31186
|
|
|
30882
|
-
//
|
|
31187
|
+
// ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
30883
31188
|
var McpZodTypeKind;
|
|
30884
31189
|
(function(McpZodTypeKind2) {
|
|
30885
31190
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -30906,18 +31211,144 @@ function buildContextServerSpec(opts) {
|
|
|
30906
31211
|
}
|
|
30907
31212
|
|
|
30908
31213
|
// src/build-registry.ts
|
|
31214
|
+
var CONTAINER_WORKDIR = "/workspace";
|
|
31215
|
+
function presetOf(agent) {
|
|
31216
|
+
const spec = agent.acp;
|
|
31217
|
+
if (spec?.preset && spec.preset in PRESETS) return spec.preset;
|
|
31218
|
+
return void 0;
|
|
31219
|
+
}
|
|
31220
|
+
function resolveAgentImage(agent, cfg) {
|
|
31221
|
+
if (agent.container?.image) return { image: agent.container.image, source: "agent" };
|
|
31222
|
+
if (cfg.container?.image) return { image: cfg.container.image, source: "workforce" };
|
|
31223
|
+
const preset = presetOf(agent);
|
|
31224
|
+
const presetImage = preset ? PRESETS[preset]?.image : void 0;
|
|
31225
|
+
if (presetImage && preset) return { image: presetImage, source: `preset:${preset}` };
|
|
31226
|
+
return { image: void 0, source: "unresolved" };
|
|
31227
|
+
}
|
|
31228
|
+
function composeAgentMounts(name, agent, cfg, opts) {
|
|
31229
|
+
if (cfg.runtime === "local") {
|
|
31230
|
+
return { mounts: [], mkdirs: [], cwd: agent.workdir };
|
|
31231
|
+
}
|
|
31232
|
+
const disabled = new Set(agent.container?.disable_mounts ?? []);
|
|
31233
|
+
const knownIds = /* @__PURE__ */ new Set(["workspace"]);
|
|
31234
|
+
const composed = [];
|
|
31235
|
+
let workspaceActive = false;
|
|
31236
|
+
if (!disabled.has("workspace")) {
|
|
31237
|
+
let host = agent.workdir;
|
|
31238
|
+
if (isAbsolute2(host)) {
|
|
31239
|
+
composed.push({
|
|
31240
|
+
id: "workspace",
|
|
31241
|
+
host,
|
|
31242
|
+
target: CONTAINER_WORKDIR,
|
|
31243
|
+
mode: "rw",
|
|
31244
|
+
create: true
|
|
31245
|
+
});
|
|
31246
|
+
workspaceActive = true;
|
|
31247
|
+
} else if (opts.configDir) {
|
|
31248
|
+
host = pathResolve3(opts.configDir, host);
|
|
31249
|
+
composed.push({
|
|
31250
|
+
id: "workspace",
|
|
31251
|
+
host,
|
|
31252
|
+
target: CONTAINER_WORKDIR,
|
|
31253
|
+
mode: "rw",
|
|
31254
|
+
create: true
|
|
31255
|
+
});
|
|
31256
|
+
workspaceActive = true;
|
|
31257
|
+
}
|
|
31258
|
+
}
|
|
31259
|
+
const preset = presetOf(agent);
|
|
31260
|
+
if (preset && PRESETS[preset]?.mounts) {
|
|
31261
|
+
const dataDir = opts.dataDir ?? process.cwd();
|
|
31262
|
+
const ctx = {
|
|
31263
|
+
agentName: name,
|
|
31264
|
+
agentDataDir: pathResolve3(dataDir, "agents", name),
|
|
31265
|
+
containerWorkdir: CONTAINER_WORKDIR,
|
|
31266
|
+
daemonHome: opts.daemonHome ?? process.env.HOME ?? ""
|
|
31267
|
+
};
|
|
31268
|
+
const presetMounts = PRESETS[preset].mounts(ctx);
|
|
31269
|
+
for (const m of presetMounts) {
|
|
31270
|
+
knownIds.add(m.id);
|
|
31271
|
+
if (!disabled.has(m.id)) composed.push(m);
|
|
31272
|
+
}
|
|
31273
|
+
}
|
|
31274
|
+
for (const id of disabled) {
|
|
31275
|
+
if (!knownIds.has(id)) {
|
|
31276
|
+
throw new Error(
|
|
31277
|
+
`agents.${name}.container.disable_mounts: unknown id "${id}". Known ids for this agent: ${[...knownIds].sort().join(", ")}`
|
|
31278
|
+
);
|
|
31279
|
+
}
|
|
31280
|
+
}
|
|
31281
|
+
const userMounts = agent.container?.mounts ?? [];
|
|
31282
|
+
let userIdx = 0;
|
|
31283
|
+
for (const m of userMounts) {
|
|
31284
|
+
const id = m.id ?? `user-${userIdx}`;
|
|
31285
|
+
userIdx++;
|
|
31286
|
+
const out = {
|
|
31287
|
+
id,
|
|
31288
|
+
host: m.host,
|
|
31289
|
+
target: m.target,
|
|
31290
|
+
mode: m.mode
|
|
31291
|
+
};
|
|
31292
|
+
if (m.create !== void 0) out.create = m.create;
|
|
31293
|
+
composed.push(out);
|
|
31294
|
+
}
|
|
31295
|
+
const mkdirs = composed.filter((m) => m.create).map((m) => m.host);
|
|
31296
|
+
return {
|
|
31297
|
+
mounts: composed,
|
|
31298
|
+
mkdirs,
|
|
31299
|
+
cwd: workspaceActive ? CONTAINER_WORKDIR : agent.workdir
|
|
31300
|
+
};
|
|
31301
|
+
}
|
|
30909
31302
|
function buildAcpRegistry(cfg, opts = {}) {
|
|
30910
31303
|
for (const [name, agent] of Object.entries(cfg.agents)) {
|
|
30911
31304
|
if (!agent.acp) {
|
|
30912
31305
|
throw new Error(`agents.${name}: missing acp block (parser should have caught this)`);
|
|
30913
31306
|
}
|
|
30914
31307
|
}
|
|
31308
|
+
if (cfg.runtime !== "local") {
|
|
31309
|
+
const missing = [];
|
|
31310
|
+
for (const [name, agent] of Object.entries(cfg.agents)) {
|
|
31311
|
+
const { image: image2 } = resolveAgentImage(agent, cfg);
|
|
31312
|
+
if (!image2) {
|
|
31313
|
+
missing.push({ name, preset: presetOf(agent) });
|
|
31314
|
+
}
|
|
31315
|
+
}
|
|
31316
|
+
if (missing.length > 0) {
|
|
31317
|
+
const lines = missing.map(
|
|
31318
|
+
({ name, preset }) => ` - ${name}${preset ? ` (preset: ${preset})` : ""} \u2014 no preset-default image`
|
|
31319
|
+
);
|
|
31320
|
+
throw new Error(
|
|
31321
|
+
`runtime: ${cfg.runtime} requires a container image for each agent. Unresolved:
|
|
31322
|
+
` + lines.join("\n") + `
|
|
31323
|
+
Set agents.<name>.container.image, top-level container.image, or use a preset that ships a default image (claude, codex, opencode).`
|
|
31324
|
+
);
|
|
31325
|
+
}
|
|
31326
|
+
}
|
|
30915
31327
|
const runtime = opts.runtime ?? defaultRuntimeFor(cfg);
|
|
30916
31328
|
const env = {};
|
|
30917
31329
|
const image = {};
|
|
31330
|
+
const mountsByAgent = {};
|
|
31331
|
+
const mkdirByAgent = {};
|
|
31332
|
+
const cwdByAgent = {};
|
|
31333
|
+
const log = opts.log ?? ((line) => console.log(line));
|
|
30918
31334
|
for (const [name, agent] of Object.entries(cfg.agents)) {
|
|
30919
31335
|
env[name] = agent.container?.env ?? {};
|
|
30920
|
-
image
|
|
31336
|
+
const { image: resolvedImage, source } = resolveAgentImage(agent, cfg);
|
|
31337
|
+
image[name] = resolvedImage;
|
|
31338
|
+
const composed = composeAgentMounts(name, agent, cfg, opts);
|
|
31339
|
+
mountsByAgent[name] = composed.mounts.map((m) => ({
|
|
31340
|
+
path: m.host,
|
|
31341
|
+
target: m.target,
|
|
31342
|
+
mode: m.mode
|
|
31343
|
+
}));
|
|
31344
|
+
mkdirByAgent[name] = composed.mkdirs;
|
|
31345
|
+
cwdByAgent[name] = composed.cwd;
|
|
31346
|
+
if (resolvedImage && cfg.runtime !== "local") {
|
|
31347
|
+
const mountSummary = composed.mounts.length === 0 ? "mounts=[]" : `mounts=[${composed.mounts.map((m) => m.id ?? m.target).join(",")}]`;
|
|
31348
|
+
log(
|
|
31349
|
+
`[zooid] agent ${name.padEnd(12)} image=${resolvedImage} source=${source} ${mountSummary}`
|
|
31350
|
+
);
|
|
31351
|
+
}
|
|
30921
31352
|
}
|
|
30922
31353
|
const contextSpawns = buildContextSpawns(cfg, opts);
|
|
30923
31354
|
return new AcpAgentRegistry({
|
|
@@ -30925,6 +31356,9 @@ function buildAcpRegistry(cfg, opts = {}) {
|
|
|
30925
31356
|
agents: cfg.agents,
|
|
30926
31357
|
env,
|
|
30927
31358
|
image,
|
|
31359
|
+
mounts: mountsByAgent,
|
|
31360
|
+
mkdirOnSpawn: mkdirByAgent,
|
|
31361
|
+
cwd: cwdByAgent,
|
|
30928
31362
|
approvals: opts.approvals,
|
|
30929
31363
|
onTap: opts.onTap,
|
|
30930
31364
|
agentsDir: opts.agentsDir,
|
|
@@ -30997,4 +31431,4 @@ export {
|
|
|
30997
31431
|
startDaemonSocketServer,
|
|
30998
31432
|
buildAcpRegistry
|
|
30999
31433
|
};
|
|
31000
|
-
//# sourceMappingURL=chunk-
|
|
31434
|
+
//# sourceMappingURL=chunk-SUPTPSN3.js.map
|