@kitman-sh/software-engineering 0.13.17 → 0.13.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +59 -38
- package/dist/declarations.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -13434,6 +13434,50 @@ var AttemptTokens = Union2([TokenUsage, Literal2("none")]);
|
|
|
13434
13434
|
var TokenTotalCount = String5.check(isPattern2(/^(?:0|[1-9][0-9]*)$/));
|
|
13435
13435
|
var TokenTotal = Struct({ input: TokenTotalCount, output: TokenTotalCount, cached: TokenTotalCount });
|
|
13436
13436
|
|
|
13437
|
+
// ../../packages/core/src/test-report.ts
|
|
13438
|
+
var maxSkippedTests = 1e4;
|
|
13439
|
+
var maxRanDigests = 1e5;
|
|
13440
|
+
var TestId = String5.check(isMinLength(1), isMaxLength(1000));
|
|
13441
|
+
var maxFailedTests = 50;
|
|
13442
|
+
var maxFailedTestLength = 300;
|
|
13443
|
+
var FailedTests = ArraySchema(String5.check(isMinLength(1), isMaxLength(maxFailedTestLength))).check(isMaxLength(maxFailedTests));
|
|
13444
|
+
var EnvironmentFailure = Struct({
|
|
13445
|
+
failedTests: optionalKey2(FailedTests),
|
|
13446
|
+
exitCode: optionalKey2(Int),
|
|
13447
|
+
outputTail: optionalKey2(String5.check(isMaxLength(8000))),
|
|
13448
|
+
retryFailedTests: optionalKey2(FailedTests)
|
|
13449
|
+
});
|
|
13450
|
+
var CheckTests = Struct({
|
|
13451
|
+
reports: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
13452
|
+
passed: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
13453
|
+
failed: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
13454
|
+
skipped: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
13455
|
+
skippedTests: ArraySchema(TestId).check(isMaxLength(maxSkippedTests)),
|
|
13456
|
+
ranDigests: ArraySchema(String5.check(isMaxLength(16))).check(isMaxLength(maxRanDigests)),
|
|
13457
|
+
failedTests: optionalKey2(FailedTests),
|
|
13458
|
+
environmentFailure: optionalKey2(EnvironmentFailure),
|
|
13459
|
+
environmentJudged: optionalKey2(Boolean3)
|
|
13460
|
+
});
|
|
13461
|
+
var entities = new Map([
|
|
13462
|
+
["amp", "&"],
|
|
13463
|
+
["lt", "<"],
|
|
13464
|
+
["gt", ">"],
|
|
13465
|
+
["quot", '"'],
|
|
13466
|
+
["apos", "'"]
|
|
13467
|
+
]);
|
|
13468
|
+
var failedFileStart = String.raw`FAIL +(?:\|[^|]+\| *)?(?! )(?!\S*:\/\/)`;
|
|
13469
|
+
var afterPath = String.raw` > | \[ `;
|
|
13470
|
+
var failedFilePaths = [
|
|
13471
|
+
String.raw`\S*\.[A-Za-z]\w*(?=[\s:]|$)`,
|
|
13472
|
+
String.raw`(?=\S*[A-Za-z])(?=\S*\/)\S+(?=${afterPath}|$)`,
|
|
13473
|
+
String.raw`(?:(?!${afterPath}).)*\.[A-Za-z]\w*(?=${afterPath})`,
|
|
13474
|
+
String.raw`(?=\S*\/)(?:(?!${afterPath}).)*\.[A-Za-z]\w*$`,
|
|
13475
|
+
String.raw`(?=.*(?:\.(?:test|spec)\.|\b__tests__\/))(?:(?!${afterPath}).)*\.[cm]?[jt]sx?$`
|
|
13476
|
+
];
|
|
13477
|
+
var failedFileLine = new RegExp(`^${failedFileStart}((?:${failedFilePaths.join("|")}).*)$`, "su");
|
|
13478
|
+
var attempt = String.raw`(?:\d+ times in )?(?:initial run|\d+[a-z]{2} (?:retry(?: of \d+[a-z]{2} repeat)?|repeat))`;
|
|
13479
|
+
var vitestAttempts = new RegExp(String.raw` \(${attempt}(?:, ${attempt})*\)$`, "u");
|
|
13480
|
+
|
|
13437
13481
|
// ../../packages/core/src/loop.ts
|
|
13438
13482
|
var LoopStatuses = ["draft", "active", "disabled", "archived"];
|
|
13439
13483
|
var LoopStepImplementationKinds = [
|
|
@@ -14006,6 +14050,7 @@ var RunEvidence = Struct({
|
|
|
14006
14050
|
failedTests: optionalKey2(ArraySchema(String5)),
|
|
14007
14051
|
skippedSinceBaseline: optionalKey2(ArraySchema(String5)),
|
|
14008
14052
|
newNotRun: optionalKey2(ArraySchema(String5)),
|
|
14053
|
+
environmentFailure: optionalKey2(EnvironmentFailure),
|
|
14009
14054
|
recordedAt: Timestamp
|
|
14010
14055
|
});
|
|
14011
14056
|
var ApprovedVerification = Struct({
|
|
@@ -19051,7 +19096,13 @@ var EvidenceCheck = Struct({
|
|
|
19051
19096
|
failedTests: optionalKey2(ArraySchema(String5)),
|
|
19052
19097
|
suggested: optionalKey2(Boolean3),
|
|
19053
19098
|
skippedSinceBaseline: optionalKey2(ArraySchema(String5)),
|
|
19054
|
-
newNotRun: optionalKey2(ArraySchema(String5))
|
|
19099
|
+
newNotRun: optionalKey2(ArraySchema(String5)),
|
|
19100
|
+
environmentFailure: optionalKey2(Struct({
|
|
19101
|
+
failedTests: optionalKey2(ArraySchema(String5)),
|
|
19102
|
+
exitCode: optionalKey2(Int),
|
|
19103
|
+
outputTail: optionalKey2(String5),
|
|
19104
|
+
retryFailedTests: optionalKey2(ArraySchema(String5))
|
|
19105
|
+
}))
|
|
19055
19106
|
});
|
|
19056
19107
|
var VerifyResult = Struct({
|
|
19057
19108
|
revision: String5,
|
|
@@ -20136,41 +20187,6 @@ var NetworkHostQuery = Struct({
|
|
|
20136
20187
|
repoBindingId: optionalKey2(Id)
|
|
20137
20188
|
});
|
|
20138
20189
|
|
|
20139
|
-
// ../../packages/core/src/test-report.ts
|
|
20140
|
-
var maxSkippedTests = 1e4;
|
|
20141
|
-
var maxRanDigests = 1e5;
|
|
20142
|
-
var TestId = String5.check(isMinLength(1), isMaxLength(1000));
|
|
20143
|
-
var maxFailedTests = 50;
|
|
20144
|
-
var maxFailedTestLength = 300;
|
|
20145
|
-
var CheckTests = Struct({
|
|
20146
|
-
reports: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
20147
|
-
passed: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
20148
|
-
failed: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
20149
|
-
skipped: Int.check(isGreaterThanOrEqualTo2(0)),
|
|
20150
|
-
skippedTests: ArraySchema(TestId).check(isMaxLength(maxSkippedTests)),
|
|
20151
|
-
ranDigests: ArraySchema(String5.check(isMaxLength(16))).check(isMaxLength(maxRanDigests)),
|
|
20152
|
-
failedTests: optionalKey2(ArraySchema(String5.check(isMinLength(1), isMaxLength(maxFailedTestLength))).check(isMaxLength(maxFailedTests)))
|
|
20153
|
-
});
|
|
20154
|
-
var entities = new Map([
|
|
20155
|
-
["amp", "&"],
|
|
20156
|
-
["lt", "<"],
|
|
20157
|
-
["gt", ">"],
|
|
20158
|
-
["quot", '"'],
|
|
20159
|
-
["apos", "'"]
|
|
20160
|
-
]);
|
|
20161
|
-
var failedFileStart = String.raw`FAIL +(?:\|[^|]+\| *)?(?! )(?!\S*:\/\/)`;
|
|
20162
|
-
var afterPath = String.raw` > | \[ `;
|
|
20163
|
-
var failedFilePaths = [
|
|
20164
|
-
String.raw`\S*\.[A-Za-z]\w*(?=[\s:]|$)`,
|
|
20165
|
-
String.raw`(?=\S*[A-Za-z])(?=\S*\/)\S+(?=${afterPath}|$)`,
|
|
20166
|
-
String.raw`(?:(?!${afterPath}).)*\.[A-Za-z]\w*(?=${afterPath})`,
|
|
20167
|
-
String.raw`(?=\S*\/)(?:(?!${afterPath}).)*\.[A-Za-z]\w*$`,
|
|
20168
|
-
String.raw`(?=.*(?:\.(?:test|spec)\.|\b__tests__\/))(?:(?!${afterPath}).)*\.[cm]?[jt]sx?$`
|
|
20169
|
-
];
|
|
20170
|
-
var failedFileLine = new RegExp(`^${failedFileStart}((?:${failedFilePaths.join("|")}).*)$`, "su");
|
|
20171
|
-
var attempt = String.raw`(?:\d+ times in )?(?:initial run|\d+[a-z]{2} (?:retry(?: of \d+[a-z]{2} repeat)?|repeat))`;
|
|
20172
|
-
var vitestAttempts = new RegExp(String.raw` \(${attempt}(?:, ${attempt})*\)$`, "u");
|
|
20173
|
-
|
|
20174
20190
|
// ../../packages/core/src/work-unit.ts
|
|
20175
20191
|
var WorkUnitLease = Struct({
|
|
20176
20192
|
leaseOwnerId: Id,
|
|
@@ -29134,7 +29150,12 @@ class RunnerReplicaRpcs extends make31(make30("Claim", {
|
|
|
29134
29150
|
error: RunnerRpcError
|
|
29135
29151
|
}), make30("KnownEvidence", {
|
|
29136
29152
|
payload: { lease: ProgramLease, trees: ArraySchema(String5) },
|
|
29137
|
-
success: ArraySchema(Struct({
|
|
29153
|
+
success: ArraySchema(Struct({
|
|
29154
|
+
tree: String5,
|
|
29155
|
+
name: String5,
|
|
29156
|
+
command: String5,
|
|
29157
|
+
unjudgedFailure: optionalKey2(Boolean3)
|
|
29158
|
+
})),
|
|
29138
29159
|
error: RunnerRpcError
|
|
29139
29160
|
})).middleware(RunnerAuthentication) {
|
|
29140
29161
|
}
|
|
@@ -32326,4 +32347,4 @@ var runKit = (config, identity, packages) => {
|
|
|
32326
32347
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
32327
32348
|
};
|
|
32328
32349
|
// .kitman-build-entry.ts
|
|
32329
|
-
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.
|
|
32350
|
+
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.19" }, []);
|
package/dist/declarations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.19",
|
|
4
4
|
"description": "Everything for building software: Loops, their Agents, the skills they use and the Ponytail plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"tsconfig.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@kitman-sh/sdk": "0.13.
|
|
20
|
+
"@kitman-sh/sdk": "0.13.19",
|
|
21
21
|
"effect": "^4.1.2"
|
|
22
22
|
},
|
|
23
23
|
"kitman": {
|
|
24
24
|
"bundle": "dist/bundle.js",
|
|
25
|
-
"digest": "
|
|
25
|
+
"digest": "fd4516631ffd13eafc088383d7ba0e8ff5deef85ae4b5fbb62f6fb4bba12f034",
|
|
26
26
|
"protocolVersion": 5,
|
|
27
27
|
"declarations": "dist/declarations.json",
|
|
28
28
|
"setup": {
|