@gluecharm-lab/easyspecs-cli 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/commands.md +2 -0
- package/dist/main.cjs +674 -350
- package/dist/main.cjs.map +3 -3
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -26,9 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
|
|
29
|
-
//
|
|
29
|
+
// scripts/vscode-stub.cjs
|
|
30
30
|
var require_vscode_stub = __commonJS({
|
|
31
|
-
"
|
|
31
|
+
"scripts/vscode-stub.cjs"(exports2, module2) {
|
|
32
32
|
"use strict";
|
|
33
33
|
module2.exports = {
|
|
34
34
|
workspace: {
|
|
@@ -49,9 +49,9 @@ var require_vscode_stub = __commonJS({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
//
|
|
52
|
+
// node_modules/ajv/dist/compile/codegen/code.js
|
|
53
53
|
var require_code = __commonJS({
|
|
54
|
-
"
|
|
54
|
+
"node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
|
|
55
55
|
"use strict";
|
|
56
56
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
57
57
|
exports2.regexpCode = exports2.getEsmExportName = exports2.getProperty = exports2.safeStringify = exports2.stringify = exports2.strConcat = exports2.addCodeArg = exports2.str = exports2._ = exports2.nil = exports2._Code = exports2.Name = exports2.IDENTIFIER = exports2._CodeOrName = void 0;
|
|
@@ -203,9 +203,9 @@ var require_code = __commonJS({
|
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
//
|
|
206
|
+
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
207
207
|
var require_scope = __commonJS({
|
|
208
|
-
"
|
|
208
|
+
"node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
|
|
209
209
|
"use strict";
|
|
210
210
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
211
211
|
exports2.ValueScope = exports2.ValueScopeName = exports2.Scope = exports2.varKinds = exports2.UsedValueState = void 0;
|
|
@@ -348,9 +348,9 @@ var require_scope = __commonJS({
|
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
350
|
|
|
351
|
-
//
|
|
351
|
+
// node_modules/ajv/dist/compile/codegen/index.js
|
|
352
352
|
var require_codegen = __commonJS({
|
|
353
|
-
"
|
|
353
|
+
"node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
|
|
354
354
|
"use strict";
|
|
355
355
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
356
356
|
exports2.or = exports2.and = exports2.not = exports2.CodeGen = exports2.operators = exports2.varKinds = exports2.ValueScopeName = exports2.ValueScope = exports2.Scope = exports2.Name = exports2.regexpCode = exports2.stringify = exports2.getProperty = exports2.nil = exports2.strConcat = exports2.str = exports2._ = void 0;
|
|
@@ -1068,9 +1068,9 @@ var require_codegen = __commonJS({
|
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
1070
|
|
|
1071
|
-
//
|
|
1071
|
+
// node_modules/ajv/dist/compile/util.js
|
|
1072
1072
|
var require_util = __commonJS({
|
|
1073
|
-
"
|
|
1073
|
+
"node_modules/ajv/dist/compile/util.js"(exports2) {
|
|
1074
1074
|
"use strict";
|
|
1075
1075
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1076
1076
|
exports2.checkStrictMode = exports2.getErrorPath = exports2.Type = exports2.useFunc = exports2.setEvaluated = exports2.evaluatedPropsToName = exports2.mergeEvaluated = exports2.eachItem = exports2.unescapeJsonPointer = exports2.escapeJsonPointer = exports2.escapeFragment = exports2.unescapeFragment = exports2.schemaRefOrVal = exports2.schemaHasRulesButRef = exports2.schemaHasRules = exports2.checkUnknownRules = exports2.alwaysValidSchema = exports2.toHash = void 0;
|
|
@@ -1235,9 +1235,9 @@ var require_util = __commonJS({
|
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
1237
|
|
|
1238
|
-
//
|
|
1238
|
+
// node_modules/ajv/dist/compile/names.js
|
|
1239
1239
|
var require_names = __commonJS({
|
|
1240
|
-
"
|
|
1240
|
+
"node_modules/ajv/dist/compile/names.js"(exports2) {
|
|
1241
1241
|
"use strict";
|
|
1242
1242
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1243
1243
|
var codegen_1 = require_codegen();
|
|
@@ -1274,9 +1274,9 @@ var require_names = __commonJS({
|
|
|
1274
1274
|
}
|
|
1275
1275
|
});
|
|
1276
1276
|
|
|
1277
|
-
//
|
|
1277
|
+
// node_modules/ajv/dist/compile/errors.js
|
|
1278
1278
|
var require_errors = __commonJS({
|
|
1279
|
-
"
|
|
1279
|
+
"node_modules/ajv/dist/compile/errors.js"(exports2) {
|
|
1280
1280
|
"use strict";
|
|
1281
1281
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1282
1282
|
exports2.extendErrors = exports2.resetErrorsCount = exports2.reportExtraError = exports2.reportError = exports2.keyword$DataError = exports2.keywordError = void 0;
|
|
@@ -1396,9 +1396,9 @@ var require_errors = __commonJS({
|
|
|
1396
1396
|
}
|
|
1397
1397
|
});
|
|
1398
1398
|
|
|
1399
|
-
//
|
|
1399
|
+
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1400
1400
|
var require_boolSchema = __commonJS({
|
|
1401
|
-
"
|
|
1401
|
+
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
|
|
1402
1402
|
"use strict";
|
|
1403
1403
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1404
1404
|
exports2.boolOrEmptySchema = exports2.topBoolOrEmptySchema = void 0;
|
|
@@ -1447,9 +1447,9 @@ var require_boolSchema = __commonJS({
|
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
1449
|
|
|
1450
|
-
//
|
|
1450
|
+
// node_modules/ajv/dist/compile/rules.js
|
|
1451
1451
|
var require_rules = __commonJS({
|
|
1452
|
-
"
|
|
1452
|
+
"node_modules/ajv/dist/compile/rules.js"(exports2) {
|
|
1453
1453
|
"use strict";
|
|
1454
1454
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1455
1455
|
exports2.getRules = exports2.isJSONType = void 0;
|
|
@@ -1478,9 +1478,9 @@ var require_rules = __commonJS({
|
|
|
1478
1478
|
}
|
|
1479
1479
|
});
|
|
1480
1480
|
|
|
1481
|
-
//
|
|
1481
|
+
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
1482
1482
|
var require_applicability = __commonJS({
|
|
1483
|
-
"
|
|
1483
|
+
"node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
|
|
1484
1484
|
"use strict";
|
|
1485
1485
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1486
1486
|
exports2.shouldUseRule = exports2.shouldUseGroup = exports2.schemaHasRulesForType = void 0;
|
|
@@ -1501,9 +1501,9 @@ var require_applicability = __commonJS({
|
|
|
1501
1501
|
}
|
|
1502
1502
|
});
|
|
1503
1503
|
|
|
1504
|
-
//
|
|
1504
|
+
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
1505
1505
|
var require_dataType = __commonJS({
|
|
1506
|
-
"
|
|
1506
|
+
"node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
|
|
1507
1507
|
"use strict";
|
|
1508
1508
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1509
1509
|
exports2.reportTypeError = exports2.checkDataTypes = exports2.checkDataType = exports2.coerceAndCheckDataType = exports2.getJSONTypes = exports2.getSchemaTypes = exports2.DataType = void 0;
|
|
@@ -1685,9 +1685,9 @@ var require_dataType = __commonJS({
|
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
1687
|
|
|
1688
|
-
//
|
|
1688
|
+
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
1689
1689
|
var require_defaults = __commonJS({
|
|
1690
|
-
"
|
|
1690
|
+
"node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
|
|
1691
1691
|
"use strict";
|
|
1692
1692
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1693
1693
|
exports2.assignDefaults = void 0;
|
|
@@ -1722,9 +1722,9 @@ var require_defaults = __commonJS({
|
|
|
1722
1722
|
}
|
|
1723
1723
|
});
|
|
1724
1724
|
|
|
1725
|
-
//
|
|
1725
|
+
// node_modules/ajv/dist/vocabularies/code.js
|
|
1726
1726
|
var require_code2 = __commonJS({
|
|
1727
|
-
"
|
|
1727
|
+
"node_modules/ajv/dist/vocabularies/code.js"(exports2) {
|
|
1728
1728
|
"use strict";
|
|
1729
1729
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1730
1730
|
exports2.validateUnion = exports2.validateArray = exports2.usePattern = exports2.callValidateCode = exports2.schemaProperties = exports2.allSchemaProperties = exports2.noPropertyInData = exports2.propertyInData = exports2.isOwnProperty = exports2.hasPropFunc = exports2.reportMissingProp = exports2.checkMissingProp = exports2.checkReportMissingProp = void 0;
|
|
@@ -1855,9 +1855,9 @@ var require_code2 = __commonJS({
|
|
|
1855
1855
|
}
|
|
1856
1856
|
});
|
|
1857
1857
|
|
|
1858
|
-
//
|
|
1858
|
+
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
1859
1859
|
var require_keyword = __commonJS({
|
|
1860
|
-
"
|
|
1860
|
+
"node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
|
|
1861
1861
|
"use strict";
|
|
1862
1862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1863
1863
|
exports2.validateKeywordUsage = exports2.validSchemaType = exports2.funcKeywordCode = exports2.macroKeywordCode = void 0;
|
|
@@ -1973,9 +1973,9 @@ var require_keyword = __commonJS({
|
|
|
1973
1973
|
}
|
|
1974
1974
|
});
|
|
1975
1975
|
|
|
1976
|
-
//
|
|
1976
|
+
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
1977
1977
|
var require_subschema = __commonJS({
|
|
1978
|
-
"
|
|
1978
|
+
"node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
|
|
1979
1979
|
"use strict";
|
|
1980
1980
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1981
1981
|
exports2.extendSubschemaMode = exports2.extendSubschemaData = exports2.getSubschema = void 0;
|
|
@@ -2056,9 +2056,9 @@ var require_subschema = __commonJS({
|
|
|
2056
2056
|
}
|
|
2057
2057
|
});
|
|
2058
2058
|
|
|
2059
|
-
//
|
|
2059
|
+
// node_modules/fast-deep-equal/index.js
|
|
2060
2060
|
var require_fast_deep_equal = __commonJS({
|
|
2061
|
-
"
|
|
2061
|
+
"node_modules/fast-deep-equal/index.js"(exports2, module2) {
|
|
2062
2062
|
"use strict";
|
|
2063
2063
|
module2.exports = function equal(a, b) {
|
|
2064
2064
|
if (a === b) return true;
|
|
@@ -2091,9 +2091,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2091
2091
|
}
|
|
2092
2092
|
});
|
|
2093
2093
|
|
|
2094
|
-
//
|
|
2094
|
+
// node_modules/json-schema-traverse/index.js
|
|
2095
2095
|
var require_json_schema_traverse = __commonJS({
|
|
2096
|
-
"
|
|
2096
|
+
"node_modules/json-schema-traverse/index.js"(exports2, module2) {
|
|
2097
2097
|
"use strict";
|
|
2098
2098
|
var traverse = module2.exports = function(schema, opts, cb) {
|
|
2099
2099
|
if (typeof opts == "function") {
|
|
@@ -2179,9 +2179,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2179
2179
|
}
|
|
2180
2180
|
});
|
|
2181
2181
|
|
|
2182
|
-
//
|
|
2182
|
+
// node_modules/ajv/dist/compile/resolve.js
|
|
2183
2183
|
var require_resolve = __commonJS({
|
|
2184
|
-
"
|
|
2184
|
+
"node_modules/ajv/dist/compile/resolve.js"(exports2) {
|
|
2185
2185
|
"use strict";
|
|
2186
2186
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2187
2187
|
exports2.getSchemaRefs = exports2.resolveUrl = exports2.normalizeId = exports2._getFullPath = exports2.getFullPath = exports2.inlineRef = void 0;
|
|
@@ -2335,9 +2335,9 @@ var require_resolve = __commonJS({
|
|
|
2335
2335
|
}
|
|
2336
2336
|
});
|
|
2337
2337
|
|
|
2338
|
-
//
|
|
2338
|
+
// node_modules/ajv/dist/compile/validate/index.js
|
|
2339
2339
|
var require_validate = __commonJS({
|
|
2340
|
-
"
|
|
2340
|
+
"node_modules/ajv/dist/compile/validate/index.js"(exports2) {
|
|
2341
2341
|
"use strict";
|
|
2342
2342
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2343
2343
|
exports2.getData = exports2.KeywordCxt = exports2.validateFunctionCode = void 0;
|
|
@@ -2843,9 +2843,9 @@ var require_validate = __commonJS({
|
|
|
2843
2843
|
}
|
|
2844
2844
|
});
|
|
2845
2845
|
|
|
2846
|
-
//
|
|
2846
|
+
// node_modules/ajv/dist/runtime/validation_error.js
|
|
2847
2847
|
var require_validation_error = __commonJS({
|
|
2848
|
-
"
|
|
2848
|
+
"node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
|
|
2849
2849
|
"use strict";
|
|
2850
2850
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2851
2851
|
var ValidationError = class extends Error {
|
|
@@ -2859,9 +2859,9 @@ var require_validation_error = __commonJS({
|
|
|
2859
2859
|
}
|
|
2860
2860
|
});
|
|
2861
2861
|
|
|
2862
|
-
//
|
|
2862
|
+
// node_modules/ajv/dist/compile/ref_error.js
|
|
2863
2863
|
var require_ref_error = __commonJS({
|
|
2864
|
-
"
|
|
2864
|
+
"node_modules/ajv/dist/compile/ref_error.js"(exports2) {
|
|
2865
2865
|
"use strict";
|
|
2866
2866
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2867
2867
|
var resolve_1 = require_resolve();
|
|
@@ -2876,9 +2876,9 @@ var require_ref_error = __commonJS({
|
|
|
2876
2876
|
}
|
|
2877
2877
|
});
|
|
2878
2878
|
|
|
2879
|
-
//
|
|
2879
|
+
// node_modules/ajv/dist/compile/index.js
|
|
2880
2880
|
var require_compile = __commonJS({
|
|
2881
|
-
"
|
|
2881
|
+
"node_modules/ajv/dist/compile/index.js"(exports2) {
|
|
2882
2882
|
"use strict";
|
|
2883
2883
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2884
2884
|
exports2.resolveSchema = exports2.getCompilingSchema = exports2.resolveRef = exports2.compileSchema = exports2.SchemaEnv = void 0;
|
|
@@ -3100,9 +3100,9 @@ var require_compile = __commonJS({
|
|
|
3100
3100
|
}
|
|
3101
3101
|
});
|
|
3102
3102
|
|
|
3103
|
-
//
|
|
3103
|
+
// node_modules/ajv/dist/refs/data.json
|
|
3104
3104
|
var require_data = __commonJS({
|
|
3105
|
-
"
|
|
3105
|
+
"node_modules/ajv/dist/refs/data.json"(exports2, module2) {
|
|
3106
3106
|
module2.exports = {
|
|
3107
3107
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3108
3108
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3119,9 +3119,9 @@ var require_data = __commonJS({
|
|
|
3119
3119
|
}
|
|
3120
3120
|
});
|
|
3121
3121
|
|
|
3122
|
-
//
|
|
3122
|
+
// node_modules/fast-uri/lib/utils.js
|
|
3123
3123
|
var require_utils = __commonJS({
|
|
3124
|
-
"
|
|
3124
|
+
"node_modules/fast-uri/lib/utils.js"(exports2, module2) {
|
|
3125
3125
|
"use strict";
|
|
3126
3126
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3127
3127
|
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);
|
|
@@ -3376,9 +3376,9 @@ var require_utils = __commonJS({
|
|
|
3376
3376
|
}
|
|
3377
3377
|
});
|
|
3378
3378
|
|
|
3379
|
-
//
|
|
3379
|
+
// node_modules/fast-uri/lib/schemes.js
|
|
3380
3380
|
var require_schemes = __commonJS({
|
|
3381
|
-
"
|
|
3381
|
+
"node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
|
|
3382
3382
|
"use strict";
|
|
3383
3383
|
var { isUUID } = require_utils();
|
|
3384
3384
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3586,9 +3586,9 @@ var require_schemes = __commonJS({
|
|
|
3586
3586
|
}
|
|
3587
3587
|
});
|
|
3588
3588
|
|
|
3589
|
-
//
|
|
3589
|
+
// node_modules/fast-uri/index.js
|
|
3590
3590
|
var require_fast_uri = __commonJS({
|
|
3591
|
-
"
|
|
3591
|
+
"node_modules/fast-uri/index.js"(exports2, module2) {
|
|
3592
3592
|
"use strict";
|
|
3593
3593
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3594
3594
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3841,9 +3841,9 @@ var require_fast_uri = __commonJS({
|
|
|
3841
3841
|
}
|
|
3842
3842
|
});
|
|
3843
3843
|
|
|
3844
|
-
//
|
|
3844
|
+
// node_modules/ajv/dist/runtime/uri.js
|
|
3845
3845
|
var require_uri = __commonJS({
|
|
3846
|
-
"
|
|
3846
|
+
"node_modules/ajv/dist/runtime/uri.js"(exports2) {
|
|
3847
3847
|
"use strict";
|
|
3848
3848
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3849
3849
|
var uri = require_fast_uri();
|
|
@@ -3852,9 +3852,9 @@ var require_uri = __commonJS({
|
|
|
3852
3852
|
}
|
|
3853
3853
|
});
|
|
3854
3854
|
|
|
3855
|
-
//
|
|
3855
|
+
// node_modules/ajv/dist/core.js
|
|
3856
3856
|
var require_core = __commonJS({
|
|
3857
|
-
"
|
|
3857
|
+
"node_modules/ajv/dist/core.js"(exports2) {
|
|
3858
3858
|
"use strict";
|
|
3859
3859
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3860
3860
|
exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
|
|
@@ -4463,9 +4463,9 @@ var require_core = __commonJS({
|
|
|
4463
4463
|
}
|
|
4464
4464
|
});
|
|
4465
4465
|
|
|
4466
|
-
//
|
|
4466
|
+
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
4467
4467
|
var require_id = __commonJS({
|
|
4468
|
-
"
|
|
4468
|
+
"node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
|
|
4469
4469
|
"use strict";
|
|
4470
4470
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4471
4471
|
var def = {
|
|
@@ -4478,9 +4478,9 @@ var require_id = __commonJS({
|
|
|
4478
4478
|
}
|
|
4479
4479
|
});
|
|
4480
4480
|
|
|
4481
|
-
//
|
|
4481
|
+
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4482
4482
|
var require_ref = __commonJS({
|
|
4483
|
-
"
|
|
4483
|
+
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
|
|
4484
4484
|
"use strict";
|
|
4485
4485
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4486
4486
|
exports2.callRef = exports2.getValidate = void 0;
|
|
@@ -4600,9 +4600,9 @@ var require_ref = __commonJS({
|
|
|
4600
4600
|
}
|
|
4601
4601
|
});
|
|
4602
4602
|
|
|
4603
|
-
//
|
|
4603
|
+
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
4604
4604
|
var require_core2 = __commonJS({
|
|
4605
|
-
"
|
|
4605
|
+
"node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
|
|
4606
4606
|
"use strict";
|
|
4607
4607
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4608
4608
|
var id_1 = require_id();
|
|
@@ -4621,9 +4621,9 @@ var require_core2 = __commonJS({
|
|
|
4621
4621
|
}
|
|
4622
4622
|
});
|
|
4623
4623
|
|
|
4624
|
-
//
|
|
4624
|
+
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4625
4625
|
var require_limitNumber = __commonJS({
|
|
4626
|
-
"
|
|
4626
|
+
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
|
|
4627
4627
|
"use strict";
|
|
4628
4628
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4629
4629
|
var codegen_1 = require_codegen();
|
|
@@ -4653,9 +4653,9 @@ var require_limitNumber = __commonJS({
|
|
|
4653
4653
|
}
|
|
4654
4654
|
});
|
|
4655
4655
|
|
|
4656
|
-
//
|
|
4656
|
+
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4657
4657
|
var require_multipleOf = __commonJS({
|
|
4658
|
-
"
|
|
4658
|
+
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
|
|
4659
4659
|
"use strict";
|
|
4660
4660
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4661
4661
|
var codegen_1 = require_codegen();
|
|
@@ -4681,9 +4681,9 @@ var require_multipleOf = __commonJS({
|
|
|
4681
4681
|
}
|
|
4682
4682
|
});
|
|
4683
4683
|
|
|
4684
|
-
//
|
|
4684
|
+
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
4685
4685
|
var require_ucs2length = __commonJS({
|
|
4686
|
-
"
|
|
4686
|
+
"node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
|
|
4687
4687
|
"use strict";
|
|
4688
4688
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4689
4689
|
function ucs2length(str) {
|
|
@@ -4707,9 +4707,9 @@ var require_ucs2length = __commonJS({
|
|
|
4707
4707
|
}
|
|
4708
4708
|
});
|
|
4709
4709
|
|
|
4710
|
-
//
|
|
4710
|
+
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4711
4711
|
var require_limitLength = __commonJS({
|
|
4712
|
-
"
|
|
4712
|
+
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
|
|
4713
4713
|
"use strict";
|
|
4714
4714
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4715
4715
|
var codegen_1 = require_codegen();
|
|
@@ -4739,9 +4739,9 @@ var require_limitLength = __commonJS({
|
|
|
4739
4739
|
}
|
|
4740
4740
|
});
|
|
4741
4741
|
|
|
4742
|
-
//
|
|
4742
|
+
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4743
4743
|
var require_pattern = __commonJS({
|
|
4744
|
-
"
|
|
4744
|
+
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
|
|
4745
4745
|
"use strict";
|
|
4746
4746
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4747
4747
|
var code_1 = require_code2();
|
|
@@ -4776,9 +4776,9 @@ var require_pattern = __commonJS({
|
|
|
4776
4776
|
}
|
|
4777
4777
|
});
|
|
4778
4778
|
|
|
4779
|
-
//
|
|
4779
|
+
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4780
4780
|
var require_limitProperties = __commonJS({
|
|
4781
|
-
"
|
|
4781
|
+
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
|
|
4782
4782
|
"use strict";
|
|
4783
4783
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4784
4784
|
var codegen_1 = require_codegen();
|
|
@@ -4805,9 +4805,9 @@ var require_limitProperties = __commonJS({
|
|
|
4805
4805
|
}
|
|
4806
4806
|
});
|
|
4807
4807
|
|
|
4808
|
-
//
|
|
4808
|
+
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4809
4809
|
var require_required = __commonJS({
|
|
4810
|
-
"
|
|
4810
|
+
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
|
|
4811
4811
|
"use strict";
|
|
4812
4812
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4813
4813
|
var code_1 = require_code2();
|
|
@@ -4887,9 +4887,9 @@ var require_required = __commonJS({
|
|
|
4887
4887
|
}
|
|
4888
4888
|
});
|
|
4889
4889
|
|
|
4890
|
-
//
|
|
4890
|
+
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4891
4891
|
var require_limitItems = __commonJS({
|
|
4892
|
-
"
|
|
4892
|
+
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
|
|
4893
4893
|
"use strict";
|
|
4894
4894
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4895
4895
|
var codegen_1 = require_codegen();
|
|
@@ -4916,9 +4916,9 @@ var require_limitItems = __commonJS({
|
|
|
4916
4916
|
}
|
|
4917
4917
|
});
|
|
4918
4918
|
|
|
4919
|
-
//
|
|
4919
|
+
// node_modules/ajv/dist/runtime/equal.js
|
|
4920
4920
|
var require_equal = __commonJS({
|
|
4921
|
-
"
|
|
4921
|
+
"node_modules/ajv/dist/runtime/equal.js"(exports2) {
|
|
4922
4922
|
"use strict";
|
|
4923
4923
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4924
4924
|
var equal = require_fast_deep_equal();
|
|
@@ -4927,9 +4927,9 @@ var require_equal = __commonJS({
|
|
|
4927
4927
|
}
|
|
4928
4928
|
});
|
|
4929
4929
|
|
|
4930
|
-
//
|
|
4930
|
+
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4931
4931
|
var require_uniqueItems = __commonJS({
|
|
4932
|
-
"
|
|
4932
|
+
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
|
|
4933
4933
|
"use strict";
|
|
4934
4934
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4935
4935
|
var dataType_1 = require_dataType();
|
|
@@ -4994,9 +4994,9 @@ var require_uniqueItems = __commonJS({
|
|
|
4994
4994
|
}
|
|
4995
4995
|
});
|
|
4996
4996
|
|
|
4997
|
-
//
|
|
4997
|
+
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4998
4998
|
var require_const = __commonJS({
|
|
4999
|
-
"
|
|
4999
|
+
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
|
|
5000
5000
|
"use strict";
|
|
5001
5001
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5002
5002
|
var codegen_1 = require_codegen();
|
|
@@ -5023,9 +5023,9 @@ var require_const = __commonJS({
|
|
|
5023
5023
|
}
|
|
5024
5024
|
});
|
|
5025
5025
|
|
|
5026
|
-
//
|
|
5026
|
+
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5027
5027
|
var require_enum = __commonJS({
|
|
5028
|
-
"
|
|
5028
|
+
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
|
|
5029
5029
|
"use strict";
|
|
5030
5030
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5031
5031
|
var codegen_1 = require_codegen();
|
|
@@ -5072,9 +5072,9 @@ var require_enum = __commonJS({
|
|
|
5072
5072
|
}
|
|
5073
5073
|
});
|
|
5074
5074
|
|
|
5075
|
-
//
|
|
5075
|
+
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5076
5076
|
var require_validation = __commonJS({
|
|
5077
|
-
"
|
|
5077
|
+
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
|
|
5078
5078
|
"use strict";
|
|
5079
5079
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5080
5080
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5110,9 +5110,9 @@ var require_validation = __commonJS({
|
|
|
5110
5110
|
}
|
|
5111
5111
|
});
|
|
5112
5112
|
|
|
5113
|
-
//
|
|
5113
|
+
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5114
5114
|
var require_additionalItems = __commonJS({
|
|
5115
|
-
"
|
|
5115
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
|
|
5116
5116
|
"use strict";
|
|
5117
5117
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5118
5118
|
exports2.validateAdditionalItems = void 0;
|
|
@@ -5163,9 +5163,9 @@ var require_additionalItems = __commonJS({
|
|
|
5163
5163
|
}
|
|
5164
5164
|
});
|
|
5165
5165
|
|
|
5166
|
-
//
|
|
5166
|
+
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5167
5167
|
var require_items = __commonJS({
|
|
5168
|
-
"
|
|
5168
|
+
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
|
|
5169
5169
|
"use strict";
|
|
5170
5170
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5171
5171
|
exports2.validateTuple = void 0;
|
|
@@ -5220,9 +5220,9 @@ var require_items = __commonJS({
|
|
|
5220
5220
|
}
|
|
5221
5221
|
});
|
|
5222
5222
|
|
|
5223
|
-
//
|
|
5223
|
+
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5224
5224
|
var require_prefixItems = __commonJS({
|
|
5225
|
-
"
|
|
5225
|
+
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
|
|
5226
5226
|
"use strict";
|
|
5227
5227
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5228
5228
|
var items_1 = require_items();
|
|
@@ -5237,9 +5237,9 @@ var require_prefixItems = __commonJS({
|
|
|
5237
5237
|
}
|
|
5238
5238
|
});
|
|
5239
5239
|
|
|
5240
|
-
//
|
|
5240
|
+
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5241
5241
|
var require_items2020 = __commonJS({
|
|
5242
|
-
"
|
|
5242
|
+
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
|
|
5243
5243
|
"use strict";
|
|
5244
5244
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5245
5245
|
var codegen_1 = require_codegen();
|
|
@@ -5272,9 +5272,9 @@ var require_items2020 = __commonJS({
|
|
|
5272
5272
|
}
|
|
5273
5273
|
});
|
|
5274
5274
|
|
|
5275
|
-
//
|
|
5275
|
+
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5276
5276
|
var require_contains = __commonJS({
|
|
5277
|
-
"
|
|
5277
|
+
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
|
|
5278
5278
|
"use strict";
|
|
5279
5279
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5280
5280
|
var codegen_1 = require_codegen();
|
|
@@ -5366,9 +5366,9 @@ var require_contains = __commonJS({
|
|
|
5366
5366
|
}
|
|
5367
5367
|
});
|
|
5368
5368
|
|
|
5369
|
-
//
|
|
5369
|
+
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5370
5370
|
var require_dependencies = __commonJS({
|
|
5371
|
-
"
|
|
5371
|
+
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
|
|
5372
5372
|
"use strict";
|
|
5373
5373
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5374
5374
|
exports2.validateSchemaDeps = exports2.validatePropertyDeps = exports2.error = void 0;
|
|
@@ -5460,9 +5460,9 @@ var require_dependencies = __commonJS({
|
|
|
5460
5460
|
}
|
|
5461
5461
|
});
|
|
5462
5462
|
|
|
5463
|
-
//
|
|
5463
|
+
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5464
5464
|
var require_propertyNames = __commonJS({
|
|
5465
|
-
"
|
|
5465
|
+
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
|
|
5466
5466
|
"use strict";
|
|
5467
5467
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5468
5468
|
var codegen_1 = require_codegen();
|
|
@@ -5503,9 +5503,9 @@ var require_propertyNames = __commonJS({
|
|
|
5503
5503
|
}
|
|
5504
5504
|
});
|
|
5505
5505
|
|
|
5506
|
-
//
|
|
5506
|
+
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5507
5507
|
var require_additionalProperties = __commonJS({
|
|
5508
|
-
"
|
|
5508
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
|
|
5509
5509
|
"use strict";
|
|
5510
5510
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5511
5511
|
var code_1 = require_code2();
|
|
@@ -5609,9 +5609,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5609
5609
|
}
|
|
5610
5610
|
});
|
|
5611
5611
|
|
|
5612
|
-
//
|
|
5612
|
+
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5613
5613
|
var require_properties = __commonJS({
|
|
5614
|
-
"
|
|
5614
|
+
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
|
|
5615
5615
|
"use strict";
|
|
5616
5616
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5617
5617
|
var validate_1 = require_validate();
|
|
@@ -5667,9 +5667,9 @@ var require_properties = __commonJS({
|
|
|
5667
5667
|
}
|
|
5668
5668
|
});
|
|
5669
5669
|
|
|
5670
|
-
//
|
|
5670
|
+
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5671
5671
|
var require_patternProperties = __commonJS({
|
|
5672
|
-
"
|
|
5672
|
+
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
|
|
5673
5673
|
"use strict";
|
|
5674
5674
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5675
5675
|
var code_1 = require_code2();
|
|
@@ -5741,9 +5741,9 @@ var require_patternProperties = __commonJS({
|
|
|
5741
5741
|
}
|
|
5742
5742
|
});
|
|
5743
5743
|
|
|
5744
|
-
//
|
|
5744
|
+
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5745
5745
|
var require_not = __commonJS({
|
|
5746
|
-
"
|
|
5746
|
+
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
|
|
5747
5747
|
"use strict";
|
|
5748
5748
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5749
5749
|
var util_1 = require_util();
|
|
@@ -5772,9 +5772,9 @@ var require_not = __commonJS({
|
|
|
5772
5772
|
}
|
|
5773
5773
|
});
|
|
5774
5774
|
|
|
5775
|
-
//
|
|
5775
|
+
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5776
5776
|
var require_anyOf = __commonJS({
|
|
5777
|
-
"
|
|
5777
|
+
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
|
|
5778
5778
|
"use strict";
|
|
5779
5779
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5780
5780
|
var code_1 = require_code2();
|
|
@@ -5789,9 +5789,9 @@ var require_anyOf = __commonJS({
|
|
|
5789
5789
|
}
|
|
5790
5790
|
});
|
|
5791
5791
|
|
|
5792
|
-
//
|
|
5792
|
+
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5793
5793
|
var require_oneOf = __commonJS({
|
|
5794
|
-
"
|
|
5794
|
+
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
|
|
5795
5795
|
"use strict";
|
|
5796
5796
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5797
5797
|
var codegen_1 = require_codegen();
|
|
@@ -5847,9 +5847,9 @@ var require_oneOf = __commonJS({
|
|
|
5847
5847
|
}
|
|
5848
5848
|
});
|
|
5849
5849
|
|
|
5850
|
-
//
|
|
5850
|
+
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5851
5851
|
var require_allOf = __commonJS({
|
|
5852
|
-
"
|
|
5852
|
+
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
|
|
5853
5853
|
"use strict";
|
|
5854
5854
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5855
5855
|
var util_1 = require_util();
|
|
@@ -5874,9 +5874,9 @@ var require_allOf = __commonJS({
|
|
|
5874
5874
|
}
|
|
5875
5875
|
});
|
|
5876
5876
|
|
|
5877
|
-
//
|
|
5877
|
+
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5878
5878
|
var require_if = __commonJS({
|
|
5879
|
-
"
|
|
5879
|
+
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
|
|
5880
5880
|
"use strict";
|
|
5881
5881
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5882
5882
|
var codegen_1 = require_codegen();
|
|
@@ -5943,9 +5943,9 @@ var require_if = __commonJS({
|
|
|
5943
5943
|
}
|
|
5944
5944
|
});
|
|
5945
5945
|
|
|
5946
|
-
//
|
|
5946
|
+
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5947
5947
|
var require_thenElse = __commonJS({
|
|
5948
|
-
"
|
|
5948
|
+
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
|
|
5949
5949
|
"use strict";
|
|
5950
5950
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5951
5951
|
var util_1 = require_util();
|
|
@@ -5961,9 +5961,9 @@ var require_thenElse = __commonJS({
|
|
|
5961
5961
|
}
|
|
5962
5962
|
});
|
|
5963
5963
|
|
|
5964
|
-
//
|
|
5964
|
+
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5965
5965
|
var require_applicator = __commonJS({
|
|
5966
|
-
"
|
|
5966
|
+
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
|
|
5967
5967
|
"use strict";
|
|
5968
5968
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5969
5969
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -6009,9 +6009,9 @@ var require_applicator = __commonJS({
|
|
|
6009
6009
|
}
|
|
6010
6010
|
});
|
|
6011
6011
|
|
|
6012
|
-
//
|
|
6012
|
+
// node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
|
|
6013
6013
|
var require_dynamicAnchor = __commonJS({
|
|
6014
|
-
"
|
|
6014
|
+
"node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js"(exports2) {
|
|
6015
6015
|
"use strict";
|
|
6016
6016
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6017
6017
|
exports2.dynamicAnchor = void 0;
|
|
@@ -6044,9 +6044,9 @@ var require_dynamicAnchor = __commonJS({
|
|
|
6044
6044
|
}
|
|
6045
6045
|
});
|
|
6046
6046
|
|
|
6047
|
-
//
|
|
6047
|
+
// node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
|
|
6048
6048
|
var require_dynamicRef = __commonJS({
|
|
6049
|
-
"
|
|
6049
|
+
"node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js"(exports2) {
|
|
6050
6050
|
"use strict";
|
|
6051
6051
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6052
6052
|
exports2.dynamicRef = void 0;
|
|
@@ -6090,9 +6090,9 @@ var require_dynamicRef = __commonJS({
|
|
|
6090
6090
|
}
|
|
6091
6091
|
});
|
|
6092
6092
|
|
|
6093
|
-
//
|
|
6093
|
+
// node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
|
|
6094
6094
|
var require_recursiveAnchor = __commonJS({
|
|
6095
|
-
"
|
|
6095
|
+
"node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js"(exports2) {
|
|
6096
6096
|
"use strict";
|
|
6097
6097
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6098
6098
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -6111,9 +6111,9 @@ var require_recursiveAnchor = __commonJS({
|
|
|
6111
6111
|
}
|
|
6112
6112
|
});
|
|
6113
6113
|
|
|
6114
|
-
//
|
|
6114
|
+
// node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js
|
|
6115
6115
|
var require_recursiveRef = __commonJS({
|
|
6116
|
-
"
|
|
6116
|
+
"node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js"(exports2) {
|
|
6117
6117
|
"use strict";
|
|
6118
6118
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6119
6119
|
var dynamicRef_1 = require_dynamicRef();
|
|
@@ -6126,9 +6126,9 @@ var require_recursiveRef = __commonJS({
|
|
|
6126
6126
|
}
|
|
6127
6127
|
});
|
|
6128
6128
|
|
|
6129
|
-
//
|
|
6129
|
+
// node_modules/ajv/dist/vocabularies/dynamic/index.js
|
|
6130
6130
|
var require_dynamic = __commonJS({
|
|
6131
|
-
"
|
|
6131
|
+
"node_modules/ajv/dist/vocabularies/dynamic/index.js"(exports2) {
|
|
6132
6132
|
"use strict";
|
|
6133
6133
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6134
6134
|
var dynamicAnchor_1 = require_dynamicAnchor();
|
|
@@ -6140,9 +6140,9 @@ var require_dynamic = __commonJS({
|
|
|
6140
6140
|
}
|
|
6141
6141
|
});
|
|
6142
6142
|
|
|
6143
|
-
//
|
|
6143
|
+
// node_modules/ajv/dist/vocabularies/validation/dependentRequired.js
|
|
6144
6144
|
var require_dependentRequired = __commonJS({
|
|
6145
|
-
"
|
|
6145
|
+
"node_modules/ajv/dist/vocabularies/validation/dependentRequired.js"(exports2) {
|
|
6146
6146
|
"use strict";
|
|
6147
6147
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6148
6148
|
var dependencies_1 = require_dependencies();
|
|
@@ -6157,9 +6157,9 @@ var require_dependentRequired = __commonJS({
|
|
|
6157
6157
|
}
|
|
6158
6158
|
});
|
|
6159
6159
|
|
|
6160
|
-
//
|
|
6160
|
+
// node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js
|
|
6161
6161
|
var require_dependentSchemas = __commonJS({
|
|
6162
|
-
"
|
|
6162
|
+
"node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js"(exports2) {
|
|
6163
6163
|
"use strict";
|
|
6164
6164
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6165
6165
|
var dependencies_1 = require_dependencies();
|
|
@@ -6173,9 +6173,9 @@ var require_dependentSchemas = __commonJS({
|
|
|
6173
6173
|
}
|
|
6174
6174
|
});
|
|
6175
6175
|
|
|
6176
|
-
//
|
|
6176
|
+
// node_modules/ajv/dist/vocabularies/validation/limitContains.js
|
|
6177
6177
|
var require_limitContains = __commonJS({
|
|
6178
|
-
"
|
|
6178
|
+
"node_modules/ajv/dist/vocabularies/validation/limitContains.js"(exports2) {
|
|
6179
6179
|
"use strict";
|
|
6180
6180
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6181
6181
|
var util_1 = require_util();
|
|
@@ -6193,9 +6193,9 @@ var require_limitContains = __commonJS({
|
|
|
6193
6193
|
}
|
|
6194
6194
|
});
|
|
6195
6195
|
|
|
6196
|
-
//
|
|
6196
|
+
// node_modules/ajv/dist/vocabularies/next.js
|
|
6197
6197
|
var require_next = __commonJS({
|
|
6198
|
-
"
|
|
6198
|
+
"node_modules/ajv/dist/vocabularies/next.js"(exports2) {
|
|
6199
6199
|
"use strict";
|
|
6200
6200
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6201
6201
|
var dependentRequired_1 = require_dependentRequired();
|
|
@@ -6206,9 +6206,9 @@ var require_next = __commonJS({
|
|
|
6206
6206
|
}
|
|
6207
6207
|
});
|
|
6208
6208
|
|
|
6209
|
-
//
|
|
6209
|
+
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
|
|
6210
6210
|
var require_unevaluatedProperties = __commonJS({
|
|
6211
|
-
"
|
|
6211
|
+
"node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js"(exports2) {
|
|
6212
6212
|
"use strict";
|
|
6213
6213
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6214
6214
|
var codegen_1 = require_codegen();
|
|
@@ -6272,9 +6272,9 @@ var require_unevaluatedProperties = __commonJS({
|
|
|
6272
6272
|
}
|
|
6273
6273
|
});
|
|
6274
6274
|
|
|
6275
|
-
//
|
|
6275
|
+
// node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
|
|
6276
6276
|
var require_unevaluatedItems = __commonJS({
|
|
6277
|
-
"
|
|
6277
|
+
"node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js"(exports2) {
|
|
6278
6278
|
"use strict";
|
|
6279
6279
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6280
6280
|
var codegen_1 = require_codegen();
|
|
@@ -6316,9 +6316,9 @@ var require_unevaluatedItems = __commonJS({
|
|
|
6316
6316
|
}
|
|
6317
6317
|
});
|
|
6318
6318
|
|
|
6319
|
-
//
|
|
6319
|
+
// node_modules/ajv/dist/vocabularies/unevaluated/index.js
|
|
6320
6320
|
var require_unevaluated = __commonJS({
|
|
6321
|
-
"
|
|
6321
|
+
"node_modules/ajv/dist/vocabularies/unevaluated/index.js"(exports2) {
|
|
6322
6322
|
"use strict";
|
|
6323
6323
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6324
6324
|
var unevaluatedProperties_1 = require_unevaluatedProperties();
|
|
@@ -6328,9 +6328,9 @@ var require_unevaluated = __commonJS({
|
|
|
6328
6328
|
}
|
|
6329
6329
|
});
|
|
6330
6330
|
|
|
6331
|
-
//
|
|
6331
|
+
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
6332
6332
|
var require_format = __commonJS({
|
|
6333
|
-
"
|
|
6333
|
+
"node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
|
|
6334
6334
|
"use strict";
|
|
6335
6335
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6336
6336
|
var codegen_1 = require_codegen();
|
|
@@ -6418,9 +6418,9 @@ var require_format = __commonJS({
|
|
|
6418
6418
|
}
|
|
6419
6419
|
});
|
|
6420
6420
|
|
|
6421
|
-
//
|
|
6421
|
+
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
6422
6422
|
var require_format2 = __commonJS({
|
|
6423
|
-
"
|
|
6423
|
+
"node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
|
|
6424
6424
|
"use strict";
|
|
6425
6425
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6426
6426
|
var format_1 = require_format();
|
|
@@ -6429,9 +6429,9 @@ var require_format2 = __commonJS({
|
|
|
6429
6429
|
}
|
|
6430
6430
|
});
|
|
6431
6431
|
|
|
6432
|
-
//
|
|
6432
|
+
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
6433
6433
|
var require_metadata = __commonJS({
|
|
6434
|
-
"
|
|
6434
|
+
"node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
|
|
6435
6435
|
"use strict";
|
|
6436
6436
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6437
6437
|
exports2.contentVocabulary = exports2.metadataVocabulary = void 0;
|
|
@@ -6452,9 +6452,9 @@ var require_metadata = __commonJS({
|
|
|
6452
6452
|
}
|
|
6453
6453
|
});
|
|
6454
6454
|
|
|
6455
|
-
//
|
|
6455
|
+
// node_modules/ajv/dist/vocabularies/draft2020.js
|
|
6456
6456
|
var require_draft2020 = __commonJS({
|
|
6457
|
-
"
|
|
6457
|
+
"node_modules/ajv/dist/vocabularies/draft2020.js"(exports2) {
|
|
6458
6458
|
"use strict";
|
|
6459
6459
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6460
6460
|
var core_1 = require_core2();
|
|
@@ -6480,9 +6480,9 @@ var require_draft2020 = __commonJS({
|
|
|
6480
6480
|
}
|
|
6481
6481
|
});
|
|
6482
6482
|
|
|
6483
|
-
//
|
|
6483
|
+
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6484
6484
|
var require_types = __commonJS({
|
|
6485
|
-
"
|
|
6485
|
+
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
|
|
6486
6486
|
"use strict";
|
|
6487
6487
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6488
6488
|
exports2.DiscrError = void 0;
|
|
@@ -6494,9 +6494,9 @@ var require_types = __commonJS({
|
|
|
6494
6494
|
}
|
|
6495
6495
|
});
|
|
6496
6496
|
|
|
6497
|
-
//
|
|
6497
|
+
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6498
6498
|
var require_discriminator = __commonJS({
|
|
6499
|
-
"
|
|
6499
|
+
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
|
|
6500
6500
|
"use strict";
|
|
6501
6501
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6502
6502
|
var codegen_1 = require_codegen();
|
|
@@ -6599,9 +6599,9 @@ var require_discriminator = __commonJS({
|
|
|
6599
6599
|
}
|
|
6600
6600
|
});
|
|
6601
6601
|
|
|
6602
|
-
//
|
|
6602
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
6603
6603
|
var require_schema = __commonJS({
|
|
6604
|
-
"
|
|
6604
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/schema.json"(exports2, module2) {
|
|
6605
6605
|
module2.exports = {
|
|
6606
6606
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6607
6607
|
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -6659,9 +6659,9 @@ var require_schema = __commonJS({
|
|
|
6659
6659
|
}
|
|
6660
6660
|
});
|
|
6661
6661
|
|
|
6662
|
-
//
|
|
6662
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json
|
|
6663
6663
|
var require_applicator2 = __commonJS({
|
|
6664
|
-
"
|
|
6664
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json"(exports2, module2) {
|
|
6665
6665
|
module2.exports = {
|
|
6666
6666
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6667
6667
|
$id: "https://json-schema.org/draft/2020-12/meta/applicator",
|
|
@@ -6712,9 +6712,9 @@ var require_applicator2 = __commonJS({
|
|
|
6712
6712
|
}
|
|
6713
6713
|
});
|
|
6714
6714
|
|
|
6715
|
-
//
|
|
6715
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
6716
6716
|
var require_unevaluated2 = __commonJS({
|
|
6717
|
-
"
|
|
6717
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json"(exports2, module2) {
|
|
6718
6718
|
module2.exports = {
|
|
6719
6719
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6720
6720
|
$id: "https://json-schema.org/draft/2020-12/meta/unevaluated",
|
|
@@ -6732,9 +6732,9 @@ var require_unevaluated2 = __commonJS({
|
|
|
6732
6732
|
}
|
|
6733
6733
|
});
|
|
6734
6734
|
|
|
6735
|
-
//
|
|
6735
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
6736
6736
|
var require_content = __commonJS({
|
|
6737
|
-
"
|
|
6737
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json"(exports2, module2) {
|
|
6738
6738
|
module2.exports = {
|
|
6739
6739
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6740
6740
|
$id: "https://json-schema.org/draft/2020-12/meta/content",
|
|
@@ -6753,9 +6753,9 @@ var require_content = __commonJS({
|
|
|
6753
6753
|
}
|
|
6754
6754
|
});
|
|
6755
6755
|
|
|
6756
|
-
//
|
|
6756
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
6757
6757
|
var require_core3 = __commonJS({
|
|
6758
|
-
"
|
|
6758
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json"(exports2, module2) {
|
|
6759
6759
|
module2.exports = {
|
|
6760
6760
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6761
6761
|
$id: "https://json-schema.org/draft/2020-12/meta/core",
|
|
@@ -6809,9 +6809,9 @@ var require_core3 = __commonJS({
|
|
|
6809
6809
|
}
|
|
6810
6810
|
});
|
|
6811
6811
|
|
|
6812
|
-
//
|
|
6812
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
6813
6813
|
var require_format_annotation = __commonJS({
|
|
6814
|
-
"
|
|
6814
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json"(exports2, module2) {
|
|
6815
6815
|
module2.exports = {
|
|
6816
6816
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6817
6817
|
$id: "https://json-schema.org/draft/2020-12/meta/format-annotation",
|
|
@@ -6828,9 +6828,9 @@ var require_format_annotation = __commonJS({
|
|
|
6828
6828
|
}
|
|
6829
6829
|
});
|
|
6830
6830
|
|
|
6831
|
-
//
|
|
6831
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
6832
6832
|
var require_meta_data = __commonJS({
|
|
6833
|
-
"
|
|
6833
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json"(exports2, module2) {
|
|
6834
6834
|
module2.exports = {
|
|
6835
6835
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6836
6836
|
$id: "https://json-schema.org/draft/2020-12/meta/meta-data",
|
|
@@ -6869,9 +6869,9 @@ var require_meta_data = __commonJS({
|
|
|
6869
6869
|
}
|
|
6870
6870
|
});
|
|
6871
6871
|
|
|
6872
|
-
//
|
|
6872
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
6873
6873
|
var require_validation2 = __commonJS({
|
|
6874
|
-
"
|
|
6874
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json"(exports2, module2) {
|
|
6875
6875
|
module2.exports = {
|
|
6876
6876
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
6877
6877
|
$id: "https://json-schema.org/draft/2020-12/meta/validation",
|
|
@@ -6964,9 +6964,9 @@ var require_validation2 = __commonJS({
|
|
|
6964
6964
|
}
|
|
6965
6965
|
});
|
|
6966
6966
|
|
|
6967
|
-
//
|
|
6967
|
+
// node_modules/ajv/dist/refs/json-schema-2020-12/index.js
|
|
6968
6968
|
var require_json_schema_2020_12 = __commonJS({
|
|
6969
|
-
"
|
|
6969
|
+
"node_modules/ajv/dist/refs/json-schema-2020-12/index.js"(exports2) {
|
|
6970
6970
|
"use strict";
|
|
6971
6971
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6972
6972
|
var metaSchema = require_schema();
|
|
@@ -6999,9 +6999,9 @@ var require_json_schema_2020_12 = __commonJS({
|
|
|
6999
6999
|
}
|
|
7000
7000
|
});
|
|
7001
7001
|
|
|
7002
|
-
//
|
|
7002
|
+
// node_modules/ajv/dist/2020.js
|
|
7003
7003
|
var require__ = __commonJS({
|
|
7004
|
-
"
|
|
7004
|
+
"node_modules/ajv/dist/2020.js"(exports2, module2) {
|
|
7005
7005
|
"use strict";
|
|
7006
7006
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7007
7007
|
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv2020 = void 0;
|
|
@@ -7076,11 +7076,11 @@ var require__ = __commonJS({
|
|
|
7076
7076
|
}
|
|
7077
7077
|
});
|
|
7078
7078
|
|
|
7079
|
-
//
|
|
7079
|
+
// src/cli/main.ts
|
|
7080
7080
|
var fs43 = __toESM(require("node:fs"));
|
|
7081
7081
|
var path43 = __toESM(require("node:path"));
|
|
7082
7082
|
|
|
7083
|
-
//
|
|
7083
|
+
// src/cli/argv.ts
|
|
7084
7084
|
function isGlobalFlag(s) {
|
|
7085
7085
|
return s === "--cwd" || s === "--ci" || s === "--json" || s === "--verbose" || s === "--config" || s === "--api-base-url" || s === "--session-path" || s === "--environment" || s === "--env" || s === "--promote" || s === "--no-promote" || s === "--help" || s === "-h" || s === "--version" || s === "-V";
|
|
7086
7086
|
}
|
|
@@ -7167,7 +7167,7 @@ function parseArgv(argv) {
|
|
|
7167
7167
|
return { flags, positionals };
|
|
7168
7168
|
}
|
|
7169
7169
|
|
|
7170
|
-
//
|
|
7170
|
+
// src/cli/exitCodes.ts
|
|
7171
7171
|
var ExitCode = {
|
|
7172
7172
|
ok: 0,
|
|
7173
7173
|
usage: 2,
|
|
@@ -7180,17 +7180,17 @@ var ExitCode = {
|
|
|
7180
7180
|
internal: 99
|
|
7181
7181
|
};
|
|
7182
7182
|
|
|
7183
|
-
//
|
|
7183
|
+
// src/cli/jsonReporter.ts
|
|
7184
7184
|
function printJsonLine(envelope) {
|
|
7185
7185
|
process.stdout.write(`${JSON.stringify(envelope)}
|
|
7186
7186
|
`);
|
|
7187
7187
|
}
|
|
7188
7188
|
|
|
7189
|
-
//
|
|
7189
|
+
// src/cli/cliContext.ts
|
|
7190
7190
|
var fs2 = __toESM(require("node:fs"));
|
|
7191
7191
|
var path2 = __toESM(require("path"));
|
|
7192
7192
|
|
|
7193
|
-
//
|
|
7193
|
+
// src/repositoryProvenance.ts
|
|
7194
7194
|
var import_node_child_process = require("node:child_process");
|
|
7195
7195
|
var fs = __toESM(require("node:fs"));
|
|
7196
7196
|
var path = __toESM(require("node:path"));
|
|
@@ -7356,7 +7356,7 @@ function attachRepositoryProvenance(doc, contextDir2, opts) {
|
|
|
7356
7356
|
}
|
|
7357
7357
|
}
|
|
7358
7358
|
|
|
7359
|
-
//
|
|
7359
|
+
// src/apiBaseUrlResolve.ts
|
|
7360
7360
|
var vscode = __toESM(require_vscode_stub());
|
|
7361
7361
|
var extensionRoot;
|
|
7362
7362
|
var cachedExtensionDotEnv = null;
|
|
@@ -7365,11 +7365,11 @@ function setApiBaseUrlExtensionRoot(extensionFsPath) {
|
|
|
7365
7365
|
cachedExtensionDotEnv = null;
|
|
7366
7366
|
}
|
|
7367
7367
|
|
|
7368
|
-
//
|
|
7368
|
+
// src/easyspecsBuiltInApiUrls.ts
|
|
7369
7369
|
var PRODUCTION_SYSTEM_MANAGER_URL = "https://api.easyspecs.ai";
|
|
7370
7370
|
var STAGING_SYSTEM_MANAGER_URL = "https://system-manager-api.staging.gluecharm.info:8092";
|
|
7371
7371
|
|
|
7372
|
-
//
|
|
7372
|
+
// src/easyspecsApiBaseUrlCli.ts
|
|
7373
7373
|
function stripTrailingSlash(url) {
|
|
7374
7374
|
return url.replace(/\/$/, "");
|
|
7375
7375
|
}
|
|
@@ -7386,7 +7386,7 @@ function resolveEasyspecsApiBaseUrlForCli(input) {
|
|
|
7386
7386
|
return eff === "staging" ? STAGING_SYSTEM_MANAGER_URL : PRODUCTION_SYSTEM_MANAGER_URL;
|
|
7387
7387
|
}
|
|
7388
7388
|
|
|
7389
|
-
//
|
|
7389
|
+
// src/cli/cliContext.ts
|
|
7390
7390
|
function thisDir() {
|
|
7391
7391
|
return __dirname;
|
|
7392
7392
|
}
|
|
@@ -7401,7 +7401,15 @@ function resolveExtensionRootForCli(repoRoot, config) {
|
|
|
7401
7401
|
const resourcesAbs = path2.isAbsolute(raw) ? path2.normalize(raw) : path2.resolve(repoRoot, raw);
|
|
7402
7402
|
return path2.resolve(resourcesAbs, "..");
|
|
7403
7403
|
}
|
|
7404
|
-
|
|
7404
|
+
const here = thisDir();
|
|
7405
|
+
if (here.includes(`${path2.sep}packages${path2.sep}cli${path2.sep}dist`)) {
|
|
7406
|
+
const adjacentResources = path2.join(here, "..", "resources");
|
|
7407
|
+
if (fs2.existsSync(adjacentResources)) {
|
|
7408
|
+
return path2.resolve(adjacentResources, "..");
|
|
7409
|
+
}
|
|
7410
|
+
return resolveExtensionRootHeuristic();
|
|
7411
|
+
}
|
|
7412
|
+
return path2.resolve(here, "..");
|
|
7405
7413
|
}
|
|
7406
7414
|
function resolveExtensionRootHeuristic() {
|
|
7407
7415
|
const here = thisDir();
|
|
@@ -7417,10 +7425,14 @@ function resolveOpenCodeAgentsDir(repoRoot, config) {
|
|
|
7417
7425
|
return path2.join(resourcesAbs, "opencode-agents");
|
|
7418
7426
|
}
|
|
7419
7427
|
const here = thisDir();
|
|
7428
|
+
const adjacentToDist = path2.join(here, "..", "resources", "opencode-agents");
|
|
7420
7429
|
if (here.includes(`${path2.sep}packages${path2.sep}cli${path2.sep}dist`)) {
|
|
7421
|
-
|
|
7430
|
+
if (fs2.existsSync(path2.join(here, "..", "resources"))) {
|
|
7431
|
+
return adjacentToDist;
|
|
7432
|
+
}
|
|
7433
|
+
return path2.join(resolveExtensionRootHeuristic(), "resources", "opencode-agents");
|
|
7422
7434
|
}
|
|
7423
|
-
return
|
|
7435
|
+
return adjacentToDist;
|
|
7424
7436
|
}
|
|
7425
7437
|
function initApiBaseUrlForCli(repoRoot, flags, config) {
|
|
7426
7438
|
const extensionRoot2 = resolveExtensionRootForCli(repoRoot, config);
|
|
@@ -7439,7 +7451,7 @@ function assertAgentsDirExists(agentsDir) {
|
|
|
7439
7451
|
}
|
|
7440
7452
|
}
|
|
7441
7453
|
|
|
7442
|
-
//
|
|
7454
|
+
// src/config/openCodeProviderEnv.ts
|
|
7443
7455
|
var path3 = __toESM(require("node:path"));
|
|
7444
7456
|
var PROVIDER_TO_ENV = {
|
|
7445
7457
|
anthropic: "ANTHROPIC_API_KEY",
|
|
@@ -7470,7 +7482,7 @@ function buildOpenCodeProviderEnvFromConfig(cfg, repoRoot) {
|
|
|
7470
7482
|
return out;
|
|
7471
7483
|
}
|
|
7472
7484
|
|
|
7473
|
-
//
|
|
7485
|
+
// src/cli/cliSettings.ts
|
|
7474
7486
|
var DEFAULT_OPEN_CODE_TEST_ARGV = [
|
|
7475
7487
|
"run",
|
|
7476
7488
|
"--agent",
|
|
@@ -7533,7 +7545,7 @@ function mergeEasyspecsCliSettings(cfg, overrides = {}) {
|
|
|
7533
7545
|
};
|
|
7534
7546
|
}
|
|
7535
7547
|
|
|
7536
|
-
//
|
|
7548
|
+
// src/cli/cliSettingsDump.ts
|
|
7537
7549
|
function redactMergedCliSettingsForDump(merged) {
|
|
7538
7550
|
const child = merged.openCodeChildEnv;
|
|
7539
7551
|
const childRedacted = child && Object.keys(child).length > 0 ? Object.fromEntries(Object.keys(child).map((k) => [k, "(redacted)"])) : {};
|
|
@@ -7548,15 +7560,15 @@ function redactMergedCliSettingsForDump(merged) {
|
|
|
7548
7560
|
};
|
|
7549
7561
|
}
|
|
7550
7562
|
|
|
7551
|
-
//
|
|
7563
|
+
// src/config/easyspecsConfigFile.ts
|
|
7552
7564
|
var fs5 = __toESM(require("node:fs"));
|
|
7553
7565
|
var path6 = __toESM(require("node:path"));
|
|
7554
7566
|
|
|
7555
|
-
//
|
|
7567
|
+
// src/easySpecsWorkspaceSettingsCore.ts
|
|
7556
7568
|
var fs4 = __toESM(require("node:fs"));
|
|
7557
7569
|
var path5 = __toESM(require("node:path"));
|
|
7558
7570
|
|
|
7559
|
-
//
|
|
7571
|
+
// src/analysis/easySpecsWorktreeMarker.ts
|
|
7560
7572
|
var fs3 = __toESM(require("fs"));
|
|
7561
7573
|
var path4 = __toESM(require("path"));
|
|
7562
7574
|
var EASYSPECS_LOCAL_DIR = ".easyspecs";
|
|
@@ -7573,7 +7585,7 @@ function writeAnalysisWorktreeMarker(worktreeRoot, repositoryRoot) {
|
|
|
7573
7585
|
`, "utf-8");
|
|
7574
7586
|
}
|
|
7575
7587
|
|
|
7576
|
-
//
|
|
7588
|
+
// src/easySpecsWorkspaceSettingsCore.ts
|
|
7577
7589
|
var EASYSPECS_WORKSPACE_DIR = EASYSPECS_LOCAL_DIR;
|
|
7578
7590
|
var EASYSPECS_SETTINGS_JSON = "settings.json";
|
|
7579
7591
|
var EASYSPECS_SETTINGS_ACE_KEY = "easyspecs.analysis.ace.enabled";
|
|
@@ -7622,7 +7634,7 @@ function readAceOfflineLearnAfterSameSessionTraceFromEasySpecsSettingsFile(works
|
|
|
7622
7634
|
return typeof v === "boolean" ? v : void 0;
|
|
7623
7635
|
}
|
|
7624
7636
|
|
|
7625
|
-
//
|
|
7637
|
+
// src/config/easyspecsConfigJson.ts
|
|
7626
7638
|
function mergeEasyspecsConfigDefaults(defaults, partial) {
|
|
7627
7639
|
if (!partial) {
|
|
7628
7640
|
return defaults;
|
|
@@ -7771,7 +7783,7 @@ function getDefaultEasyspecsConfig() {
|
|
|
7771
7783
|
};
|
|
7772
7784
|
}
|
|
7773
7785
|
|
|
7774
|
-
//
|
|
7786
|
+
// src/config/easyspecsConfigFile.ts
|
|
7775
7787
|
var DIRNAME = ".easyspecs";
|
|
7776
7788
|
var CONFIG_BASENAME = "config.json";
|
|
7777
7789
|
var LEGACY_CLI_JSON = "cli.json";
|
|
@@ -7941,7 +7953,7 @@ function updateEasyspecsConfig(repoRoot, patch, opts) {
|
|
|
7941
7953
|
return merged;
|
|
7942
7954
|
}
|
|
7943
7955
|
|
|
7944
|
-
//
|
|
7956
|
+
// src/config/easyspecsConfigRedact.ts
|
|
7945
7957
|
function redactEasyspecsConfigRootForDump(cfg) {
|
|
7946
7958
|
const o = JSON.parse(JSON.stringify(cfg));
|
|
7947
7959
|
const es = o.easyspecs;
|
|
@@ -7962,7 +7974,7 @@ function redactEasyspecsConfigRootForDump(cfg) {
|
|
|
7962
7974
|
return o;
|
|
7963
7975
|
}
|
|
7964
7976
|
|
|
7965
|
-
//
|
|
7977
|
+
// src/cli/cliFileWorkspaceState.ts
|
|
7966
7978
|
var fs6 = __toESM(require("node:fs"));
|
|
7967
7979
|
var path7 = __toESM(require("node:path"));
|
|
7968
7980
|
function createFileBackedWorkspaceState(repoRoot) {
|
|
@@ -8002,11 +8014,11 @@ function createFileBackedWorkspaceState(repoRoot) {
|
|
|
8002
8014
|
return { workspaceState };
|
|
8003
8015
|
}
|
|
8004
8016
|
|
|
8005
|
-
//
|
|
8017
|
+
// src/analysis/contextArtefactPipeline.ts
|
|
8006
8018
|
var fs27 = __toESM(require("fs"));
|
|
8007
8019
|
var path25 = __toESM(require("path"));
|
|
8008
8020
|
|
|
8009
|
-
//
|
|
8021
|
+
// src/analysis/analysisDynamicTestSteps.ts
|
|
8010
8022
|
var fs7 = __toESM(require("fs"));
|
|
8011
8023
|
var path8 = __toESM(require("path"));
|
|
8012
8024
|
var FE_CODE = /^FE-\d+$/;
|
|
@@ -8274,15 +8286,15 @@ function discoverDynamicAnalysisTestSteps(contextDir2) {
|
|
|
8274
8286
|
};
|
|
8275
8287
|
}
|
|
8276
8288
|
|
|
8277
|
-
//
|
|
8289
|
+
// src/analysis/materializeOpenCodeAgents.ts
|
|
8278
8290
|
var fs10 = __toESM(require("fs"));
|
|
8279
8291
|
var path11 = __toESM(require("path"));
|
|
8280
8292
|
|
|
8281
|
-
//
|
|
8293
|
+
// src/analysis/applyAceMaterializedAgents.ts
|
|
8282
8294
|
var fs9 = __toESM(require("fs"));
|
|
8283
8295
|
var path10 = __toESM(require("path"));
|
|
8284
8296
|
|
|
8285
|
-
//
|
|
8297
|
+
// src/analysis/acePaths.ts
|
|
8286
8298
|
var path9 = __toESM(require("path"));
|
|
8287
8299
|
var ACE_LEARNINGS_DIR = "learnings";
|
|
8288
8300
|
var ACE_OVERLAYS_SUBDIR = "overlays";
|
|
@@ -8333,7 +8345,7 @@ function opencodeAceSchemaPath(worktreeRoot, basename12) {
|
|
|
8333
8345
|
return path9.join(worktreeRoot, ".opencode", "schemas", "ace", basename12);
|
|
8334
8346
|
}
|
|
8335
8347
|
|
|
8336
|
-
//
|
|
8348
|
+
// src/analysis/aceJsonValidate.ts
|
|
8337
8349
|
var fs8 = __toESM(require("fs"));
|
|
8338
8350
|
var import__ = __toESM(require__());
|
|
8339
8351
|
function stripUtf8Bom2(s) {
|
|
@@ -8464,7 +8476,7 @@ function validateAceJsonValue(data, schemaAbsolutePath) {
|
|
|
8464
8476
|
return { ok: false, kind: "schema", message: "ACE JSON Schema validation failed", errorsText };
|
|
8465
8477
|
}
|
|
8466
8478
|
|
|
8467
|
-
//
|
|
8479
|
+
// src/analysis/applyAceMaterializedAgents.ts
|
|
8468
8480
|
function splitYamlFrontmatter(raw) {
|
|
8469
8481
|
if (!raw.startsWith("---\n")) {
|
|
8470
8482
|
return { frontmatter: "", body: raw };
|
|
@@ -8617,7 +8629,7 @@ ${extra}
|
|
|
8617
8629
|
}
|
|
8618
8630
|
}
|
|
8619
8631
|
|
|
8620
|
-
//
|
|
8632
|
+
// src/analysis/materializeOpenCodeAgents.ts
|
|
8621
8633
|
function posixFsPath(absPath) {
|
|
8622
8634
|
return path11.resolve(absPath).split(path11.sep).join("/");
|
|
8623
8635
|
}
|
|
@@ -8745,11 +8757,11 @@ function materializeOpenCodeAgentsWithAce(extensionResourcesAgents, analysisChec
|
|
|
8745
8757
|
applyAceToMaterializedAgents(analysisCheckoutRoot, ace);
|
|
8746
8758
|
}
|
|
8747
8759
|
|
|
8748
|
-
//
|
|
8760
|
+
// src/analysis/openCodeTestAgent.ts
|
|
8749
8761
|
var fs20 = __toESM(require("fs"));
|
|
8750
8762
|
var path18 = __toESM(require("path"));
|
|
8751
8763
|
|
|
8752
|
-
//
|
|
8764
|
+
// src/analysis/promptTemplates.ts
|
|
8753
8765
|
function fillMarkdownPrompt(p) {
|
|
8754
8766
|
return [
|
|
8755
8767
|
`You are OpenCode agent "${p.agentId}" (display name: ${p.agentDisplayName}).`,
|
|
@@ -8847,7 +8859,7 @@ function fillListJsonPrompt(p) {
|
|
|
8847
8859
|
].join("\n");
|
|
8848
8860
|
}
|
|
8849
8861
|
|
|
8850
|
-
//
|
|
8862
|
+
// src/analysis/contextSynthesis.ts
|
|
8851
8863
|
var CONTEXT_SYNTHESIS_TEST_STEP_ORDER = [
|
|
8852
8864
|
"docsProject",
|
|
8853
8865
|
"architecture",
|
|
@@ -8897,14 +8909,14 @@ function synthesisStepLabel(step, ctx) {
|
|
|
8897
8909
|
return m[step];
|
|
8898
8910
|
}
|
|
8899
8911
|
|
|
8900
|
-
//
|
|
8912
|
+
// src/analysis/aceTracePhase.ts
|
|
8901
8913
|
var fs15 = __toESM(require("fs"));
|
|
8902
8914
|
var path15 = __toESM(require("path"));
|
|
8903
8915
|
|
|
8904
|
-
//
|
|
8916
|
+
// src/opencodeCli.ts
|
|
8905
8917
|
var import_child_process = require("child_process");
|
|
8906
8918
|
|
|
8907
|
-
//
|
|
8919
|
+
// src/analysis/openCodeSessionStewardship.ts
|
|
8908
8920
|
var TITLE_MAX_LEN = 80;
|
|
8909
8921
|
function isNonEmptyString(v) {
|
|
8910
8922
|
return typeof v === "string" && v.trim().length > 0;
|
|
@@ -9026,7 +9038,7 @@ function logOpenCodeSessionFollowUpStart(diagnosticLog, p) {
|
|
|
9026
9038
|
);
|
|
9027
9039
|
}
|
|
9028
9040
|
|
|
9029
|
-
//
|
|
9041
|
+
// src/opencodeCli.ts
|
|
9030
9042
|
var USE_SHELL = process.platform === "win32";
|
|
9031
9043
|
function resolveExecutable(executable) {
|
|
9032
9044
|
const t = executable?.trim();
|
|
@@ -9141,9 +9153,9 @@ function runOpenCodeAgent(cwd, args, options) {
|
|
|
9141
9153
|
const cmd = resolveExecutable(options?.executable);
|
|
9142
9154
|
const log = options?.diagnosticLog;
|
|
9143
9155
|
const sig = options?.signal;
|
|
9144
|
-
log?.(`[
|
|
9145
|
-
log?.(`[
|
|
9146
|
-
log?.(`[
|
|
9156
|
+
log?.(`[AgentCode] command: ${formatCliCommandForLog(cmd, args)}`);
|
|
9157
|
+
log?.(`[AgentCode] cwd: ${JSON.stringify(cwd)}`);
|
|
9158
|
+
log?.(`[AgentCode] argv: ${JSON.stringify(args)}`);
|
|
9147
9159
|
return new Promise((resolve15) => {
|
|
9148
9160
|
if (sig?.aborted) {
|
|
9149
9161
|
resolve15({ ok: false, message: "Stopped by user.", cancelled: true });
|
|
@@ -9188,7 +9200,7 @@ function runOpenCodeAgent(cwd, args, options) {
|
|
|
9188
9200
|
});
|
|
9189
9201
|
const finishDiag = (label, code, dumpStreams) => {
|
|
9190
9202
|
log?.(
|
|
9191
|
-
`[
|
|
9203
|
+
`[AgentCode] ${label} exitCode=${code === null ? "null" : String(code)} stderrBytes=${stderr.length} stdoutBytes=${stdout.length}`
|
|
9192
9204
|
);
|
|
9193
9205
|
if (!dumpStreams) {
|
|
9194
9206
|
return;
|
|
@@ -9196,16 +9208,16 @@ function runOpenCodeAgent(cwd, args, options) {
|
|
|
9196
9208
|
const errBody = stderr.trim();
|
|
9197
9209
|
const outBody = stdout.trim();
|
|
9198
9210
|
if (errBody) {
|
|
9199
|
-
log?.(`[
|
|
9211
|
+
log?.(`[AgentCode] stderr:
|
|
9200
9212
|
${truncateForDiag(errBody, DIAG_STDERR_MAX)}`);
|
|
9201
9213
|
} else {
|
|
9202
|
-
log?.("[
|
|
9214
|
+
log?.("[AgentCode] stderr: (empty)");
|
|
9203
9215
|
}
|
|
9204
9216
|
if (outBody) {
|
|
9205
|
-
log?.(`[
|
|
9217
|
+
log?.(`[AgentCode] stdout:
|
|
9206
9218
|
${truncateForDiag(outBody, DIAG_STDOUT_MAX)}`);
|
|
9207
9219
|
} else {
|
|
9208
|
-
log?.("[
|
|
9220
|
+
log?.("[AgentCode] stdout: (empty)");
|
|
9209
9221
|
}
|
|
9210
9222
|
};
|
|
9211
9223
|
const settle = (result, diag) => {
|
|
@@ -9249,7 +9261,7 @@ ${truncateForDiag(outBody, DIAG_STDOUT_MAX)}`);
|
|
|
9249
9261
|
child.on("error", (err) => {
|
|
9250
9262
|
clearTimeout(timer);
|
|
9251
9263
|
clearAbortHandler();
|
|
9252
|
-
log?.(`[
|
|
9264
|
+
log?.(`[AgentCode] spawn error: ${err.message}`);
|
|
9253
9265
|
settle({
|
|
9254
9266
|
ok: false,
|
|
9255
9267
|
message: err.message
|
|
@@ -9290,7 +9302,7 @@ ${truncateForDiag(outBody, DIAG_STDOUT_MAX)}`);
|
|
|
9290
9302
|
});
|
|
9291
9303
|
}
|
|
9292
9304
|
|
|
9293
|
-
//
|
|
9305
|
+
// src/analysis/aceTraceNormalize.ts
|
|
9294
9306
|
var fs11 = __toESM(require("fs"));
|
|
9295
9307
|
var ACE_VERSION = "1.0.0-draft";
|
|
9296
9308
|
var REASONING_PHASES = /* @__PURE__ */ new Set([
|
|
@@ -9491,11 +9503,11 @@ function rewriteAceTraceFileWithCanonicalEnvelope(traceAbsolutePath, canonical,
|
|
|
9491
9503
|
return true;
|
|
9492
9504
|
}
|
|
9493
9505
|
|
|
9494
|
-
//
|
|
9506
|
+
// src/analysis/aceOfflineLearn.ts
|
|
9495
9507
|
var fs14 = __toESM(require("fs"));
|
|
9496
9508
|
var path14 = __toESM(require("path"));
|
|
9497
9509
|
|
|
9498
|
-
//
|
|
9510
|
+
// src/analysis/aceCuratorApplier.ts
|
|
9499
9511
|
var fs12 = __toESM(require("fs"));
|
|
9500
9512
|
var path12 = __toESM(require("path"));
|
|
9501
9513
|
function writeJson(pathAbs, obj) {
|
|
@@ -9613,7 +9625,7 @@ function applyAceCuratorDeltaFile(worktreeRoot, deltaAbsolutePath, log) {
|
|
|
9613
9625
|
return { ok: true, message: "Applied curator delta" };
|
|
9614
9626
|
}
|
|
9615
9627
|
|
|
9616
|
-
//
|
|
9628
|
+
// src/analysis/aceOfflineLearnFallbacks.ts
|
|
9617
9629
|
var fs13 = __toESM(require("fs"));
|
|
9618
9630
|
var path13 = __toESM(require("path"));
|
|
9619
9631
|
var ACE_VERSION2 = "1.0.0-draft";
|
|
@@ -9645,7 +9657,7 @@ function appendAceConsolidatedSessionRecord(contextDir2, record, diagnosticLog)
|
|
|
9645
9657
|
diagnosticLog?.(`[ace] consolidated session record appended \u2014 ${rel}`);
|
|
9646
9658
|
}
|
|
9647
9659
|
|
|
9648
|
-
//
|
|
9660
|
+
// src/analysis/aceOfflineLearn.ts
|
|
9649
9661
|
var ACE_REFLECTOR_AGENT_STEM = "agent-ace-reflector";
|
|
9650
9662
|
var ACE_CURATOR_AGENT_STEM = "agent-ace-curator";
|
|
9651
9663
|
function expandArgvTemplate(template, vars) {
|
|
@@ -9977,7 +9989,7 @@ async function runAceOfflineLearnFromTrace(traceAbsolutePath, opts) {
|
|
|
9977
9989
|
};
|
|
9978
9990
|
}
|
|
9979
9991
|
|
|
9980
|
-
//
|
|
9992
|
+
// src/analysis/aceTracePhase.ts
|
|
9981
9993
|
var ACE_TRACE_RECORDER_AGENT_STEM = "agent-ace-trace-recorder";
|
|
9982
9994
|
function expandArgvTemplate2(template, vars) {
|
|
9983
9995
|
return template.map((part) => {
|
|
@@ -10185,7 +10197,7 @@ async function runAceTracePhase(params) {
|
|
|
10185
10197
|
return { ok: true, message: "ACE trace OK", traceAbsolutePath: traceAbs };
|
|
10186
10198
|
}
|
|
10187
10199
|
|
|
10188
|
-
//
|
|
10200
|
+
// src/analysis/coordinationListJsonValidate.ts
|
|
10189
10201
|
var fs16 = __toESM(require("fs"));
|
|
10190
10202
|
var import__2 = __toESM(require__());
|
|
10191
10203
|
function stripUtf8Bom3(s) {
|
|
@@ -10402,7 +10414,7 @@ function formatCoordinationJsonRepairAppendix(outputBasename, failure, rawFilePr
|
|
|
10402
10414
|
return lines.join("\n");
|
|
10403
10415
|
}
|
|
10404
10416
|
|
|
10405
|
-
//
|
|
10417
|
+
// src/analysis/markdownEvidenceIndexValidate.ts
|
|
10406
10418
|
var fs17 = __toESM(require("fs"));
|
|
10407
10419
|
var EVIDENCE_HEADING = "## Evidence index";
|
|
10408
10420
|
function evidenceIndexMentionsReadmeMd(body) {
|
|
@@ -10571,7 +10583,7 @@ function formatMarkdownEvidenceRepairAppendix(outputFileAbsolute, kind = "empty"
|
|
|
10571
10583
|
].join("\n");
|
|
10572
10584
|
}
|
|
10573
10585
|
|
|
10574
|
-
//
|
|
10586
|
+
// src/analysis/openQuestionResolution.ts
|
|
10575
10587
|
var fs18 = __toESM(require("fs"));
|
|
10576
10588
|
var path16 = __toESM(require("path"));
|
|
10577
10589
|
var OPEN_QUESTION_RESOLUTION_JSON_BASENAME = "open-question-resolution.json";
|
|
@@ -10631,7 +10643,7 @@ function deleteOpenQuestionResolutionFile(worktreeRoot) {
|
|
|
10631
10643
|
}
|
|
10632
10644
|
}
|
|
10633
10645
|
|
|
10634
|
-
//
|
|
10646
|
+
// src/analysis/openQuestionsSectionValidate.ts
|
|
10635
10647
|
var fs19 = __toESM(require("fs"));
|
|
10636
10648
|
var path17 = __toESM(require("path"));
|
|
10637
10649
|
var CANONICAL_NORMALIZED = "open questions";
|
|
@@ -10798,7 +10810,7 @@ function formatOpenQuestionsProducerRepairAppendix(outputFileAbsolute, stepLabel
|
|
|
10798
10810
|
].join("\n");
|
|
10799
10811
|
}
|
|
10800
10812
|
|
|
10801
|
-
//
|
|
10813
|
+
// src/analysis/openCodeTestAgent.ts
|
|
10802
10814
|
var CITATION_EXAMPLE = "`src/example.ts:42` or `src/example.ts:10-25`";
|
|
10803
10815
|
function contextDir(worktreeRoot) {
|
|
10804
10816
|
return path18.join(worktreeRoot, ".gluecharm", "context");
|
|
@@ -11359,7 +11371,7 @@ async function runOpenCodeResolveOpenQuestionStep(opts) {
|
|
|
11359
11371
|
diagnosticLog: opts.diagnosticLog
|
|
11360
11372
|
});
|
|
11361
11373
|
opts.diagnosticLog?.(
|
|
11362
|
-
`[
|
|
11374
|
+
`[AgentCode] resolve open question \u2014 prompt: ${promptPath} (${Buffer.byteLength(body, "utf8")} bytes)`
|
|
11363
11375
|
);
|
|
11364
11376
|
opts.onRemediationPhase?.("generating");
|
|
11365
11377
|
const cli = await runOpenCodeAgent(opts.worktreeRoot, argv, {
|
|
@@ -11439,7 +11451,7 @@ async function runSynthesisMarkdownRemediationChain(common, step, workspaceLabel
|
|
|
11439
11451
|
stepLabel: common.stewardshipStepLabel,
|
|
11440
11452
|
diagnosticLog: common.diagnosticLog
|
|
11441
11453
|
});
|
|
11442
|
-
common.diagnosticLog?.(`[
|
|
11454
|
+
common.diagnosticLog?.(`[AgentCode] prompt file: ${promptPath} (${Buffer.byteLength(body, "utf8")} bytes)`);
|
|
11443
11455
|
common.onRemediationPhase?.("generating");
|
|
11444
11456
|
const cli = await runOpenCodeAgent(common.worktreeRoot, argv, {
|
|
11445
11457
|
timeoutMs: common.timeoutMs,
|
|
@@ -11563,7 +11575,7 @@ async function runDetailMarkdownRemediationChain(common, target, initialMarkdown
|
|
|
11563
11575
|
stepLabel: common.stewardshipStepLabel,
|
|
11564
11576
|
diagnosticLog: common.diagnosticLog
|
|
11565
11577
|
});
|
|
11566
|
-
common.diagnosticLog?.(`[
|
|
11578
|
+
common.diagnosticLog?.(`[AgentCode] prompt file: ${promptPath} (${Buffer.byteLength(body, "utf8")} bytes)`);
|
|
11567
11579
|
common.onRemediationPhase?.("generating");
|
|
11568
11580
|
const cli = await runOpenCodeAgent(common.worktreeRoot, argv, {
|
|
11569
11581
|
timeoutMs: common.timeoutMs,
|
|
@@ -11975,7 +11987,7 @@ Run **Materialize agents** first (copies list schemas into this folder\u2019s \`
|
|
|
11975
11987
|
diagnosticLog: opts.diagnosticLog
|
|
11976
11988
|
});
|
|
11977
11989
|
const byteLen = Buffer.byteLength(body, "utf8");
|
|
11978
|
-
opts.diagnosticLog?.(`[
|
|
11990
|
+
opts.diagnosticLog?.(`[AgentCode] prompt file: ${promptPath} (${byteLen} bytes)`);
|
|
11979
11991
|
opts.onRemediationPhase?.("generating");
|
|
11980
11992
|
const isFollowUpSpawn = followUpSid !== void 0;
|
|
11981
11993
|
const cli = await runOpenCodeAgent(opts.worktreeRoot, argv, {
|
|
@@ -12020,7 +12032,7 @@ Run **Materialize agents** first (copies list schemas into this folder\u2019s \`
|
|
|
12020
12032
|
lastArtefactBytes = artefact.bytes;
|
|
12021
12033
|
const artefactReason = artefact.reason === "missing" ? "file does not exist" : artefact.reason === "empty" ? "file exists but is empty (0 bytes)" : artefact.reason === "not_a_file" ? "path exists but is not a regular file" : "";
|
|
12022
12034
|
opts.diagnosticLog?.(
|
|
12023
|
-
artefactOk ? `[
|
|
12035
|
+
artefactOk ? `[AgentCode] expected output in worktree: FOUND \u2014 ${outputFileAbsolute} (${artefact.bytes} bytes)` : `[AgentCode] expected output in worktree: NOT FOUND \u2014 ${outputFileAbsolute} (${artefactReason})`
|
|
12024
12036
|
);
|
|
12025
12037
|
if (!cliProcessOk) {
|
|
12026
12038
|
break;
|
|
@@ -12035,7 +12047,7 @@ Run **Materialize agents** first (copies list schemas into this folder\u2019s \`
|
|
|
12035
12047
|
const artefactReasonKey = r === "empty" || r === "not_a_file" ? r : "missing";
|
|
12036
12048
|
repairAppendix = formatCoordinationJsonMissingArtefactRepairAppendix(outputBasename, artefactReasonKey);
|
|
12037
12049
|
opts.diagnosticLog?.(
|
|
12038
|
-
`[
|
|
12050
|
+
`[AgentCode] list JSON artefact missing or empty \u2014 re-running with repair appendix (run ${attempt + 2} of ${totalRuns})`
|
|
12039
12051
|
);
|
|
12040
12052
|
continue;
|
|
12041
12053
|
}
|
|
@@ -12044,7 +12056,7 @@ Run **Materialize agents** first (copies list schemas into this folder\u2019s \`
|
|
|
12044
12056
|
if (ev.ok) {
|
|
12045
12057
|
validationOk = true;
|
|
12046
12058
|
sessionIdForAceTrace = capturedOpenCodeSessionId;
|
|
12047
|
-
opts.diagnosticLog?.(`[
|
|
12059
|
+
opts.diagnosticLog?.(`[AgentCode] markdown Evidence index validation passed \u2014 ${outputFileAbsolute}`);
|
|
12048
12060
|
if (opts.step !== "docsProject" && opts.step !== "architecture") {
|
|
12049
12061
|
validationOk = false;
|
|
12050
12062
|
validationFailureText = `Internal error: expected docsProject or architecture in markdown path, got **${opts.step}**.`;
|
|
@@ -12124,14 +12136,14 @@ Run **Materialize agents** first (copies list schemas into this folder\u2019s \`
|
|
|
12124
12136
|
if (val.ok) {
|
|
12125
12137
|
validationOk = true;
|
|
12126
12138
|
sessionIdForAceTrace = capturedOpenCodeSessionId;
|
|
12127
|
-
opts.diagnosticLog?.(`[
|
|
12139
|
+
opts.diagnosticLog?.(`[AgentCode] list JSON passed schema validation \u2014 ${outputFileAbsolute}`);
|
|
12128
12140
|
break;
|
|
12129
12141
|
}
|
|
12130
12142
|
validationOk = false;
|
|
12131
12143
|
const f = val.failure;
|
|
12132
12144
|
validationFailureText = f.kind === "schema" ? f.errorsText : f.kind === "parse" ? f.message : f.message;
|
|
12133
12145
|
opts.diagnosticLog?.(
|
|
12134
|
-
`[
|
|
12146
|
+
`[AgentCode] list JSON validation failed (${f.kind}) \u2014 ${validationFailureText.slice(0, 600)}${validationFailureText.length > 600 ? "\u2026" : ""}`
|
|
12135
12147
|
);
|
|
12136
12148
|
if (attempt >= maxRepairAttempts) {
|
|
12137
12149
|
break;
|
|
@@ -12139,7 +12151,7 @@ Run **Materialize agents** first (copies list schemas into this folder\u2019s \`
|
|
|
12139
12151
|
const preview = f.kind === "parse" ? readCoordinationJsonPreview(outputFileAbsolute) : void 0;
|
|
12140
12152
|
repairAppendix = formatCoordinationJsonRepairAppendix(outputBasename, f, preview);
|
|
12141
12153
|
opts.diagnosticLog?.(
|
|
12142
|
-
`[
|
|
12154
|
+
`[AgentCode] re-running coordination list agent with schema repair appendix (run ${attempt + 2} of ${totalRuns})`
|
|
12143
12155
|
);
|
|
12144
12156
|
}
|
|
12145
12157
|
const tail = lastCliMessage.length > 12e3 ? `${lastCliMessage.slice(0, 12e3)}
|
|
@@ -12313,7 +12325,7 @@ async function runOpenCodeMarkdownDetailStep(opts) {
|
|
|
12313
12325
|
diagnosticLog: opts.diagnosticLog
|
|
12314
12326
|
});
|
|
12315
12327
|
const byteLen = Buffer.byteLength(body, "utf8");
|
|
12316
|
-
opts.diagnosticLog?.(`[
|
|
12328
|
+
opts.diagnosticLog?.(`[AgentCode] prompt file: ${promptPath} (${byteLen} bytes)`);
|
|
12317
12329
|
opts.onRemediationPhase?.("generating");
|
|
12318
12330
|
const isFollowUpSpawn = followUpSid !== void 0;
|
|
12319
12331
|
const cli = await runOpenCodeAgent(opts.worktreeRoot, argv, {
|
|
@@ -12357,7 +12369,7 @@ async function runOpenCodeMarkdownDetailStep(opts) {
|
|
|
12357
12369
|
artefactOk = artefact.generated;
|
|
12358
12370
|
const artefactReason = artefact.reason === "missing" ? "file does not exist" : artefact.reason === "empty" ? "file exists but is empty (0 bytes)" : artefact.reason === "not_a_file" ? "path exists but is not a regular file" : "";
|
|
12359
12371
|
opts.diagnosticLog?.(
|
|
12360
|
-
artefactOk ? `[
|
|
12372
|
+
artefactOk ? `[AgentCode] expected output in worktree: FOUND \u2014 ${outputFileAbsolute} (${artefact.bytes} bytes)` : `[AgentCode] expected output in worktree: NOT FOUND \u2014 ${outputFileAbsolute} (${artefactReason})`
|
|
12361
12373
|
);
|
|
12362
12374
|
if (!cliProcessOk) {
|
|
12363
12375
|
break;
|
|
@@ -12369,7 +12381,7 @@ async function runOpenCodeMarkdownDetailStep(opts) {
|
|
|
12369
12381
|
if (ev.ok) {
|
|
12370
12382
|
validationOk = true;
|
|
12371
12383
|
sessionIdForAceTrace = capturedOpenCodeSessionId;
|
|
12372
|
-
opts.diagnosticLog?.(`[
|
|
12384
|
+
opts.diagnosticLog?.(`[AgentCode] markdown Evidence index validation passed \u2014 ${outputFileAbsolute}`);
|
|
12373
12385
|
const producerLabel = `${MARKDOWN_DETAIL_RUN_STEP} \xB7 ${opts.target.displayName} \xB7 ${outputBasename}`;
|
|
12374
12386
|
const oqRes = await remediateOpenQuestionsForContextMarkdown(
|
|
12375
12387
|
{ type: "detail", target: opts.target },
|
|
@@ -12527,7 +12539,7 @@ Expected output: ${outputFileAbsolute}`;
|
|
|
12527
12539
|
};
|
|
12528
12540
|
}
|
|
12529
12541
|
|
|
12530
|
-
//
|
|
12542
|
+
// src/analysis/worktreeManager.ts
|
|
12531
12543
|
var import_child_process2 = require("child_process");
|
|
12532
12544
|
var fs21 = __toESM(require("fs"));
|
|
12533
12545
|
var os = __toESM(require("os"));
|
|
@@ -12635,7 +12647,7 @@ function createAnalysisWorktree(repoRoot) {
|
|
|
12635
12647
|
};
|
|
12636
12648
|
}
|
|
12637
12649
|
|
|
12638
|
-
//
|
|
12650
|
+
// src/stores/analysisArtefactRunStore.ts
|
|
12639
12651
|
var STORAGE_KEY = "easyspecs.analysis.artefactRun.v1";
|
|
12640
12652
|
function randomRunId() {
|
|
12641
12653
|
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
@@ -12708,7 +12720,7 @@ function cloneArtefactWorkItem(item) {
|
|
|
12708
12720
|
return JSON.parse(JSON.stringify(item));
|
|
12709
12721
|
}
|
|
12710
12722
|
|
|
12711
|
-
//
|
|
12723
|
+
// src/stores/analysisDiscoveriesStore.ts
|
|
12712
12724
|
var agentsLaunchedCount = 0;
|
|
12713
12725
|
var syncHandler;
|
|
12714
12726
|
function noteOpenCodeAgentLaunched() {
|
|
@@ -12716,19 +12728,19 @@ function noteOpenCodeAgentLaunched() {
|
|
|
12716
12728
|
syncHandler?.(agentsLaunchedCount);
|
|
12717
12729
|
}
|
|
12718
12730
|
|
|
12719
|
-
//
|
|
12731
|
+
// src/contextIndexAssembler.ts
|
|
12720
12732
|
var fs24 = __toESM(require("fs"));
|
|
12721
12733
|
var path22 = __toESM(require("path"));
|
|
12722
12734
|
|
|
12723
|
-
//
|
|
12735
|
+
// src/srsModel.ts
|
|
12724
12736
|
var APPLICATION_CONTEXT_KIND = "easyspecs.application-context";
|
|
12725
12737
|
|
|
12726
|
-
//
|
|
12738
|
+
// src/indexApplicationContextValidate.ts
|
|
12727
12739
|
var import__3 = __toESM(require__());
|
|
12728
12740
|
var fs23 = __toESM(require("fs"));
|
|
12729
12741
|
var path21 = __toESM(require("path"));
|
|
12730
12742
|
|
|
12731
|
-
//
|
|
12743
|
+
// src/shared/repoResourcesRoot.ts
|
|
12732
12744
|
var fs22 = __toESM(require("node:fs"));
|
|
12733
12745
|
var path20 = __toESM(require("node:path"));
|
|
12734
12746
|
var CONTEXT_LIST_MARKER = path20.join("schemas", "context-lists", "zero-reference-classifier-record.schema.json");
|
|
@@ -12754,7 +12766,7 @@ function resolveIndexApplicationContextSchemaPath() {
|
|
|
12754
12766
|
return path20.join(resolveRepoResourcesRoot(), "schemas", "index-application-context.schema.json");
|
|
12755
12767
|
}
|
|
12756
12768
|
|
|
12757
|
-
//
|
|
12769
|
+
// src/indexApplicationContextValidate.ts
|
|
12758
12770
|
var validators = /* @__PURE__ */ new Map();
|
|
12759
12771
|
function getDefaultIndexSchemaPath() {
|
|
12760
12772
|
return resolveIndexApplicationContextSchemaPath();
|
|
@@ -12789,7 +12801,7 @@ function validateIndexApplicationContextJson(doc, schemaPath = getDefaultIndexSc
|
|
|
12789
12801
|
return { ok: false, errors: formatAjvErrors3(validate) };
|
|
12790
12802
|
}
|
|
12791
12803
|
|
|
12792
|
-
//
|
|
12804
|
+
// src/contextIndexAssembler.ts
|
|
12793
12805
|
var SLUG = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
12794
12806
|
function safeStr(v) {
|
|
12795
12807
|
return typeof v === "string" ? v.trim() : "";
|
|
@@ -13226,11 +13238,11 @@ function writeIndexApplicationContext(contextDir2, title, options) {
|
|
|
13226
13238
|
return doc;
|
|
13227
13239
|
}
|
|
13228
13240
|
|
|
13229
|
-
//
|
|
13241
|
+
// src/analysis/aceAnalysisConfig.ts
|
|
13230
13242
|
var path23 = __toESM(require("node:path"));
|
|
13231
13243
|
var vscode2 = __toESM(require_vscode_stub());
|
|
13232
13244
|
|
|
13233
|
-
//
|
|
13245
|
+
// src/config/easyspecsAceConfigRead.ts
|
|
13234
13246
|
var fs25 = __toESM(require("node:fs"));
|
|
13235
13247
|
function readRawConfigJson(repoRoot) {
|
|
13236
13248
|
const p = easyspecsConfigPath(repoRoot);
|
|
@@ -13294,7 +13306,7 @@ function readAceOfflineLearnAfterSameSessionTraceFromEasyspecsConfigFile(repoRoo
|
|
|
13294
13306
|
return typeof v === "boolean" ? v : void 0;
|
|
13295
13307
|
}
|
|
13296
13308
|
|
|
13297
|
-
//
|
|
13309
|
+
// src/analysis/aceAnalysisConfig.ts
|
|
13298
13310
|
var SECTION = "easyspecs";
|
|
13299
13311
|
var cliWorkspaceRootOverride;
|
|
13300
13312
|
var cliHeadlessMode = false;
|
|
@@ -13374,7 +13386,7 @@ function getAceOfflineLearnAfterSameSessionTrace(analysisCheckoutRoot) {
|
|
|
13374
13386
|
return vscode2.workspace.getConfiguration(SECTION).get("analysis.ace.offlineLearnAfterSameSessionTrace") === true;
|
|
13375
13387
|
}
|
|
13376
13388
|
|
|
13377
|
-
//
|
|
13389
|
+
// src/analysis/repoSurfaceAssessment.ts
|
|
13378
13390
|
var fs26 = __toESM(require("fs"));
|
|
13379
13391
|
var path24 = __toESM(require("path"));
|
|
13380
13392
|
var REPO_SURFACE_SCAN_BASENAME = "repo-surface-scan.json";
|
|
@@ -13422,7 +13434,7 @@ function writeEmptyExperiencesListJson(contextDir2) {
|
|
|
13422
13434
|
);
|
|
13423
13435
|
}
|
|
13424
13436
|
|
|
13425
|
-
//
|
|
13437
|
+
// src/analysis/contextArtefactPipeline.ts
|
|
13426
13438
|
var FE = /^FE-\d+$/;
|
|
13427
13439
|
var UC = /^UC-\d+$/;
|
|
13428
13440
|
var SC = /^SC-\d+$/;
|
|
@@ -13656,7 +13668,7 @@ function skipPendingBlockedBySkippedParents(byId, skippedWorkItemIds, log) {
|
|
|
13656
13668
|
item.status = "skipped";
|
|
13657
13669
|
item.lastError = `Skipped: dependency ${pid} did not complete (parent step was skipped).`;
|
|
13658
13670
|
skippedWorkItemIds.push(id);
|
|
13659
|
-
log(`[
|
|
13671
|
+
log(`[queue] cascade skip ${id} \u2014 blocked by skipped parent ${pid}`);
|
|
13660
13672
|
progressed = true;
|
|
13661
13673
|
break;
|
|
13662
13674
|
}
|
|
@@ -13908,7 +13920,7 @@ function requeueIfUnblocked(byId, fifo, log) {
|
|
|
13908
13920
|
continue;
|
|
13909
13921
|
}
|
|
13910
13922
|
fifo.push(id);
|
|
13911
|
-
log(`[
|
|
13923
|
+
log(`[queue] unblocked ${id} (dependency satisfied)`);
|
|
13912
13924
|
}
|
|
13913
13925
|
}
|
|
13914
13926
|
async function runArtefactWorkItemOpenCode(item, worktreeRoot, workspaceLabel, oc, log, abortSignal, onRemediationPhase, artefactRunId) {
|
|
@@ -13944,7 +13956,7 @@ async function runArtefactWorkItemOpenCode(item, worktreeRoot, workspaceLabel, o
|
|
|
13944
13956
|
if (assessment.hasUi === false) {
|
|
13945
13957
|
writeEmptyExperiencesListJson(contextDir2);
|
|
13946
13958
|
log(
|
|
13947
|
-
"[
|
|
13959
|
+
"[context] listExperiences: hasUi=false \u2014 wrote empty experiences-list.json (skipped AgentCode experiences agent)."
|
|
13948
13960
|
);
|
|
13949
13961
|
return {
|
|
13950
13962
|
ok: true,
|
|
@@ -14021,7 +14033,7 @@ async function runArtefactWorkItemWithPipelineRetries(item, worktreeRoot, worksp
|
|
|
14021
14033
|
return { ok: false, message: result.message || "Remediation stopped.", outerAttempts, cancelled: true };
|
|
14022
14034
|
}
|
|
14023
14035
|
if (!result.ok) {
|
|
14024
|
-
log(`[
|
|
14036
|
+
log(`[pool] retry ${item.id} after first failure`);
|
|
14025
14037
|
result = await runArtefactWorkItemOpenCode(
|
|
14026
14038
|
item,
|
|
14027
14039
|
worktreeRoot,
|
|
@@ -14106,7 +14118,7 @@ async function drainArtefactWorkPool(p) {
|
|
|
14106
14118
|
}
|
|
14107
14119
|
item.status = "running";
|
|
14108
14120
|
await persist();
|
|
14109
|
-
log(`[
|
|
14121
|
+
log(`[pool] start ${id} (active ${active}/${maxC})`);
|
|
14110
14122
|
const r = await runArtefactWorkItemWithPipelineRetries(
|
|
14111
14123
|
item,
|
|
14112
14124
|
worktreeRoot,
|
|
@@ -14125,7 +14137,7 @@ async function drainArtefactWorkPool(p) {
|
|
|
14125
14137
|
item.status = "skipped";
|
|
14126
14138
|
pushSkippedOnce(id);
|
|
14127
14139
|
item.lastError = (r.message || "Stopped by user.").slice(0, 4e3);
|
|
14128
|
-
log(`[
|
|
14140
|
+
log(`[pool] stopped ${id}`);
|
|
14129
14141
|
await persist();
|
|
14130
14142
|
active -= 1;
|
|
14131
14143
|
await p.onItemComplete?.(id);
|
|
@@ -14141,7 +14153,7 @@ async function drainArtefactWorkPool(p) {
|
|
|
14141
14153
|
item.openCodeSessionCapturedAtIso = r.openCodeSessionCapturedAtIso;
|
|
14142
14154
|
item.openCodeSessionPhase = "primary";
|
|
14143
14155
|
}
|
|
14144
|
-
log(`[
|
|
14156
|
+
log(`[pool] complete ${id}`);
|
|
14145
14157
|
if (!abortSignal?.aborted) {
|
|
14146
14158
|
expandAfterSuccess(item, contextDir2, byId, fifo);
|
|
14147
14159
|
requeueIfUnblocked(byId, fifo, log);
|
|
@@ -14150,7 +14162,7 @@ async function drainArtefactWorkPool(p) {
|
|
|
14150
14162
|
item.status = "skipped";
|
|
14151
14163
|
item.lastError = result.message.slice(0, 4e3);
|
|
14152
14164
|
pushSkippedOnce(id);
|
|
14153
|
-
log(`[
|
|
14165
|
+
log(`[pool] skipped ${id} after 2 attempts \u2014 ${item.lastError.slice(0, 500)}`);
|
|
14154
14166
|
if (!abortSignal?.aborted) {
|
|
14155
14167
|
skipPendingBlockedBySkippedParents(byId, skippedWorkItemIds, log);
|
|
14156
14168
|
requeueIfUnblocked(byId, fifo, log);
|
|
@@ -14205,9 +14217,9 @@ async function prepareContextArtefactWorktreeOnly(storageContext, repoRoot, log,
|
|
|
14205
14217
|
finalized = true;
|
|
14206
14218
|
try {
|
|
14207
14219
|
handle.remove();
|
|
14208
|
-
log(`[
|
|
14220
|
+
log(`[worktree] removed: ${handle.path}`);
|
|
14209
14221
|
} catch (e) {
|
|
14210
|
-
log(`[
|
|
14222
|
+
log(`[worktree] remove error: ${e instanceof Error ? e.message : String(e)}`);
|
|
14211
14223
|
}
|
|
14212
14224
|
};
|
|
14213
14225
|
return { ok: true, handle, finalize, sourceBranchAtCreation: wt.sourceBranchAtCreation };
|
|
@@ -14242,7 +14254,7 @@ async function runContextArtefactPipelineDrainFromPreparedWorktree(storageContex
|
|
|
14242
14254
|
});
|
|
14243
14255
|
if (cancelled) {
|
|
14244
14256
|
await finishArtefactRun(storageContext, false);
|
|
14245
|
-
log(`[
|
|
14257
|
+
log(`[context] pipeline stopped by user \u2014 worktree retained at ${handle.path} for debugging`);
|
|
14246
14258
|
return {
|
|
14247
14259
|
ok: false,
|
|
14248
14260
|
error: "Analysis stopped by user.",
|
|
@@ -14252,7 +14264,7 @@ async function runContextArtefactPipelineDrainFromPreparedWorktree(storageContex
|
|
|
14252
14264
|
}
|
|
14253
14265
|
await finishArtefactRun(storageContext, true);
|
|
14254
14266
|
log(
|
|
14255
|
-
`[
|
|
14267
|
+
`[queue] drained \u2014 done=${[...byId.values()].filter((x) => x.status === "done").length} skipped=${skippedWorkItemIds.length}`
|
|
14256
14268
|
);
|
|
14257
14269
|
let indexApplicationContext;
|
|
14258
14270
|
try {
|
|
@@ -14260,12 +14272,12 @@ async function runContextArtefactPipelineDrainFromPreparedWorktree(storageContex
|
|
|
14260
14272
|
sourceBranchAtWorktreeCreation: sourceBranchAtCreation
|
|
14261
14273
|
});
|
|
14262
14274
|
log(
|
|
14263
|
-
`[
|
|
14275
|
+
`[index] After synthesis: index-application-context.json written under ${contextDir2} (JSON Schema validated)`
|
|
14264
14276
|
);
|
|
14265
14277
|
indexApplicationContext = { ok: true };
|
|
14266
14278
|
} catch (e) {
|
|
14267
14279
|
const msg = e instanceof Error ? e.message : String(e);
|
|
14268
|
-
log(`[
|
|
14280
|
+
log(`[index] After synthesis: index assembly / validation failed \u2014 ${msg}`);
|
|
14269
14281
|
indexApplicationContext = { ok: false, error: msg };
|
|
14270
14282
|
}
|
|
14271
14283
|
return {
|
|
@@ -14278,7 +14290,7 @@ async function runContextArtefactPipelineDrainFromPreparedWorktree(storageContex
|
|
|
14278
14290
|
};
|
|
14279
14291
|
} catch (e) {
|
|
14280
14292
|
const msg = e instanceof Error ? e.message : String(e);
|
|
14281
|
-
log(`[
|
|
14293
|
+
log(`[context] pipeline error: ${msg}`);
|
|
14282
14294
|
await finishArtefactRun(storageContext, false);
|
|
14283
14295
|
finalize();
|
|
14284
14296
|
return { ok: false, error: msg };
|
|
@@ -14315,7 +14327,7 @@ async function runContextArtefactPipelineAsync(storageContext, repoRoot, workspa
|
|
|
14315
14327
|
);
|
|
14316
14328
|
}
|
|
14317
14329
|
|
|
14318
|
-
//
|
|
14330
|
+
// src/workspaceContextPromote.ts
|
|
14319
14331
|
var fs28 = __toESM(require("fs"));
|
|
14320
14332
|
var path26 = __toESM(require("path"));
|
|
14321
14333
|
function promoteContextDirectoryToWorkspaceFs(sourceContextDir, workspaceRootFs) {
|
|
@@ -14342,7 +14354,7 @@ function promoteContextDirectoryToWorkspaceFs(sourceContextDir, workspaceRootFs)
|
|
|
14342
14354
|
return { filesCopied };
|
|
14343
14355
|
}
|
|
14344
14356
|
|
|
14345
|
-
//
|
|
14357
|
+
// src/shared/macroPhaseExitConditions.ts
|
|
14346
14358
|
var MACRO_PHASE_EXIT_CONDITIONS = {
|
|
14347
14359
|
create_analysis_worktree: "Git analysis checkout exists under the configured temp parent (SRS-8); ready for agent materialization.",
|
|
14348
14360
|
materialize_opencode_agents: "Bundled OpenCode agent definitions are copied into the analysis worktree (`.opencode/` tree).",
|
|
@@ -14354,7 +14366,7 @@ var MACRO_PHASE_EXIT_CONDITIONS = {
|
|
|
14354
14366
|
backend_context_sync: "Context upload finished with no failures (quiet SRS-13 path; or cancel)."
|
|
14355
14367
|
};
|
|
14356
14368
|
|
|
14357
|
-
//
|
|
14369
|
+
// src/analysis/macroAnalysisOrchestrator.ts
|
|
14358
14370
|
var MACRO_PHASE_KEYS = [
|
|
14359
14371
|
"create_analysis_worktree",
|
|
14360
14372
|
"materialize_opencode_agents",
|
|
@@ -14758,11 +14770,11 @@ async function runMacroAnalysisOrchestration(deps) {
|
|
|
14758
14770
|
}
|
|
14759
14771
|
}
|
|
14760
14772
|
|
|
14761
|
-
//
|
|
14773
|
+
// src/analysis/macroHeadlessHost.ts
|
|
14762
14774
|
var fs39 = __toESM(require("node:fs"));
|
|
14763
14775
|
var path38 = __toESM(require("node:path"));
|
|
14764
14776
|
|
|
14765
|
-
//
|
|
14777
|
+
// src/stores/analysisPipelineStore.ts
|
|
14766
14778
|
var STORAGE_KEY2 = "easyspecs.analysis.pipelineRun.v1";
|
|
14767
14779
|
function randomRunId2() {
|
|
14768
14780
|
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
@@ -14821,7 +14833,7 @@ async function finishPipelineRun(context, ok) {
|
|
|
14821
14833
|
});
|
|
14822
14834
|
}
|
|
14823
14835
|
|
|
14824
|
-
//
|
|
14836
|
+
// src/stores/analysisWorkspaceStore.ts
|
|
14825
14837
|
var STORAGE_KEY3 = "easyspecs.analysis.workspaceState.v1";
|
|
14826
14838
|
function readAnalysisWorkspaceSnapshot(context) {
|
|
14827
14839
|
const raw = context.workspaceState.get(STORAGE_KEY3);
|
|
@@ -14859,11 +14871,11 @@ async function noteAgentsMaterialized(context) {
|
|
|
14859
14871
|
});
|
|
14860
14872
|
}
|
|
14861
14873
|
|
|
14862
|
-
//
|
|
14874
|
+
// src/analysis/missingArtefacts.ts
|
|
14863
14875
|
var fs30 = __toESM(require("fs"));
|
|
14864
14876
|
var path28 = __toESM(require("path"));
|
|
14865
14877
|
|
|
14866
|
-
//
|
|
14878
|
+
// src/analysis/analysisDetailMarkdownDiscovery.ts
|
|
14867
14879
|
var fs29 = __toESM(require("fs"));
|
|
14868
14880
|
var path27 = __toESM(require("path"));
|
|
14869
14881
|
var SLUG3 = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
@@ -15141,7 +15153,7 @@ function collectExpectedDetailMarkdownBasenames(contextDir2) {
|
|
|
15141
15153
|
return set;
|
|
15142
15154
|
}
|
|
15143
15155
|
|
|
15144
|
-
//
|
|
15156
|
+
// src/analysis/missingArtefacts.ts
|
|
15145
15157
|
function fileAndValidationFromKind(kind) {
|
|
15146
15158
|
if (kind === "valid") {
|
|
15147
15159
|
return { filePresentYesNo: "yes", validationYesNo: "yes" };
|
|
@@ -15482,7 +15494,7 @@ function toMissingArtefactUiRows(rows, contextDir2, worktreeRoot) {
|
|
|
15482
15494
|
});
|
|
15483
15495
|
}
|
|
15484
15496
|
|
|
15485
|
-
//
|
|
15497
|
+
// src/analysis/remediationArtefactPool.ts
|
|
15486
15498
|
var path29 = __toESM(require("path"));
|
|
15487
15499
|
function reconcileSkippedWorkItemsWithDisk(byId, contextDir2, worktreeRoot) {
|
|
15488
15500
|
for (const item of byId.values()) {
|
|
@@ -15567,7 +15579,7 @@ async function runMissingArtefactsRemediationPool(p) {
|
|
|
15567
15579
|
} else {
|
|
15568
15580
|
await startArtefactRun(storageContext, repositoryRoot, worktreeRoot, itemsForStore);
|
|
15569
15581
|
}
|
|
15570
|
-
log(`[
|
|
15582
|
+
log(`[remediation] parallel remediation pool \u2014 ${rows.length} missing row(s), ${fifo.length} ready in initial fifo`);
|
|
15571
15583
|
const { cancelled, skippedWorkItemIds } = await drainArtefactWorkPool({
|
|
15572
15584
|
storageContext,
|
|
15573
15585
|
worktreeRoot,
|
|
@@ -15591,21 +15603,21 @@ async function runMissingArtefactsRemediationPool(p) {
|
|
|
15591
15603
|
writeIndexApplicationContext(contextDir2, void 0, {
|
|
15592
15604
|
sourceBranchAtWorktreeCreation
|
|
15593
15605
|
});
|
|
15594
|
-
log(`[
|
|
15606
|
+
log(`[index] After parallel remediation: index-application-context.json written under ${contextDir2}`);
|
|
15595
15607
|
} catch (e) {
|
|
15596
15608
|
indexOk = false;
|
|
15597
15609
|
indexError = e instanceof Error ? e.message : String(e);
|
|
15598
|
-
log(`[
|
|
15610
|
+
log(`[index] After parallel remediation: index assembly failed \u2014 ${indexError}`);
|
|
15599
15611
|
}
|
|
15600
15612
|
return { cancelled: false, skippedWorkItemIds, indexOk, ...indexError ? { indexError } : {} };
|
|
15601
15613
|
}
|
|
15602
15614
|
|
|
15603
|
-
//
|
|
15615
|
+
// src/analysis/coverageReferenceValidation.ts
|
|
15604
15616
|
var import_child_process3 = require("child_process");
|
|
15605
15617
|
var fs32 = __toESM(require("fs"));
|
|
15606
15618
|
var path31 = __toESM(require("path"));
|
|
15607
15619
|
|
|
15608
|
-
//
|
|
15620
|
+
// src/analysis/coverageReferenceValidationSchemaValidate.ts
|
|
15609
15621
|
var fs31 = __toESM(require("fs"));
|
|
15610
15622
|
var path30 = __toESM(require("path"));
|
|
15611
15623
|
var import__4 = __toESM(require__());
|
|
@@ -15676,7 +15688,7 @@ function readAndValidateCoverageReferenceValidationFile(jsonAbsolutePath) {
|
|
|
15676
15688
|
return { ok: true, data };
|
|
15677
15689
|
}
|
|
15678
15690
|
|
|
15679
|
-
//
|
|
15691
|
+
// src/analysis/coverageReferenceValidation.ts
|
|
15680
15692
|
var COVERAGE_REFERENCE_VALIDATION_BASENAME = "coverage-reference-validation.json";
|
|
15681
15693
|
var SKIP_CONTEXT_JSON = /* @__PURE__ */ new Set([
|
|
15682
15694
|
COVERAGE_REFERENCE_VALIDATION_BASENAME,
|
|
@@ -16122,12 +16134,12 @@ ${schemaCheck.errors.join("\n")}`,
|
|
|
16122
16134
|
return { ok: true, document, outputAbsolutePath: opts.write ? outPath : void 0 };
|
|
16123
16135
|
}
|
|
16124
16136
|
|
|
16125
|
-
//
|
|
16137
|
+
// src/analysis/zeroReferenceRemediation.ts
|
|
16126
16138
|
var crypto = __toESM(require("crypto"));
|
|
16127
16139
|
var fs34 = __toESM(require("fs"));
|
|
16128
16140
|
var path33 = __toESM(require("path"));
|
|
16129
16141
|
|
|
16130
|
-
//
|
|
16142
|
+
// src/analysis/zeroReferenceRemediationSchemaValidate.ts
|
|
16131
16143
|
var fs33 = __toESM(require("fs"));
|
|
16132
16144
|
var path32 = __toESM(require("path"));
|
|
16133
16145
|
var import__5 = __toESM(require__());
|
|
@@ -16183,7 +16195,7 @@ function validateZeroReferenceTriageDocumentData(data) {
|
|
|
16183
16195
|
return { ok: false, errors: formatAjvErrors5(validateTriageDoc.errors) };
|
|
16184
16196
|
}
|
|
16185
16197
|
|
|
16186
|
-
//
|
|
16198
|
+
// src/analysis/zeroReferenceRemediation.ts
|
|
16187
16199
|
var ZERO_REF_ROUTING_BASENAME = "zero-reference-routing.json";
|
|
16188
16200
|
var ZERO_REF_TRIAGE_BASENAME = "zero-reference-triage.json";
|
|
16189
16201
|
var ZERO_REF_CLASSIFY_AGENT_STEM = "agent-classify-unreferenced-file";
|
|
@@ -16749,7 +16761,7 @@ async function runClassifierAgent(common, contextDirAbs, targetFilePathPosix, wo
|
|
|
16749
16761
|
worktree: common.worktreeRoot
|
|
16750
16762
|
});
|
|
16751
16763
|
common.diagnosticLog?.(
|
|
16752
|
-
attempt === 0 ? `[
|
|
16764
|
+
attempt === 0 ? `[zero-ref] classifier prompt: ${promptPath}` : `[zero-ref] classifier repair run ${attempt + 1}/${ZERO_REF_STAGING_JSON_TOTAL_ATTEMPTS}: ${promptPath}`
|
|
16753
16765
|
);
|
|
16754
16766
|
const cli = await runOpenCodeAgent(common.worktreeRoot, argv, {
|
|
16755
16767
|
timeoutMs: common.timeoutMs,
|
|
@@ -16897,7 +16909,7 @@ async function runMarkdownReferenceAgent(common, contextDirAbs, targetFilePathPo
|
|
|
16897
16909
|
agentId: agentStem,
|
|
16898
16910
|
worktree: common.worktreeRoot
|
|
16899
16911
|
});
|
|
16900
|
-
common.diagnosticLog?.(`[
|
|
16912
|
+
common.diagnosticLog?.(`[zero-ref] ${which} markdown prompt: ${promptPath}`);
|
|
16901
16913
|
const cli = await runOpenCodeAgent(common.worktreeRoot, argv, {
|
|
16902
16914
|
timeoutMs: common.timeoutMs,
|
|
16903
16915
|
executable: common.executable,
|
|
@@ -16958,7 +16970,7 @@ async function runCoordinationTriageAgent(common, contextDirAbs, targetFilePathP
|
|
|
16958
16970
|
worktree: common.worktreeRoot
|
|
16959
16971
|
});
|
|
16960
16972
|
common.diagnosticLog?.(
|
|
16961
|
-
attempt === 0 ? `[
|
|
16973
|
+
attempt === 0 ? `[zero-ref] triage prompt: ${promptPath}` : `[zero-ref] triage repair run ${attempt + 1}/${ZERO_REF_STAGING_JSON_TOTAL_ATTEMPTS}: ${promptPath}`
|
|
16962
16974
|
);
|
|
16963
16975
|
const cli = await runOpenCodeAgent(common.worktreeRoot, argv, {
|
|
16964
16976
|
timeoutMs: common.timeoutMs,
|
|
@@ -17241,7 +17253,7 @@ async function runZeroReferenceRemediationPool(p) {
|
|
|
17241
17253
|
return { cancelled, completed, failures };
|
|
17242
17254
|
}
|
|
17243
17255
|
|
|
17244
|
-
//
|
|
17256
|
+
// src/analysis/referenceCoverageExecutionReport.ts
|
|
17245
17257
|
var fs35 = __toESM(require("fs"));
|
|
17246
17258
|
var path34 = __toESM(require("path"));
|
|
17247
17259
|
var REFERENCE_COVERAGE_EXECUTION_REPORT_BASENAME = "reference-coverage-execution-report.md";
|
|
@@ -17406,16 +17418,16 @@ async function runReferenceCoverageExecutionReport(p) {
|
|
|
17406
17418
|
}
|
|
17407
17419
|
return { ok: false, error: msg };
|
|
17408
17420
|
}
|
|
17409
|
-
p.diagnosticLog?.(`[
|
|
17421
|
+
p.diagnosticLog?.(`[report] wrote reference coverage execution report \u2014 ${outAbs}`);
|
|
17410
17422
|
return { ok: true, outputAbsolutePath: outAbs };
|
|
17411
17423
|
}
|
|
17412
17424
|
|
|
17413
|
-
//
|
|
17425
|
+
// src/analysis/contextSrsDiscoveryUpload.ts
|
|
17414
17426
|
var fs38 = __toESM(require("node:fs"));
|
|
17415
17427
|
var path37 = __toESM(require("node:path"));
|
|
17416
17428
|
var import_node_crypto = require("node:crypto");
|
|
17417
17429
|
|
|
17418
|
-
//
|
|
17430
|
+
// src/auth/authProtocol.ts
|
|
17419
17431
|
function requireToken(value, key) {
|
|
17420
17432
|
if (!value) {
|
|
17421
17433
|
const err = { status: 500, message: `Missing ${key} in auth response.` };
|
|
@@ -17500,11 +17512,11 @@ function toAuthErrorMessage(error, fallback) {
|
|
|
17500
17512
|
return raw;
|
|
17501
17513
|
}
|
|
17502
17514
|
|
|
17503
|
-
//
|
|
17515
|
+
// src/analysis/contextSrsDiscoveryIdMap.ts
|
|
17504
17516
|
var fs37 = __toESM(require("node:fs"));
|
|
17505
17517
|
var path36 = __toESM(require("node:path"));
|
|
17506
17518
|
|
|
17507
|
-
//
|
|
17519
|
+
// src/analysis/indexApplicationContextMergeUploadIds.ts
|
|
17508
17520
|
var fs36 = __toESM(require("node:fs"));
|
|
17509
17521
|
var path35 = __toESM(require("node:path"));
|
|
17510
17522
|
var INDEX_APPLICATION_CONTEXT_BASENAME = "index-application-context.json";
|
|
@@ -17610,7 +17622,7 @@ function mergeUploadIdsIntoIndexOnDisk(contextDir2, succeededIds, options) {
|
|
|
17610
17622
|
return { ok: true };
|
|
17611
17623
|
}
|
|
17612
17624
|
|
|
17613
|
-
//
|
|
17625
|
+
// src/analysis/contextSrsDiscoveryIdMap.ts
|
|
17614
17626
|
var SCOPE_KEYS2 = ["Feature", "Experience", "Service", "DataModel", "TechStack"];
|
|
17615
17627
|
function normalizeRel3(p) {
|
|
17616
17628
|
return p.replace(/\\/g, "/");
|
|
@@ -17639,7 +17651,7 @@ function loadSrsDiscoveryIdMapFromContextDir(contextDir2, log) {
|
|
|
17639
17651
|
const indexPath = path36.join(contextDir2, INDEX_APPLICATION_CONTEXT_BASENAME);
|
|
17640
17652
|
if (!fs37.existsSync(indexPath)) {
|
|
17641
17653
|
log?.(
|
|
17642
|
-
`[
|
|
17654
|
+
`[index] No local ${INDEX_APPLICATION_CONTEXT_BASENAME} \u2014 id map empty; uploads use create (new UUID) until the index exists.`
|
|
17643
17655
|
);
|
|
17644
17656
|
return {};
|
|
17645
17657
|
}
|
|
@@ -17647,23 +17659,23 @@ function loadSrsDiscoveryIdMapFromContextDir(contextDir2, log) {
|
|
|
17647
17659
|
try {
|
|
17648
17660
|
raw = fs37.readFileSync(indexPath, "utf8");
|
|
17649
17661
|
} catch (e) {
|
|
17650
|
-
log?.(`[
|
|
17662
|
+
log?.(`[index] Could not read index file \u2014 ${e instanceof Error ? e.message : String(e)}`);
|
|
17651
17663
|
return {};
|
|
17652
17664
|
}
|
|
17653
17665
|
let parsed;
|
|
17654
17666
|
try {
|
|
17655
17667
|
parsed = JSON.parse(raw);
|
|
17656
17668
|
} catch {
|
|
17657
|
-
log?.(`[
|
|
17669
|
+
log?.(`[index] ${INDEX_APPLICATION_CONTEXT_BASENAME} is not valid JSON \u2014 id map empty.`);
|
|
17658
17670
|
return {};
|
|
17659
17671
|
}
|
|
17660
17672
|
if (!isRecord4(parsed)) {
|
|
17661
|
-
log?.(`[
|
|
17673
|
+
log?.(`[index] Index JSON has unexpected shape \u2014 id map empty.`);
|
|
17662
17674
|
return {};
|
|
17663
17675
|
}
|
|
17664
17676
|
const doc = parsed;
|
|
17665
17677
|
if (!doc.scopes || typeof doc.scopes !== "object") {
|
|
17666
|
-
log?.(`[
|
|
17678
|
+
log?.(`[index] Index JSON missing scopes \u2014 id map empty.`);
|
|
17667
17679
|
return {};
|
|
17668
17680
|
}
|
|
17669
17681
|
const map = {};
|
|
@@ -17675,7 +17687,7 @@ function loadSrsDiscoveryIdMapFromContextDir(contextDir2, log) {
|
|
|
17675
17687
|
const prev = map[k];
|
|
17676
17688
|
if (prev !== void 0 && prev !== id) {
|
|
17677
17689
|
throw new Error(
|
|
17678
|
-
`[
|
|
17690
|
+
`[index] Conflicting srs_discovery ids for context path "${k}": ${prev} vs ${id}. Fix index-application-context.json before uploading.`
|
|
17679
17691
|
);
|
|
17680
17692
|
}
|
|
17681
17693
|
map[k] = id;
|
|
@@ -17698,7 +17710,7 @@ function loadSrsDiscoveryIdMapFromContextDir(contextDir2, log) {
|
|
|
17698
17710
|
return map;
|
|
17699
17711
|
}
|
|
17700
17712
|
|
|
17701
|
-
//
|
|
17713
|
+
// src/analysis/contextSrsDiscoveryUpload.ts
|
|
17702
17714
|
var ADAPTIVE_B_INITIAL = 100;
|
|
17703
17715
|
var ADAPTIVE_B_MIN = 1;
|
|
17704
17716
|
var ADAPTIVE_B_MAX = 500;
|
|
@@ -17863,7 +17875,7 @@ function truncateForSrs13DebugLog(text) {
|
|
|
17863
17875
|
return text;
|
|
17864
17876
|
}
|
|
17865
17877
|
return `${text.slice(0, MAX_SRS13_DEBUG_JSON_CHARS)}
|
|
17866
|
-
\u2026 [
|
|
17878
|
+
\u2026 [upload] truncated: ${String(text.length - MAX_SRS13_DEBUG_JSON_CHARS)} more characters omitted`;
|
|
17867
17879
|
}
|
|
17868
17880
|
function stringifyForSrs13Debug(value) {
|
|
17869
17881
|
try {
|
|
@@ -17882,18 +17894,18 @@ function logSrs13HttpDebug(log, path44, method, requestBody, error) {
|
|
|
17882
17894
|
} catch {
|
|
17883
17895
|
bodyBytes = 0;
|
|
17884
17896
|
}
|
|
17885
|
-
log(`[
|
|
17897
|
+
log(`[upload] debug ${method} ${path44} \u2014 request body ~${bodyBytes} bytes (JSON below):`);
|
|
17886
17898
|
log(stringifyForSrs13Debug(requestBody));
|
|
17887
17899
|
const raw = httpApiResponseBody(error);
|
|
17888
17900
|
const status = error && typeof error === "object" && "status" in error ? Number(error.status) : void 0;
|
|
17889
17901
|
log(
|
|
17890
|
-
`[
|
|
17902
|
+
`[upload] debug HTTP error: ${status != null && !Number.isNaN(status) && status > 0 ? `status ${status}` : "unknown status"} \u2014 ${errorMessage(error)}`
|
|
17891
17903
|
);
|
|
17892
17904
|
if (raw !== void 0) {
|
|
17893
|
-
log(`[
|
|
17905
|
+
log(`[upload] debug response body (parsed JSON from server):`);
|
|
17894
17906
|
log(stringifyForSrs13Debug(raw));
|
|
17895
17907
|
} else {
|
|
17896
|
-
log(`[
|
|
17908
|
+
log(`[upload] debug response body: <no parsed JSON on error object>`);
|
|
17897
17909
|
}
|
|
17898
17910
|
}
|
|
17899
17911
|
function errorMessage(e) {
|
|
@@ -17920,7 +17932,7 @@ function throwIfAborted(signal) {
|
|
|
17920
17932
|
}
|
|
17921
17933
|
function logSrs13Failure(log, operation, detail) {
|
|
17922
17934
|
const d = detail.length > MAX_LOG_MESSAGE_LEN ? `${detail.slice(0, MAX_LOG_MESSAGE_LEN)}\u2026` : detail;
|
|
17923
|
-
log?.(`[
|
|
17935
|
+
log?.(`[upload] ${operation} \u2014 ${d}`);
|
|
17924
17936
|
}
|
|
17925
17937
|
function jsonByteLength(obj) {
|
|
17926
17938
|
return Buffer.byteLength(JSON.stringify(obj), "utf8");
|
|
@@ -18043,7 +18055,7 @@ async function runParallelSinglesIntoAccum(requestJson, applicationId, paths, on
|
|
|
18043
18055
|
N = nextAdaptiveConcurrency(N, waveDt, recentWaveMs.slice(0, -1));
|
|
18044
18056
|
N = Math.min(Math.max(N, ADAPTIVE_N_MIN), ADAPTIVE_N_MAX);
|
|
18045
18057
|
idx += wave.length;
|
|
18046
|
-
log?.(`[
|
|
18058
|
+
log?.(`[upload] singles wave done in ${waveDt}ms, N=${N}`);
|
|
18047
18059
|
if (cancelReason !== void 0) {
|
|
18048
18060
|
throw cancelReason;
|
|
18049
18061
|
}
|
|
@@ -18189,7 +18201,7 @@ async function executeContextSrsDiscoveryUploadPhase(filePaths, phaseOpts, accum
|
|
|
18189
18201
|
await notifySucceededChunk(onSucceededChunk, waveChunk);
|
|
18190
18202
|
B = nextAdaptiveBatchSize(B, dt, batchRecent.slice(0, -1));
|
|
18191
18203
|
B = Math.min(Math.max(B, ADAPTIVE_B_MIN), ADAPTIVE_B_MAX);
|
|
18192
|
-
log?.(`[
|
|
18204
|
+
log?.(`[upload] batch ok ${items.length} files in ${dt}ms, next B=${B}`);
|
|
18193
18205
|
} catch (e) {
|
|
18194
18206
|
if (isUploadCancelledError(e)) {
|
|
18195
18207
|
throw e;
|
|
@@ -18201,7 +18213,7 @@ async function executeContextSrsDiscoveryUploadPhase(filePaths, phaseOpts, accum
|
|
|
18201
18213
|
`POST /api/batch/content/srs_discovery/save n=${chunkPaths.length} first=${first}`,
|
|
18202
18214
|
msg
|
|
18203
18215
|
);
|
|
18204
|
-
log?.(`[
|
|
18216
|
+
log?.(`[upload] batch failed \u2014 falling back to singles for ${chunkPaths.length} file(s)`);
|
|
18205
18217
|
useBatch = false;
|
|
18206
18218
|
queue.unshift(...chunkPaths);
|
|
18207
18219
|
}
|
|
@@ -18262,7 +18274,7 @@ async function runContextSrsDiscoveryUpload(opts) {
|
|
|
18262
18274
|
return { succeeded, failed, succeededIds };
|
|
18263
18275
|
}
|
|
18264
18276
|
|
|
18265
|
-
//
|
|
18277
|
+
// src/analysis/macroHeadlessHost.ts
|
|
18266
18278
|
function buildMacroOrchestrationDepsHeadless(input) {
|
|
18267
18279
|
const { storageContext, repoRoot, agentsDirFs, buildOpenCodeOptions, log, signal, macroConfig } = input;
|
|
18268
18280
|
let adHocWorktree;
|
|
@@ -18309,7 +18321,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18309
18321
|
}
|
|
18310
18322
|
macroFinalize = void 0;
|
|
18311
18323
|
macroSourceBranch = void 0;
|
|
18312
|
-
log(`[
|
|
18324
|
+
log(`[setup] macro \u2014 create analysis worktree \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}`);
|
|
18313
18325
|
const prep = await prepareContextArtefactWorktreeOnly(storageContext, repoRoot, log);
|
|
18314
18326
|
if (!prep.ok) {
|
|
18315
18327
|
prep.finalize?.();
|
|
@@ -18328,7 +18340,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18328
18340
|
if (!h) {
|
|
18329
18341
|
return { ok: false, error: "No analysis worktree." };
|
|
18330
18342
|
}
|
|
18331
|
-
log(`[
|
|
18343
|
+
log(`[setup] macro \u2014 materialize AgentCode agents \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}`);
|
|
18332
18344
|
try {
|
|
18333
18345
|
materializeOpenCodeAgentsWithAce(agentsDirFs, h.path, {
|
|
18334
18346
|
enabled: getAceAnalysisEnabledForCheckout(h.path),
|
|
@@ -18360,7 +18372,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18360
18372
|
if (rows.length === 0) {
|
|
18361
18373
|
return { ok: true };
|
|
18362
18374
|
}
|
|
18363
|
-
log(`[
|
|
18375
|
+
log(`[setup] macro \u2014 resume synthesis \u2014 ${rows.length} missing row(s)`);
|
|
18364
18376
|
const wsSnap = readAnalysisWorkspaceSnapshot(storageContext);
|
|
18365
18377
|
const oc = buildOpenCodeOptions(ar);
|
|
18366
18378
|
await startPipelineRun(storageContext, repoRoot);
|
|
@@ -18466,7 +18478,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18466
18478
|
if (!fs39.existsSync(contextDir2)) {
|
|
18467
18479
|
return { ok: false, message: "Missing .gluecharm/context." };
|
|
18468
18480
|
}
|
|
18469
|
-
log(`[
|
|
18481
|
+
log(`[setup] macro \u2014 reference coverage (worktree) \u2014 ${ar}`);
|
|
18470
18482
|
const res = runCoverageReferenceValidation({
|
|
18471
18483
|
repositoryRootAbs: ar,
|
|
18472
18484
|
contextDirAbs: contextDir2,
|
|
@@ -18514,7 +18526,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18514
18526
|
if (!ar) {
|
|
18515
18527
|
return { ok: false, message: "No analysis worktree." };
|
|
18516
18528
|
}
|
|
18517
|
-
log(`[
|
|
18529
|
+
log(`[setup] macro \u2014 reference coverage execution report \u2014 ${(/* @__PURE__ */ new Date()).toISOString()}`);
|
|
18518
18530
|
const res = await runReferenceCoverageExecutionReport({
|
|
18519
18531
|
repositoryRootAbs: ar,
|
|
18520
18532
|
abortSignal: signal,
|
|
@@ -18541,7 +18553,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18541
18553
|
writeIndexApplicationContext(contextDir2, void 0, {
|
|
18542
18554
|
sourceBranchAtWorktreeCreation: snap.adHocSourceBranchAtCreation
|
|
18543
18555
|
});
|
|
18544
|
-
log(`[
|
|
18556
|
+
log(`[setup] macro \u2014 index written \u2014 ${contextDir2}`);
|
|
18545
18557
|
return { ok: true, message: "Index generated and validated." };
|
|
18546
18558
|
} catch (e) {
|
|
18547
18559
|
return { ok: false, message: e instanceof Error ? e.message : String(e) };
|
|
@@ -18573,7 +18585,7 @@ function buildMacroOrchestrationDepsHeadless(input) {
|
|
|
18573
18585
|
};
|
|
18574
18586
|
}
|
|
18575
18587
|
|
|
18576
|
-
//
|
|
18588
|
+
// src/analysis/coordinationDuplicatesDiagnosis.ts
|
|
18577
18589
|
var fs40 = __toESM(require("fs"));
|
|
18578
18590
|
var path39 = __toESM(require("path"));
|
|
18579
18591
|
var import__6 = __toESM(require__());
|
|
@@ -19023,7 +19035,7 @@ function runCoordinationDuplicatesDiagnosis(input) {
|
|
|
19023
19035
|
};
|
|
19024
19036
|
}
|
|
19025
19037
|
|
|
19026
|
-
//
|
|
19038
|
+
// src/auth/authApi.ts
|
|
19027
19039
|
var API_TIMEOUT_MS = 1e4;
|
|
19028
19040
|
async function fetchWithTimeout(url, init, fetchImpl) {
|
|
19029
19041
|
const controller = new AbortController();
|
|
@@ -19079,7 +19091,7 @@ function toFetchErrorMessage(e) {
|
|
|
19079
19091
|
return { status: 0, message: msg };
|
|
19080
19092
|
}
|
|
19081
19093
|
|
|
19082
|
-
//
|
|
19094
|
+
// src/auth/gluecharmContentNegotiation.ts
|
|
19083
19095
|
var GLUECHARM_WS_LEGACY_JSON = "application/vnd.gluecharm.v1.ws-legacy+json";
|
|
19084
19096
|
function pathWithoutQuery(path44) {
|
|
19085
19097
|
const q = path44.indexOf("?");
|
|
@@ -19098,7 +19110,7 @@ function gluecharmContentHeaders(method) {
|
|
|
19098
19110
|
return headers;
|
|
19099
19111
|
}
|
|
19100
19112
|
|
|
19101
|
-
//
|
|
19113
|
+
// src/auth/authenticatedFetch.ts
|
|
19102
19114
|
async function fetchWithTimeout2(url, init, fetchImpl, timeoutMs, externalSignal) {
|
|
19103
19115
|
const controller = new AbortController();
|
|
19104
19116
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
@@ -19176,7 +19188,7 @@ function createAuthenticatedRequestJson(deps) {
|
|
|
19176
19188
|
return requestJson;
|
|
19177
19189
|
}
|
|
19178
19190
|
|
|
19179
|
-
//
|
|
19191
|
+
// src/cli/cliSession.ts
|
|
19180
19192
|
var fs41 = __toESM(require("node:fs"));
|
|
19181
19193
|
var os2 = __toESM(require("node:os"));
|
|
19182
19194
|
var path40 = __toESM(require("node:path"));
|
|
@@ -19251,7 +19263,7 @@ function clearCliSession() {
|
|
|
19251
19263
|
}
|
|
19252
19264
|
}
|
|
19253
19265
|
|
|
19254
|
-
//
|
|
19266
|
+
// src/analysis/acePendingTraces.ts
|
|
19255
19267
|
var fs42 = __toESM(require("fs"));
|
|
19256
19268
|
var path41 = __toESM(require("path"));
|
|
19257
19269
|
function normalizeAceTraceRelativePath(rel) {
|
|
@@ -19317,7 +19329,7 @@ function listPendingAceTraceFiles(contextDir2, worktreeRoot) {
|
|
|
19317
19329
|
return pending.map((x) => x.abs);
|
|
19318
19330
|
}
|
|
19319
19331
|
|
|
19320
|
-
//
|
|
19332
|
+
// src/analysis/aceAutoLearnPool.ts
|
|
19321
19333
|
var path42 = __toESM(require("path"));
|
|
19322
19334
|
function clampConcurrency2(n) {
|
|
19323
19335
|
if (!Number.isFinite(n)) {
|
|
@@ -19361,18 +19373,18 @@ async function runAceAutoLearnPool(p) {
|
|
|
19361
19373
|
return;
|
|
19362
19374
|
}
|
|
19363
19375
|
const rel = traceRel(traceAbs);
|
|
19364
|
-
p.log?.(`[
|
|
19376
|
+
p.log?.(`[ace] ace auto-learn: start ${rel} (active ${active}/${maxC})`);
|
|
19365
19377
|
await p.onItemStart?.(rel);
|
|
19366
19378
|
const r = await runner(traceAbs, { ...p.baseOpts, abortSignal });
|
|
19367
19379
|
if (r.ok) {
|
|
19368
19380
|
completed += 1;
|
|
19369
19381
|
} else {
|
|
19370
19382
|
failed += 1;
|
|
19371
|
-
p.log?.(`[
|
|
19383
|
+
p.log?.(`[ace] ace auto-learn: failed ${rel} \u2014 ${r.message}`);
|
|
19372
19384
|
}
|
|
19373
19385
|
await p.onItemComplete?.(rel, r.ok);
|
|
19374
19386
|
active -= 1;
|
|
19375
|
-
p.log?.(`[
|
|
19387
|
+
p.log?.(`[ace] ace auto-learn: finished ${rel} ok=${r.ok}`);
|
|
19376
19388
|
pump();
|
|
19377
19389
|
};
|
|
19378
19390
|
while (true) {
|
|
@@ -19399,7 +19411,7 @@ async function runAceAutoLearnPool(p) {
|
|
|
19399
19411
|
return { cancelled: abortSignal?.aborted === true, completed, failed };
|
|
19400
19412
|
}
|
|
19401
19413
|
|
|
19402
|
-
//
|
|
19414
|
+
// src/cli/parseTailFlags.ts
|
|
19403
19415
|
function parseTailFlags(tail) {
|
|
19404
19416
|
let rootKind = "workspace";
|
|
19405
19417
|
let worktree;
|
|
@@ -19424,7 +19436,7 @@ function parseTailFlags(tail) {
|
|
|
19424
19436
|
return { rootKind, worktree };
|
|
19425
19437
|
}
|
|
19426
19438
|
|
|
19427
|
-
//
|
|
19439
|
+
// src/cli/parseDoctorFlags.ts
|
|
19428
19440
|
var ALLOWED = /* @__PURE__ */ new Set(["--readiness", "--inspect-config"]);
|
|
19429
19441
|
function parseDoctorFlags(tail) {
|
|
19430
19442
|
for (const t of tail) {
|
|
@@ -19441,7 +19453,7 @@ function parseDoctorFlags(tail) {
|
|
|
19441
19453
|
};
|
|
19442
19454
|
}
|
|
19443
19455
|
|
|
19444
|
-
//
|
|
19456
|
+
// src/cli/parseAuthLoginTail.ts
|
|
19445
19457
|
function extractAuthLoginSessionPathFromTail(tail) {
|
|
19446
19458
|
const rest = [];
|
|
19447
19459
|
let sessionPath;
|
|
@@ -19498,11 +19510,322 @@ function parseAuthLoginTail(tail) {
|
|
|
19498
19510
|
return { ok: true, creds: { email: email.trim(), password } };
|
|
19499
19511
|
}
|
|
19500
19512
|
|
|
19501
|
-
//
|
|
19502
|
-
var
|
|
19513
|
+
// src/cli/cliDiagStyle.ts
|
|
19514
|
+
var RESET = "\x1B[0m";
|
|
19515
|
+
var DIM = "\x1B[2m";
|
|
19516
|
+
var BOLD = "\x1B[1m";
|
|
19517
|
+
var TAG_SGR = {
|
|
19518
|
+
pool: "\x1B[96m",
|
|
19519
|
+
queue: "\x1B[96m",
|
|
19520
|
+
worktree: "\x1B[33m",
|
|
19521
|
+
context: "\x1B[90m",
|
|
19522
|
+
index: "\x1B[92m",
|
|
19523
|
+
setup: "\x1B[95m",
|
|
19524
|
+
AgentCode: "\x1B[94m",
|
|
19525
|
+
coverage: "\x1B[96m",
|
|
19526
|
+
remediation: "\x1B[35m",
|
|
19527
|
+
report: "\x1B[36m",
|
|
19528
|
+
upload: "\x1B[33m",
|
|
19529
|
+
duplicates: "\x1B[35m",
|
|
19530
|
+
"zero-ref": "\x1B[91m",
|
|
19531
|
+
ace: "\x1B[95m",
|
|
19532
|
+
cli: "\x1B[90m",
|
|
19533
|
+
EasySpecs: "\x1B[93m"
|
|
19534
|
+
};
|
|
19535
|
+
var lastPhaseFamily;
|
|
19536
|
+
function resetCliDiagnosticPhaseState() {
|
|
19537
|
+
lastPhaseFamily = void 0;
|
|
19538
|
+
}
|
|
19539
|
+
function stderrSupportsColor() {
|
|
19540
|
+
if (process.env.NO_COLOR != null && process.env.NO_COLOR !== "") {
|
|
19541
|
+
return false;
|
|
19542
|
+
}
|
|
19543
|
+
if (process.env.FORCE_COLOR != null && process.env.FORCE_COLOR !== "") {
|
|
19544
|
+
return true;
|
|
19545
|
+
}
|
|
19546
|
+
return process.stderr.isTTY === true;
|
|
19547
|
+
}
|
|
19548
|
+
function phaseFamilyForTag(tag) {
|
|
19549
|
+
if (!tag) {
|
|
19550
|
+
return "other";
|
|
19551
|
+
}
|
|
19552
|
+
if (tag === "setup") {
|
|
19553
|
+
return "setup";
|
|
19554
|
+
}
|
|
19555
|
+
if (tag === "AgentCode") {
|
|
19556
|
+
return "agent";
|
|
19557
|
+
}
|
|
19558
|
+
if (tag === "pool" || tag === "queue" || tag === "worktree" || tag === "context") {
|
|
19559
|
+
return "orch";
|
|
19560
|
+
}
|
|
19561
|
+
if (Object.prototype.hasOwnProperty.call(TAG_SGR, tag)) {
|
|
19562
|
+
return "meta";
|
|
19563
|
+
}
|
|
19564
|
+
return "other";
|
|
19565
|
+
}
|
|
19566
|
+
function shouldInsertPhaseBlank(nextTag) {
|
|
19567
|
+
const next = phaseFamilyForTag(nextTag);
|
|
19568
|
+
const prev = lastPhaseFamily;
|
|
19569
|
+
lastPhaseFamily = next;
|
|
19570
|
+
if (prev === void 0 || prev === next) {
|
|
19571
|
+
return false;
|
|
19572
|
+
}
|
|
19573
|
+
if (prev === "other" || next === "other") {
|
|
19574
|
+
return false;
|
|
19575
|
+
}
|
|
19576
|
+
if (prev === "meta" && next === "meta") {
|
|
19577
|
+
return false;
|
|
19578
|
+
}
|
|
19579
|
+
if (prev === "setup" || next === "setup") {
|
|
19580
|
+
return true;
|
|
19581
|
+
}
|
|
19582
|
+
if (prev === "orch" && (next === "agent" || next === "meta") || (prev === "agent" || prev === "meta") && next === "orch") {
|
|
19583
|
+
return true;
|
|
19584
|
+
}
|
|
19585
|
+
if (prev === "agent" && next === "meta" || prev === "meta" && next === "agent") {
|
|
19586
|
+
return true;
|
|
19587
|
+
}
|
|
19588
|
+
return false;
|
|
19589
|
+
}
|
|
19590
|
+
function extractBracketTag(line) {
|
|
19591
|
+
const m = /^\[([^\]]+)\]/.exec(line);
|
|
19592
|
+
if (!m) {
|
|
19593
|
+
return void 0;
|
|
19594
|
+
}
|
|
19595
|
+
return { tag: m[1], prefixLen: m[0].length };
|
|
19596
|
+
}
|
|
19597
|
+
function stylePoolVerbAndTail(rest) {
|
|
19598
|
+
const t = rest.trimStart();
|
|
19599
|
+
const verbMatch = /^(start|complete|stopped|skipped|retry)\b/.exec(t);
|
|
19600
|
+
if (!verbMatch) {
|
|
19601
|
+
return rest;
|
|
19602
|
+
}
|
|
19603
|
+
const verb = verbMatch[1];
|
|
19604
|
+
const idx = rest.indexOf(verb);
|
|
19605
|
+
if (idx < 0) {
|
|
19606
|
+
return rest;
|
|
19607
|
+
}
|
|
19608
|
+
const before = rest.slice(0, idx);
|
|
19609
|
+
const afterVerb = rest.slice(idx + verb.length);
|
|
19610
|
+
let mid = `${DIM}${verb}${RESET}`;
|
|
19611
|
+
if (verb === "complete") {
|
|
19612
|
+
mid = `${BOLD}\x1B[92m${verb}${RESET}`;
|
|
19613
|
+
} else if (verb === "retry") {
|
|
19614
|
+
mid = `${BOLD}\x1B[33m${verb}${RESET}`;
|
|
19615
|
+
} else if (verb === "skipped" || verb === "stopped") {
|
|
19616
|
+
mid = `${BOLD}\x1B[91m${verb}${RESET}`;
|
|
19617
|
+
}
|
|
19618
|
+
let tail = stylePoolWorkItemTail(afterVerb);
|
|
19619
|
+
if (verb === "retry" || verb === "skipped") {
|
|
19620
|
+
tail = dimClauseSuffix(tail);
|
|
19621
|
+
}
|
|
19622
|
+
return `${before}${mid}${tail}`;
|
|
19623
|
+
}
|
|
19624
|
+
function stylePoolWorkItemTail(afterVerb) {
|
|
19625
|
+
let s = afterVerb;
|
|
19626
|
+
const activeMatch = /\s+(\(active \d+\/\d+\))\s*$/.exec(s);
|
|
19627
|
+
let suffix = "";
|
|
19628
|
+
if (activeMatch) {
|
|
19629
|
+
suffix = `${DIM}${activeMatch[1]}${RESET}`;
|
|
19630
|
+
s = s.slice(0, activeMatch.index);
|
|
19631
|
+
}
|
|
19632
|
+
const ts = s.trimStart();
|
|
19633
|
+
const leadWs = s.slice(0, s.length - ts.length);
|
|
19634
|
+
const idMatch = /^(\S+)/.exec(ts);
|
|
19635
|
+
if (!idMatch) {
|
|
19636
|
+
return `${s}${suffix}`;
|
|
19637
|
+
}
|
|
19638
|
+
const id = idMatch[1];
|
|
19639
|
+
if (!/^[\w:-]+$/.test(id) || id.length < 2) {
|
|
19640
|
+
return `${s}${suffix}`;
|
|
19641
|
+
}
|
|
19642
|
+
const afterId = ts.slice(id.length);
|
|
19643
|
+
return `${leadWs}${BOLD}${id}${RESET}${afterId}${suffix}`;
|
|
19644
|
+
}
|
|
19645
|
+
function dimClauseSuffix(s) {
|
|
19646
|
+
const idx = s.indexOf(" \u2014");
|
|
19647
|
+
if (idx >= 0) {
|
|
19648
|
+
return `${s.slice(0, idx)}${DIM} \u2014${s.slice(idx + 2)}${RESET}`;
|
|
19649
|
+
}
|
|
19650
|
+
const after = s.search(/\s+after\s+/i);
|
|
19651
|
+
if (after >= 0) {
|
|
19652
|
+
return `${s.slice(0, after)}${DIM}${s.slice(after)}${RESET}`;
|
|
19653
|
+
}
|
|
19654
|
+
if (s.trim().length > 0) {
|
|
19655
|
+
return `${DIM}${s}${RESET}`;
|
|
19656
|
+
}
|
|
19657
|
+
return s;
|
|
19658
|
+
}
|
|
19659
|
+
function styleQueueRest(rest) {
|
|
19660
|
+
const t = rest.trimStart();
|
|
19661
|
+
const lead = rest.slice(0, rest.length - t.length);
|
|
19662
|
+
const drained = /^drained\b/.exec(t);
|
|
19663
|
+
if (drained) {
|
|
19664
|
+
const k = "drained";
|
|
19665
|
+
const i = rest.indexOf(k);
|
|
19666
|
+
return `${rest.slice(0, i)}${BOLD}\x1B[92m${k}${RESET}${DIM}${rest.slice(i + k.length)}${RESET}`;
|
|
19667
|
+
}
|
|
19668
|
+
const unb = /^unblocked\b/.exec(t);
|
|
19669
|
+
if (unb) {
|
|
19670
|
+
const k = "unblocked";
|
|
19671
|
+
const i = rest.indexOf(k);
|
|
19672
|
+
return `${rest.slice(0, i)}${BOLD}\x1B[96m${k}${RESET}${rest.slice(i + k.length)}`;
|
|
19673
|
+
}
|
|
19674
|
+
if (t.startsWith("cascade skip")) {
|
|
19675
|
+
const k = "cascade skip";
|
|
19676
|
+
const i = rest.indexOf(k);
|
|
19677
|
+
return `${rest.slice(0, i)}${DIM}${k}${RESET}${rest.slice(i + k.length)}`;
|
|
19678
|
+
}
|
|
19679
|
+
return rest;
|
|
19680
|
+
}
|
|
19681
|
+
function styleContextRest(rest) {
|
|
19682
|
+
const ts = rest.trimStart();
|
|
19683
|
+
const low = ts.toLowerCase();
|
|
19684
|
+
if (low.includes("pipeline error")) {
|
|
19685
|
+
return rest.replace(/pipeline error/gi, `${BOLD}\x1B[91mpipeline error${RESET}`);
|
|
19686
|
+
}
|
|
19687
|
+
if (low.includes("synthesis finished")) {
|
|
19688
|
+
return rest.replace(/synthesis finished/gi, `${BOLD}\x1B[92msynthesis finished${RESET}`);
|
|
19689
|
+
}
|
|
19690
|
+
if (low.includes("pipeline stopped")) {
|
|
19691
|
+
return rest.replace(/pipeline stopped/gi, `${BOLD}\x1B[33mpipeline stopped${RESET}`);
|
|
19692
|
+
}
|
|
19693
|
+
if (low.includes("artefact pipeline started")) {
|
|
19694
|
+
return rest.replace(/context artefact pipeline started/gi, `${BOLD}\x1B[96m$&${RESET}`);
|
|
19695
|
+
}
|
|
19696
|
+
return rest;
|
|
19697
|
+
}
|
|
19698
|
+
function styleWorktreeRest(rest) {
|
|
19699
|
+
const pathLike = rest.match(/:\s*(.+)$/);
|
|
19700
|
+
if (!pathLike) {
|
|
19701
|
+
return rest;
|
|
19702
|
+
}
|
|
19703
|
+
const cut = rest.slice(0, pathLike.index + pathLike[0].length - pathLike[1].length);
|
|
19704
|
+
return `${cut}${DIM}${pathLike[1]}${RESET}`;
|
|
19705
|
+
}
|
|
19706
|
+
function styleIndexRest(rest) {
|
|
19707
|
+
return dimIsoTimestamps(dimPathsAfterKeywords(rest));
|
|
19708
|
+
}
|
|
19709
|
+
function styleSetupRest(rest) {
|
|
19710
|
+
return dimIsoTimestamps(rest.replace(/( — )/g, `${DIM}$1${RESET}`));
|
|
19711
|
+
}
|
|
19712
|
+
function dimPathsAfterKeywords(rest) {
|
|
19713
|
+
return rest.replace(/(written under |failed — )(.+)/, (_m, a, b) => `${a}${DIM}${b}${RESET}`);
|
|
19714
|
+
}
|
|
19715
|
+
var ISO_RE = /\d{4}-\d{2}-\d{2}T[\d:.-]+(?:Z|[+-]\d{2}:\d{2})?/g;
|
|
19716
|
+
function dimIsoTimestamps(s) {
|
|
19717
|
+
return s.replace(ISO_RE, (m) => `${DIM}${m}${RESET}`);
|
|
19718
|
+
}
|
|
19719
|
+
function styleAgentCodeRest(rest) {
|
|
19720
|
+
const ts = rest.trimStart();
|
|
19721
|
+
const lead = rest.slice(0, rest.length - ts.length);
|
|
19722
|
+
const pf = /^prompt file:\s*(.+?)\s+\((\d+)\s+bytes\)\s*$/i.exec(ts);
|
|
19723
|
+
if (pf) {
|
|
19724
|
+
return `${lead}${DIM}prompt file:${RESET} ${pf[1]} ${DIM}(${pf[2]} bytes)${RESET}`;
|
|
19725
|
+
}
|
|
19726
|
+
const cmd = /^command:\s*(.+)$/i.exec(ts);
|
|
19727
|
+
if (cmd) {
|
|
19728
|
+
return `${lead}${DIM}command:${RESET} ${DIM}${cmd[1]}${RESET}`;
|
|
19729
|
+
}
|
|
19730
|
+
const cwd = /^cwd:\s*(.+)$/i.exec(ts);
|
|
19731
|
+
if (cwd) {
|
|
19732
|
+
return `${lead}${DIM}cwd:${RESET} ${cwd[1]}`;
|
|
19733
|
+
}
|
|
19734
|
+
const argv = /^argv:\s*(.+)$/i.exec(ts);
|
|
19735
|
+
if (argv) {
|
|
19736
|
+
return `${lead}${DIM}argv:${RESET} ${DIM}${argv[1]}${RESET}`;
|
|
19737
|
+
}
|
|
19738
|
+
const spawnErr = /^spawn error:\s*(.+)$/i.exec(ts);
|
|
19739
|
+
if (spawnErr) {
|
|
19740
|
+
return `${lead}${BOLD}\x1B[91mspawn error:${RESET} ${spawnErr[1]}`;
|
|
19741
|
+
}
|
|
19742
|
+
const exitL = /^(\S+)\s+exitCode=/.exec(ts);
|
|
19743
|
+
if (exitL) {
|
|
19744
|
+
return `${lead}${DIM}${ts}${RESET}`;
|
|
19745
|
+
}
|
|
19746
|
+
const ste = /^(stderr|stdout):\s*$/i.exec(ts);
|
|
19747
|
+
if (ste) {
|
|
19748
|
+
return `${lead}${DIM}${ste[1]}:${RESET}`;
|
|
19749
|
+
}
|
|
19750
|
+
const emptyStream = /^(stderr|stdout):\s*\((empty)\)\s*$/i.exec(ts);
|
|
19751
|
+
if (emptyStream) {
|
|
19752
|
+
return `${lead}${DIM}${emptyStream[1]}:${RESET} ${DIM}(${emptyStream[2]})${RESET}`;
|
|
19753
|
+
}
|
|
19754
|
+
return rest;
|
|
19755
|
+
}
|
|
19756
|
+
function applyTagLine(tag, open, prefix, rest) {
|
|
19757
|
+
let styledRest = rest;
|
|
19758
|
+
if (tag === "pool") {
|
|
19759
|
+
styledRest = stylePoolVerbAndTail(rest);
|
|
19760
|
+
} else if (tag === "queue") {
|
|
19761
|
+
styledRest = styleQueueRest(rest);
|
|
19762
|
+
} else if (tag === "context") {
|
|
19763
|
+
styledRest = styleContextRest(rest);
|
|
19764
|
+
} else if (tag === "worktree") {
|
|
19765
|
+
styledRest = styleWorktreeRest(rest);
|
|
19766
|
+
} else if (tag === "index") {
|
|
19767
|
+
styledRest = styleIndexRest(rest);
|
|
19768
|
+
} else if (tag === "setup") {
|
|
19769
|
+
styledRest = styleSetupRest(rest);
|
|
19770
|
+
} else if (tag === "AgentCode") {
|
|
19771
|
+
styledRest = styleAgentCodeRest(rest);
|
|
19772
|
+
}
|
|
19773
|
+
return `${open}${prefix}${RESET}${styledRest}`;
|
|
19774
|
+
}
|
|
19775
|
+
function formatAgentCodeBlock(line, open, tag, prefix) {
|
|
19776
|
+
const nl = line.indexOf("\n");
|
|
19777
|
+
if (nl === -1) {
|
|
19778
|
+
return applyTagLine(tag, open, prefix, line.slice(prefix.length));
|
|
19779
|
+
}
|
|
19780
|
+
const head = line.slice(0, nl);
|
|
19781
|
+
const body = line.slice(nl + 1);
|
|
19782
|
+
const headRest = head.slice(prefix.length);
|
|
19783
|
+
const lower = headRest.trimStart().toLowerCase();
|
|
19784
|
+
let headStyled = applyTagLine(tag, open, prefix, headRest);
|
|
19785
|
+
if (lower.startsWith("stderr:") || lower.startsWith("stdout:")) {
|
|
19786
|
+
const indented = body.split(/\r?\n/).map((ln) => ` ${DIM}${ln}${RESET}`).join("\n");
|
|
19787
|
+
return `${headStyled}
|
|
19788
|
+
${indented}`;
|
|
19789
|
+
}
|
|
19790
|
+
return `${headStyled}
|
|
19791
|
+
${DIM}${body}${RESET}`;
|
|
19792
|
+
}
|
|
19793
|
+
function formatDiagnosticLineForTTY(line) {
|
|
19794
|
+
const ex = extractBracketTag(line);
|
|
19795
|
+
if (!ex) {
|
|
19796
|
+
return line;
|
|
19797
|
+
}
|
|
19798
|
+
const { tag, prefixLen } = ex;
|
|
19799
|
+
const open = TAG_SGR[tag];
|
|
19800
|
+
if (!open) {
|
|
19801
|
+
return line;
|
|
19802
|
+
}
|
|
19803
|
+
const prefix = line.slice(0, prefixLen);
|
|
19804
|
+
if (tag === "AgentCode" && line.includes("\n")) {
|
|
19805
|
+
return formatAgentCodeBlock(line, open, tag, prefix);
|
|
19806
|
+
}
|
|
19807
|
+
return applyTagLine(tag, open, prefix, line.slice(prefixLen));
|
|
19808
|
+
}
|
|
19809
|
+
function formatCliStderrLine(line, useAnsi) {
|
|
19810
|
+
const ex = extractBracketTag(line);
|
|
19811
|
+
const leadingBlank = ex ? shouldInsertPhaseBlank(ex.tag) : false;
|
|
19812
|
+
const text = useAnsi ? formatDiagnosticLineForTTY(line) : line;
|
|
19813
|
+
return { leadingBlank, text };
|
|
19814
|
+
}
|
|
19815
|
+
|
|
19816
|
+
// src/cli/main.ts
|
|
19817
|
+
var PKG_VERSION = "0.0.12";
|
|
19503
19818
|
function logErr(flags, ...a) {
|
|
19504
19819
|
if (!flags.json) {
|
|
19505
|
-
|
|
19820
|
+
if (a.length === 1 && typeof a[0] === "string") {
|
|
19821
|
+
const { leadingBlank, text } = formatCliStderrLine(a[0], stderrSupportsColor());
|
|
19822
|
+
if (leadingBlank) {
|
|
19823
|
+
console.error("");
|
|
19824
|
+
}
|
|
19825
|
+
console.error(text);
|
|
19826
|
+
} else {
|
|
19827
|
+
console.error(...a);
|
|
19828
|
+
}
|
|
19506
19829
|
} else if (flags.verbose) {
|
|
19507
19830
|
console.error(...a);
|
|
19508
19831
|
}
|
|
@@ -19808,6 +20131,7 @@ async function main() {
|
|
|
19808
20131
|
};
|
|
19809
20132
|
const pos = positionals;
|
|
19810
20133
|
try {
|
|
20134
|
+
resetCliDiagnosticPhaseState();
|
|
19811
20135
|
if (pos[0] === "doctor") {
|
|
19812
20136
|
let modes;
|
|
19813
20137
|
try {
|
|
@@ -20011,7 +20335,7 @@ async function main() {
|
|
|
20011
20335
|
await noteAgentsMaterialized(storage);
|
|
20012
20336
|
if (merged.promoteContextToWorkspace && result.contextDir) {
|
|
20013
20337
|
const n = promoteContextDirectoryToWorkspaceFs(result.contextDir, repoRoot);
|
|
20014
|
-
logErr(flags, `[
|
|
20338
|
+
logErr(flags, `[context] promoted ${String(n.filesCopied)} file(s) \u2192 ${repoRoot}`);
|
|
20015
20339
|
}
|
|
20016
20340
|
const idx = result.indexApplicationContext;
|
|
20017
20341
|
finish(ExitCode.ok, {
|
|
@@ -20116,7 +20440,7 @@ async function main() {
|
|
|
20116
20440
|
if (sub === "zero-reference") {
|
|
20117
20441
|
logErr(
|
|
20118
20442
|
flags,
|
|
20119
|
-
"[
|
|
20443
|
+
"[zero-ref] zero-reference remediation runs OpenCode agents per file; expect cost and runtime similar to the extension macro phase."
|
|
20120
20444
|
);
|
|
20121
20445
|
requireOpenCode(merged, flags);
|
|
20122
20446
|
const agentsDir = resolveOpenCodeAgentsDir(repoRoot, repoConfig);
|
|
@@ -20317,7 +20641,7 @@ async function main() {
|
|
|
20317
20641
|
if (failed === 0 && Object.keys(up.succeededIds).length > 0) {
|
|
20318
20642
|
const mergeRes = mergeUploadIdsIntoIndexOnDisk(ctxDir, up.succeededIds);
|
|
20319
20643
|
if (!mergeRes.ok) {
|
|
20320
|
-
logErr(flags, `[
|
|
20644
|
+
logErr(flags, `[upload] merge upload ids into index failed: ${mergeRes.message}`);
|
|
20321
20645
|
}
|
|
20322
20646
|
}
|
|
20323
20647
|
finish(failed ? ExitCode.upload : ExitCode.ok, {
|