@kitman-sh/software-engineering 0.14.7 → 0.14.9
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 +213 -80
- package/dist/declarations.json +207 -191
- package/package.json +3 -3
- package/src/build.ts +1 -0
- package/src/errand.ts +1 -0
- package/src/file-tasks.ts +1 -0
- package/src/firewatch.ts +1 -0
- package/src/hillclimb.ts +1 -0
- package/src/hindsight.ts +1 -0
- package/src/land-epic.ts +1 -0
- package/src/plan.ts +1 -0
- package/src/project-update.ts +1 -0
- package/src/release.ts +1 -0
- package/src/research.ts +1 -0
- package/src/review.ts +7 -1
- package/src/shepherd.ts +2 -0
- package/src/sweep.ts +1 -0
- package/src/tidy.ts +1 -0
package/dist/bundle.js
CHANGED
|
@@ -236,6 +236,9 @@ function isNever(_) {
|
|
|
236
236
|
function isUnknown(_) {
|
|
237
237
|
return true;
|
|
238
238
|
}
|
|
239
|
+
function isObjectOrArray(input) {
|
|
240
|
+
return typeof input === "object" && input !== null;
|
|
241
|
+
}
|
|
239
242
|
function isObject(input) {
|
|
240
243
|
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
241
244
|
}
|
|
@@ -12110,6 +12113,12 @@ var AgentSandboxPolicy = Struct({
|
|
|
12110
12113
|
|
|
12111
12114
|
// ../../packages/core/src/runtime-type.ts
|
|
12112
12115
|
var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
|
|
12116
|
+
function isObject2(value) {
|
|
12117
|
+
return isObjectOrArray(value);
|
|
12118
|
+
}
|
|
12119
|
+
function isJsonObject(value) {
|
|
12120
|
+
return isObject2(value) && value !== null && !Array.isArray(value);
|
|
12121
|
+
}
|
|
12113
12122
|
function isString2(value) {
|
|
12114
12123
|
return isString(value);
|
|
12115
12124
|
}
|
|
@@ -14586,10 +14595,12 @@ var RunStartPreview = Struct({
|
|
|
14586
14595
|
})
|
|
14587
14596
|
});
|
|
14588
14597
|
var LoopVersion = String5.check(isPattern2(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/));
|
|
14598
|
+
var LoopDescription = String5.check(isPattern2(/^[^\r\n]{1,160}$/));
|
|
14589
14599
|
var ProgramLoop = Struct({
|
|
14590
14600
|
id: String5,
|
|
14591
14601
|
title: String5,
|
|
14592
14602
|
version: optionalKey2(LoopVersion),
|
|
14603
|
+
description: optionalKey2(LoopDescription),
|
|
14593
14604
|
layer: Literals(["team", "workspace"]),
|
|
14594
14605
|
digest: String5,
|
|
14595
14606
|
outcome: optionalKey2(String5),
|
|
@@ -14650,7 +14661,8 @@ var RunListItem = Struct({
|
|
|
14650
14661
|
loop: Struct({ id: String5, title: String5 }),
|
|
14651
14662
|
task: optionalKey2(Struct({ id: Id, key: String5, title: String5 })),
|
|
14652
14663
|
display: RunDisplay,
|
|
14653
|
-
miniGraph: ArraySchema(Literals(RunDisplayStates))
|
|
14664
|
+
miniGraph: ArraySchema(Literals(RunDisplayStates)),
|
|
14665
|
+
steps: ArraySchema(Literals(RunDisplayStates))
|
|
14654
14666
|
});
|
|
14655
14667
|
var RunList = Struct({
|
|
14656
14668
|
items: ArraySchema(RunListItem),
|
|
@@ -14778,6 +14790,7 @@ var LoopCapabilities = [
|
|
|
14778
14790
|
"read_project",
|
|
14779
14791
|
"draft_update"
|
|
14780
14792
|
];
|
|
14793
|
+
var LoopRoles = ["review"];
|
|
14781
14794
|
var JsonObject2 = Record(String5, Json2);
|
|
14782
14795
|
var SecretName2 = String5.check(isPattern2(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
|
|
14783
14796
|
var EventFilterValue = Union2([String5, Finite, Boolean3, Null2]);
|
|
@@ -14793,9 +14806,11 @@ var LoopManifest = Struct({
|
|
|
14793
14806
|
id: String5,
|
|
14794
14807
|
title: String5,
|
|
14795
14808
|
version: optionalKey2(LoopVersion),
|
|
14809
|
+
description: optionalKey2(LoopDescription),
|
|
14796
14810
|
input: JsonObject2,
|
|
14797
14811
|
output: JsonObject2,
|
|
14798
14812
|
outcome: optionalKey2(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
|
|
14813
|
+
role: optionalKey2(Literals(LoopRoles)),
|
|
14799
14814
|
agents: Record(String5, String5),
|
|
14800
14815
|
checkout: Literals(["none", "read", "write"]),
|
|
14801
14816
|
when: ArraySchema(WhenClause),
|
|
@@ -14874,6 +14889,158 @@ var KitDeclarations = Struct({
|
|
|
14874
14889
|
var sameLoop = toEquivalence2(LoopManifest);
|
|
14875
14890
|
var sameAgent = toEquivalence2(AgentDeclaration);
|
|
14876
14891
|
|
|
14892
|
+
// ../../packages/sdk/src/loop/review.ts
|
|
14893
|
+
var Severity = Literals(["blocker", "major", "minor"]);
|
|
14894
|
+
var Finding = Struct({
|
|
14895
|
+
severity: Severity,
|
|
14896
|
+
file: String5,
|
|
14897
|
+
line: Int,
|
|
14898
|
+
detail: String5
|
|
14899
|
+
});
|
|
14900
|
+
var MergedFinding = Struct({
|
|
14901
|
+
id: String5,
|
|
14902
|
+
...Finding.fields,
|
|
14903
|
+
seats: ArraySchema(String5),
|
|
14904
|
+
blockingSeats: optionalKey2(ArraySchema(String5))
|
|
14905
|
+
});
|
|
14906
|
+
var Rebuttal = Struct({ findingId: String5, reason: String5 });
|
|
14907
|
+
var RebuttalVerdict = Struct({ findingId: String5, accepted: Boolean3 });
|
|
14908
|
+
var ScopeJudgement = Struct({ met: Boolean3, unmet: ArraySchema(String5) });
|
|
14909
|
+
var rank = { blocker: 0, major: 1, minor: 2 };
|
|
14910
|
+
var isBlocking = (finding) => finding.severity !== "minor";
|
|
14911
|
+
var mergeFindings = (bySeat) => {
|
|
14912
|
+
const merged = new Map;
|
|
14913
|
+
const blocking = new Map;
|
|
14914
|
+
for (const [seat, findings] of Object.entries(bySeat))
|
|
14915
|
+
for (const finding of findings) {
|
|
14916
|
+
const id = `${finding.file}:${finding.line}`;
|
|
14917
|
+
const known = merged.get(id);
|
|
14918
|
+
const seats = [...new Set([...known?.seats ?? [], seat])];
|
|
14919
|
+
const worst = known === undefined || rank[finding.severity] < rank[known.severity] ? finding : known;
|
|
14920
|
+
merged.set(id, { id, severity: worst.severity, file: worst.file, line: worst.line, detail: worst.detail, seats });
|
|
14921
|
+
if (isBlocking(finding))
|
|
14922
|
+
blocking.set(id, new Set([...blocking.get(id) ?? [], seat]));
|
|
14923
|
+
}
|
|
14924
|
+
return [...merged.values()].map((finding) => {
|
|
14925
|
+
const blockingSeats = [...blocking.get(finding.id) ?? []];
|
|
14926
|
+
return blockingSeats.length === 0 || blockingSeats.length === finding.seats.length ? finding : { ...finding, blockingSeats };
|
|
14927
|
+
}).toSorted((left, right) => rank[left.severity] - rank[right.severity]);
|
|
14928
|
+
};
|
|
14929
|
+
var splitDisputed = (findings, rebuttals) => {
|
|
14930
|
+
const disputed = [];
|
|
14931
|
+
const undisputed = [];
|
|
14932
|
+
for (const finding of findings) {
|
|
14933
|
+
const rebuttal = rebuttals.find((entry) => entry.findingId === finding.id);
|
|
14934
|
+
if (rebuttal === undefined)
|
|
14935
|
+
undisputed.push(finding);
|
|
14936
|
+
else
|
|
14937
|
+
disputed.push({ finding, rebuttal });
|
|
14938
|
+
}
|
|
14939
|
+
return { disputed, undisputed };
|
|
14940
|
+
};
|
|
14941
|
+
var settleRound = (round) => {
|
|
14942
|
+
const { disputed, undisputed } = splitDisputed(round.findings, round.rebuttals);
|
|
14943
|
+
const accepted = (entry) => {
|
|
14944
|
+
const verdicts = round.verdicts.filter((verdict) => verdict.findingId === entry.finding.id);
|
|
14945
|
+
return verdicts.length > 0 && verdicts.every((verdict) => verdict.accepted);
|
|
14946
|
+
};
|
|
14947
|
+
return {
|
|
14948
|
+
open: undisputed,
|
|
14949
|
+
withdrawn: disputed.filter(accepted),
|
|
14950
|
+
standing: disputed.filter((entry) => !accepted(entry))
|
|
14951
|
+
};
|
|
14952
|
+
};
|
|
14953
|
+
var rallyStop = (input) => {
|
|
14954
|
+
const open = input.settled.open.filter(isBlocking).map((finding) => finding.id);
|
|
14955
|
+
const standing = input.settled.standing.flatMap((entry) => isBlocking(entry.finding) ? [entry.finding.id] : []);
|
|
14956
|
+
const unsettled = [...open, ...standing];
|
|
14957
|
+
const stop = (reason) => ({ stop: true, reason, unsettled });
|
|
14958
|
+
if (unsettled.length === 0)
|
|
14959
|
+
return stop("settled");
|
|
14960
|
+
if (standing.length > 0)
|
|
14961
|
+
return stop("dispute_stands");
|
|
14962
|
+
if (input.previous !== undefined && sameIds(input.previous, unsettled))
|
|
14963
|
+
return stop("findings_returned");
|
|
14964
|
+
return input.round >= input.maxRounds ? stop("round_cap") : { stop: false };
|
|
14965
|
+
};
|
|
14966
|
+
var sameIds = (left, right) => left.length === right.length && left.every((id) => right.includes(id));
|
|
14967
|
+
|
|
14968
|
+
// ../../packages/sdk/src/loop/role.ts
|
|
14969
|
+
var ReviewRoleFinding = Struct({ id: String5, severity: Severity });
|
|
14970
|
+
var ReviewRoleInput = Struct({
|
|
14971
|
+
changeRequestId: optional2(String5),
|
|
14972
|
+
base: optional2(String5),
|
|
14973
|
+
head: optional2(String5),
|
|
14974
|
+
files: optional2(ArraySchema(String5)),
|
|
14975
|
+
since: optional2(String5),
|
|
14976
|
+
approved: optional2(String5),
|
|
14977
|
+
failing: optional2(ArraySchema(String5)),
|
|
14978
|
+
notRun: optional2(ArraySchema(String5)),
|
|
14979
|
+
reviewed: optional2(String5),
|
|
14980
|
+
earlier: optional2(ArraySchema(ReviewRoleFinding))
|
|
14981
|
+
});
|
|
14982
|
+
var ReviewRoleOutput = Struct({
|
|
14983
|
+
findings: ArraySchema(ReviewRoleFinding),
|
|
14984
|
+
blocking: Boolean3,
|
|
14985
|
+
scope: optional2(Struct({ met: Boolean3 })),
|
|
14986
|
+
failing: optional2(ArraySchema(String5))
|
|
14987
|
+
});
|
|
14988
|
+
var roleSchemas = { review: { input: ReviewRoleInput, output: ReviewRoleOutput } };
|
|
14989
|
+
var documentOf = (schema) => ({
|
|
14990
|
+
schema,
|
|
14991
|
+
defs: isJsonObject(schema.$defs) ? schema.$defs : {}
|
|
14992
|
+
});
|
|
14993
|
+
var resolved = (value, defs, seen = new Set) => {
|
|
14994
|
+
if (!isJsonObject(value))
|
|
14995
|
+
return {};
|
|
14996
|
+
const ref = value.$ref;
|
|
14997
|
+
if (!isString2(ref) || !ref.startsWith("#/$defs/") || seen.has(ref))
|
|
14998
|
+
return value;
|
|
14999
|
+
seen.add(ref);
|
|
15000
|
+
return resolved(defs[ref.slice("#/$defs/".length)], defs, seen);
|
|
15001
|
+
};
|
|
15002
|
+
var alternatives = (schema) => Array.isArray(schema.anyOf) ? schema.anyOf : undefined;
|
|
15003
|
+
var stringsOf = (value) => Array.isArray(value) ? value.filter(isString2) : [];
|
|
15004
|
+
var misfit = (loop, role, at, of, path) => {
|
|
15005
|
+
const mine = resolved(at, loop.defs);
|
|
15006
|
+
const theirs = resolved(of, role.defs);
|
|
15007
|
+
const mineAnyOf = alternatives(mine);
|
|
15008
|
+
if (mineAnyOf !== undefined)
|
|
15009
|
+
return mineAnyOf.map((option) => misfit(loop, role, option, theirs, path)).find((problem) => problem !== undefined);
|
|
15010
|
+
const theirsAnyOf = alternatives(theirs);
|
|
15011
|
+
if (theirsAnyOf !== undefined)
|
|
15012
|
+
return theirsAnyOf.some((option) => misfit(loop, role, mine, option, path) === undefined) ? undefined : `${path} has another type`;
|
|
15013
|
+
const type = theirs.type;
|
|
15014
|
+
if (type === undefined)
|
|
15015
|
+
return;
|
|
15016
|
+
if (!(mine.type === type || type === "number" && mine.type === "integer"))
|
|
15017
|
+
return `${path} has another type`;
|
|
15018
|
+
if (theirs.enum !== undefined) {
|
|
15019
|
+
const allowed = Array.isArray(theirs.enum) ? theirs.enum : [];
|
|
15020
|
+
if (!Array.isArray(mine.enum) || !mine.enum.every((value) => allowed.includes(value)))
|
|
15021
|
+
return `${path} takes values the role does not`;
|
|
15022
|
+
}
|
|
15023
|
+
if (type === "array")
|
|
15024
|
+
return misfit(loop, role, mine.items, theirs.items, `${path}[]`);
|
|
15025
|
+
if (type !== "object")
|
|
15026
|
+
return;
|
|
15027
|
+
const properties = isJsonObject(mine.properties) ? mine.properties : {};
|
|
15028
|
+
const required = stringsOf(mine.required);
|
|
15029
|
+
const needed = stringsOf(theirs.required);
|
|
15030
|
+
for (const [name, field] of Object.entries(isJsonObject(theirs.properties) ? theirs.properties : {})) {
|
|
15031
|
+
const named = path === "" ? name : `${path}.${name}`;
|
|
15032
|
+
if (properties[name] === undefined)
|
|
15033
|
+
return `${named} is missing`;
|
|
15034
|
+
if (needed.includes(name) && !required.includes(name))
|
|
15035
|
+
return `${named} is optional, and the role needs it always`;
|
|
15036
|
+
const problem = misfit(loop, role, properties[name], field, named);
|
|
15037
|
+
if (problem !== undefined)
|
|
15038
|
+
return problem;
|
|
15039
|
+
}
|
|
15040
|
+
return;
|
|
15041
|
+
};
|
|
15042
|
+
var roleMisfit = (loop, role) => misfit(documentOf(loop), documentOf(role), loop, role, "");
|
|
15043
|
+
|
|
14877
15044
|
// ../../packages/sdk/src/loop/define.ts
|
|
14878
15045
|
var LoopOutcome = Literals([
|
|
14879
15046
|
"feature",
|
|
@@ -14920,6 +15087,18 @@ var declarationsAreData = (definition) => decodeEffect2(JsonObjectSchema)({
|
|
|
14920
15087
|
offers: definition.offers ?? [],
|
|
14921
15088
|
schedule: definition.schedule ?? null
|
|
14922
15089
|
}).pipe(mapError3((error) => new ManifestInvalid({ loop: definition.id, message: `Declarations must be data: ${error.message}` })));
|
|
15090
|
+
var carriesRole = (loop, role, declared) => gen2(function* () {
|
|
15091
|
+
if (!LoopRoles.includes(role))
|
|
15092
|
+
return yield* new ManifestInvalid({ loop, message: `role "${String(role)}" is no role` });
|
|
15093
|
+
for (const side of ["input", "output"]) {
|
|
15094
|
+
const problem = roleMisfit(declared[side], yield* jsonSchemaOf(loop, roleSchemas[role][side]));
|
|
15095
|
+
if (problem !== undefined)
|
|
15096
|
+
return yield* new ManifestInvalid({
|
|
15097
|
+
loop,
|
|
15098
|
+
message: `role "${role}" reads the ${side === "input" ? "Input" : "Output"}'s fields, and ${problem}`
|
|
15099
|
+
});
|
|
15100
|
+
}
|
|
15101
|
+
});
|
|
14923
15102
|
var loopManifest = (definition) => gen2(function* () {
|
|
14924
15103
|
yield* declarationsAreData(definition);
|
|
14925
15104
|
if (definition.version !== undefined && !is2(LoopVersion)(definition.version))
|
|
@@ -14927,13 +15106,24 @@ var loopManifest = (definition) => gen2(function* () {
|
|
|
14927
15106
|
loop: definition.id,
|
|
14928
15107
|
message: `version "${String(definition.version)}" is not semver, such as 2.0.0`
|
|
14929
15108
|
});
|
|
15109
|
+
if (definition.description !== undefined && !is2(LoopDescription)(definition.description))
|
|
15110
|
+
return yield* new ManifestInvalid({
|
|
15111
|
+
loop: definition.id,
|
|
15112
|
+
message: "description must be one line of 1 to 160 characters"
|
|
15113
|
+
});
|
|
15114
|
+
const input = yield* jsonSchemaOf(definition.id, definition.input);
|
|
15115
|
+
const output = yield* jsonSchemaOf(definition.id, definition.output);
|
|
15116
|
+
if (definition.role !== undefined)
|
|
15117
|
+
yield* carriesRole(definition.id, definition.role, { input, output });
|
|
14930
15118
|
return {
|
|
14931
15119
|
id: definition.id,
|
|
14932
15120
|
title: definition.title,
|
|
14933
15121
|
...definition.version === undefined ? undefined : { version: definition.version },
|
|
14934
|
-
|
|
14935
|
-
|
|
15122
|
+
...definition.description === undefined ? undefined : { description: definition.description },
|
|
15123
|
+
input,
|
|
15124
|
+
output,
|
|
14936
15125
|
...definition.outcome === undefined ? undefined : { outcome: definition.outcome },
|
|
15126
|
+
...definition.role === undefined ? undefined : { role: definition.role },
|
|
14937
15127
|
agents: definition.agents,
|
|
14938
15128
|
checkout: definition.checkout,
|
|
14939
15129
|
when: definition.when ?? [],
|
|
@@ -20933,81 +21123,6 @@ var testLoop = (loop, script) => {
|
|
|
20933
21123
|
};
|
|
20934
21124
|
}).pipe(provide4(workflow.toLayer(execute).pipe(provideMerge(layerMemory))));
|
|
20935
21125
|
};
|
|
20936
|
-
// ../../packages/sdk/src/loop/review.ts
|
|
20937
|
-
var Severity = Literals(["blocker", "major", "minor"]);
|
|
20938
|
-
var Finding = Struct({
|
|
20939
|
-
severity: Severity,
|
|
20940
|
-
file: String5,
|
|
20941
|
-
line: Int,
|
|
20942
|
-
detail: String5
|
|
20943
|
-
});
|
|
20944
|
-
var MergedFinding = Struct({
|
|
20945
|
-
id: String5,
|
|
20946
|
-
...Finding.fields,
|
|
20947
|
-
seats: ArraySchema(String5),
|
|
20948
|
-
blockingSeats: optionalKey2(ArraySchema(String5))
|
|
20949
|
-
});
|
|
20950
|
-
var Rebuttal = Struct({ findingId: String5, reason: String5 });
|
|
20951
|
-
var RebuttalVerdict = Struct({ findingId: String5, accepted: Boolean3 });
|
|
20952
|
-
var ScopeJudgement = Struct({ met: Boolean3, unmet: ArraySchema(String5) });
|
|
20953
|
-
var rank = { blocker: 0, major: 1, minor: 2 };
|
|
20954
|
-
var isBlocking = (finding) => finding.severity !== "minor";
|
|
20955
|
-
var mergeFindings = (bySeat) => {
|
|
20956
|
-
const merged = new Map;
|
|
20957
|
-
const blocking = new Map;
|
|
20958
|
-
for (const [seat, findings] of Object.entries(bySeat))
|
|
20959
|
-
for (const finding of findings) {
|
|
20960
|
-
const id = `${finding.file}:${finding.line}`;
|
|
20961
|
-
const known = merged.get(id);
|
|
20962
|
-
const seats = [...new Set([...known?.seats ?? [], seat])];
|
|
20963
|
-
const worst = known === undefined || rank[finding.severity] < rank[known.severity] ? finding : known;
|
|
20964
|
-
merged.set(id, { id, severity: worst.severity, file: worst.file, line: worst.line, detail: worst.detail, seats });
|
|
20965
|
-
if (isBlocking(finding))
|
|
20966
|
-
blocking.set(id, new Set([...blocking.get(id) ?? [], seat]));
|
|
20967
|
-
}
|
|
20968
|
-
return [...merged.values()].map((finding) => {
|
|
20969
|
-
const blockingSeats = [...blocking.get(finding.id) ?? []];
|
|
20970
|
-
return blockingSeats.length === 0 || blockingSeats.length === finding.seats.length ? finding : { ...finding, blockingSeats };
|
|
20971
|
-
}).toSorted((left, right) => rank[left.severity] - rank[right.severity]);
|
|
20972
|
-
};
|
|
20973
|
-
var splitDisputed = (findings, rebuttals) => {
|
|
20974
|
-
const disputed = [];
|
|
20975
|
-
const undisputed = [];
|
|
20976
|
-
for (const finding of findings) {
|
|
20977
|
-
const rebuttal = rebuttals.find((entry) => entry.findingId === finding.id);
|
|
20978
|
-
if (rebuttal === undefined)
|
|
20979
|
-
undisputed.push(finding);
|
|
20980
|
-
else
|
|
20981
|
-
disputed.push({ finding, rebuttal });
|
|
20982
|
-
}
|
|
20983
|
-
return { disputed, undisputed };
|
|
20984
|
-
};
|
|
20985
|
-
var settleRound = (round) => {
|
|
20986
|
-
const { disputed, undisputed } = splitDisputed(round.findings, round.rebuttals);
|
|
20987
|
-
const accepted = (entry) => {
|
|
20988
|
-
const verdicts = round.verdicts.filter((verdict) => verdict.findingId === entry.finding.id);
|
|
20989
|
-
return verdicts.length > 0 && verdicts.every((verdict) => verdict.accepted);
|
|
20990
|
-
};
|
|
20991
|
-
return {
|
|
20992
|
-
open: undisputed,
|
|
20993
|
-
withdrawn: disputed.filter(accepted),
|
|
20994
|
-
standing: disputed.filter((entry) => !accepted(entry))
|
|
20995
|
-
};
|
|
20996
|
-
};
|
|
20997
|
-
var rallyStop = (input) => {
|
|
20998
|
-
const open = input.settled.open.filter(isBlocking).map((finding) => finding.id);
|
|
20999
|
-
const standing = input.settled.standing.flatMap((entry) => isBlocking(entry.finding) ? [entry.finding.id] : []);
|
|
21000
|
-
const unsettled = [...open, ...standing];
|
|
21001
|
-
const stop = (reason) => ({ stop: true, reason, unsettled });
|
|
21002
|
-
if (unsettled.length === 0)
|
|
21003
|
-
return stop("settled");
|
|
21004
|
-
if (standing.length > 0)
|
|
21005
|
-
return stop("dispute_stands");
|
|
21006
|
-
if (input.previous !== undefined && sameIds(input.previous, unsettled))
|
|
21007
|
-
return stop("findings_returned");
|
|
21008
|
-
return input.round >= input.maxRounds ? stop("round_cap") : { stop: false };
|
|
21009
|
-
};
|
|
21010
|
-
var sameIds = (left, right) => left.length === right.length && left.every((id) => right.includes(id));
|
|
21011
21126
|
// ../../packages/sdk/src/loop/check.ts
|
|
21012
21127
|
class CheckFailed extends TaggedError3()("CheckFailed", {
|
|
21013
21128
|
loop: String5,
|
|
@@ -21351,6 +21466,7 @@ var seatNames = ["code-review", "quality"];
|
|
|
21351
21466
|
var scopeSeat = "code-review";
|
|
21352
21467
|
var choices = ["Post to the ChangeRequest", "Fix here", "Build from it", "Done"];
|
|
21353
21468
|
var Input = Struct({
|
|
21469
|
+
...ReviewRoleInput.fields,
|
|
21354
21470
|
changeRequestId: optional2(String5),
|
|
21355
21471
|
deliveredBy: optional2(String5),
|
|
21356
21472
|
base: optional2(String5),
|
|
@@ -21500,6 +21616,7 @@ var ApprovedFinding = Struct({
|
|
|
21500
21616
|
problem: OutOfScopeFinding.fields.problem
|
|
21501
21617
|
});
|
|
21502
21618
|
var Output = Struct({
|
|
21619
|
+
...ReviewRoleOutput.fields,
|
|
21503
21620
|
summary: String5,
|
|
21504
21621
|
findings: ArraySchema(MergedFinding),
|
|
21505
21622
|
approvedFindings: optional2(ArraySchema(ApprovedFinding)),
|
|
@@ -21950,8 +22067,10 @@ var fixBrief = (changeRequestId, findings, unmet) => [
|
|
|
21950
22067
|
`);
|
|
21951
22068
|
var review_default = defineLoop({
|
|
21952
22069
|
id: "review",
|
|
21953
|
-
version: "3.
|
|
22070
|
+
version: "3.12.0",
|
|
21954
22071
|
title: "Review",
|
|
22072
|
+
description: "Reviews a ChangeRequest or revision range with two reviewers and writes one review.",
|
|
22073
|
+
role: "review",
|
|
21955
22074
|
input: Input,
|
|
21956
22075
|
output: Output,
|
|
21957
22076
|
agents: { "code-review": "code-reviewer", quality: "quality-reviewer" },
|
|
@@ -22358,6 +22477,7 @@ var release_default = defineLoop({
|
|
|
22358
22477
|
id: "release",
|
|
22359
22478
|
version: "2.4.0",
|
|
22360
22479
|
title: "Release",
|
|
22480
|
+
description: "Tags and publishes a release of what merged, and follows its deploy.",
|
|
22361
22481
|
input: Input2,
|
|
22362
22482
|
output: Output2,
|
|
22363
22483
|
agents: { releaser: "releaser" },
|
|
@@ -22740,6 +22860,7 @@ var landEpic = defineLoop({
|
|
|
22740
22860
|
id: "land-epic",
|
|
22741
22861
|
version: "1.0.0",
|
|
22742
22862
|
title: "Land epic",
|
|
22863
|
+
description: "Keeps an epic's branch up to date and, once every sub-task is done, merges it to the default branch.",
|
|
22743
22864
|
input: LandEpicInput,
|
|
22744
22865
|
output: LandEpicOutput,
|
|
22745
22866
|
agents: { implementer: "implementer" },
|
|
@@ -22903,6 +23024,7 @@ var shepherd_default = defineLoop({
|
|
|
22903
23024
|
id: "shepherd",
|
|
22904
23025
|
version: "1.11.0",
|
|
22905
23026
|
title: "Shepherd",
|
|
23027
|
+
description: "Takes an open ChangeRequest to merge: catches it up, fixes its pipeline, gets it approved and merges it.",
|
|
22906
23028
|
input: Input3,
|
|
22907
23029
|
output: Output3,
|
|
22908
23030
|
agents: { implementer: "implementer" },
|
|
@@ -24114,6 +24236,7 @@ var build2 = defineLoop({
|
|
|
24114
24236
|
id: "build",
|
|
24115
24237
|
version: "2.13.0",
|
|
24116
24238
|
title: "Build",
|
|
24239
|
+
description: "Implements a Task or words, reviews and fixes the change, and opens a ChangeRequest with its evidence.",
|
|
24117
24240
|
input: BuildInput,
|
|
24118
24241
|
output: BuildOutput,
|
|
24119
24242
|
agents: { implementer: "implementer", "planned-implementer": "planned-implementer" },
|
|
@@ -24356,6 +24479,7 @@ var errand_default = defineLoop({
|
|
|
24356
24479
|
id: "errand",
|
|
24357
24480
|
version: "1.0.0",
|
|
24358
24481
|
title: "Errand",
|
|
24482
|
+
description: "One agent does a small change with no review rally, then opens it as an unreviewed ChangeRequest.",
|
|
24359
24483
|
input: Input4,
|
|
24360
24484
|
output: Output4,
|
|
24361
24485
|
agents: { implementer: "implementer" },
|
|
@@ -24566,6 +24690,7 @@ var file_tasks_default = defineLoop({
|
|
|
24566
24690
|
id: "file-tasks",
|
|
24567
24691
|
version: "2.1.0",
|
|
24568
24692
|
title: "File Tasks",
|
|
24693
|
+
description: "Files reviewed tickets as Tasks, with their blockers as dependencies.",
|
|
24569
24694
|
input: FileTasksInput,
|
|
24570
24695
|
output: Output5,
|
|
24571
24696
|
agents: { "plan-reviewer": "plan-reviewer" },
|
|
@@ -24717,6 +24842,7 @@ var hillclimb_default = defineLoop({
|
|
|
24717
24842
|
id: "hillclimb",
|
|
24718
24843
|
version: "1.6.0",
|
|
24719
24844
|
title: "Hillclimb",
|
|
24845
|
+
description: "Improves a measured number one verified step at a time, keeping only the steps that prove a gain.",
|
|
24720
24846
|
outcome: "performance",
|
|
24721
24847
|
input: Input5,
|
|
24722
24848
|
output: Output6,
|
|
@@ -24993,6 +25119,7 @@ var firewatch_default = defineLoop({
|
|
|
24993
25119
|
id: "firewatch",
|
|
24994
25120
|
version: "1.0.0",
|
|
24995
25121
|
title: "Firewatch",
|
|
25122
|
+
description: "Investigates an alert and writes its cited cause on a Bug Task, offering a fix.",
|
|
24996
25123
|
input: Input6,
|
|
24997
25124
|
output: Output7,
|
|
24998
25125
|
outcome: "investigation",
|
|
@@ -25502,6 +25629,7 @@ var plan_default = defineLoop({
|
|
|
25502
25629
|
id: "plan",
|
|
25503
25630
|
version: "3.1.0",
|
|
25504
25631
|
title: "Plan",
|
|
25632
|
+
description: "Plans a goal into reviewed tickets and a spec, then builds them or files them as Tasks.",
|
|
25505
25633
|
input: Input7,
|
|
25506
25634
|
output: Output8,
|
|
25507
25635
|
agents: { planner: "planner", reviewer: "reviewer", "plan-reviewer": "plan-reviewer" },
|
|
@@ -25703,6 +25831,7 @@ var project_update_default = defineLoop({
|
|
|
25703
25831
|
id: "project-update",
|
|
25704
25832
|
version: "2.0.1",
|
|
25705
25833
|
title: "Project update",
|
|
25834
|
+
description: "Drafts a Project's next Update from its recent Runs and Task changes, for a person to post.",
|
|
25706
25835
|
input: Input8,
|
|
25707
25836
|
output: Output9,
|
|
25708
25837
|
agents: { writer: "writer" },
|
|
@@ -25842,6 +25971,7 @@ var research_default = defineLoop({
|
|
|
25842
25971
|
id: "research",
|
|
25843
25972
|
version: "2.1.0",
|
|
25844
25973
|
title: "Research",
|
|
25974
|
+
description: "Answers a question from primary sources, with a reviewed report and suggested next steps.",
|
|
25845
25975
|
input: Input9,
|
|
25846
25976
|
output: Output10,
|
|
25847
25977
|
outcome: "investigation",
|
|
@@ -26023,6 +26153,7 @@ var hindsight_default = defineLoop({
|
|
|
26023
26153
|
id: "hindsight",
|
|
26024
26154
|
version: "1.2.0",
|
|
26025
26155
|
title: "Hindsight",
|
|
26156
|
+
description: "Reads the last week's settled Runs and proposes Memory and Tasks for what kept going wrong.",
|
|
26026
26157
|
input: Input10,
|
|
26027
26158
|
output: Output11,
|
|
26028
26159
|
outcome: "investigation",
|
|
@@ -26193,6 +26324,7 @@ var sweep_default = defineLoop({
|
|
|
26193
26324
|
id: "sweep",
|
|
26194
26325
|
version: "1.2.0",
|
|
26195
26326
|
title: "Sweep",
|
|
26327
|
+
description: "Lands the dependency bot's safe updates together in one ChangeRequest and explains the rest.",
|
|
26196
26328
|
input: Input11,
|
|
26197
26329
|
output: Output12,
|
|
26198
26330
|
agents: { assessor: "investigator", implementer: "implementer" },
|
|
@@ -26417,6 +26549,7 @@ var tidy_default = defineLoop({
|
|
|
26417
26549
|
id: "tidy",
|
|
26418
26550
|
version: "1.1.0",
|
|
26419
26551
|
title: "Tidy",
|
|
26552
|
+
description: "Finds the code-quality improvement worth most and opens it as one reviewable ChangeRequest.",
|
|
26420
26553
|
input: Input12,
|
|
26421
26554
|
output: Output13,
|
|
26422
26555
|
agents: { implementer: "implementer", surveyor: "surveyor" },
|
|
@@ -32418,4 +32551,4 @@ var runKit = (config, identity, packages) => {
|
|
|
32418
32551
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
32419
32552
|
};
|
|
32420
32553
|
// .kitman-build-entry.ts
|
|
32421
|
-
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.14.
|
|
32554
|
+
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.14.9" }, []);
|
package/dist/declarations.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"id": "build",
|
|
5
5
|
"title": "Build",
|
|
6
6
|
"version": "2.13.0",
|
|
7
|
+
"description": "Implements a Task or words, reviews and fixes the change, and opens a ChangeRequest with its evidence.",
|
|
7
8
|
"input": {
|
|
8
9
|
"type": "object",
|
|
9
10
|
"properties": {
|
|
@@ -1544,6 +1545,7 @@
|
|
|
1544
1545
|
"id": "errand",
|
|
1545
1546
|
"title": "Errand",
|
|
1546
1547
|
"version": "1.0.0",
|
|
1548
|
+
"description": "One agent does a small change with no review rally, then opens it as an unreviewed ChangeRequest.",
|
|
1547
1549
|
"input": {
|
|
1548
1550
|
"type": "object",
|
|
1549
1551
|
"properties": {
|
|
@@ -1677,6 +1679,7 @@
|
|
|
1677
1679
|
"id": "file-tasks",
|
|
1678
1680
|
"title": "File Tasks",
|
|
1679
1681
|
"version": "2.1.0",
|
|
1682
|
+
"description": "Files reviewed tickets as Tasks, with their blockers as dependencies.",
|
|
1680
1683
|
"input": {
|
|
1681
1684
|
"type": "object",
|
|
1682
1685
|
"properties": {
|
|
@@ -1850,6 +1853,7 @@
|
|
|
1850
1853
|
"id": "hillclimb",
|
|
1851
1854
|
"title": "Hillclimb",
|
|
1852
1855
|
"version": "1.6.0",
|
|
1856
|
+
"description": "Improves a measured number one verified step at a time, keeping only the steps that prove a gain.",
|
|
1853
1857
|
"input": {
|
|
1854
1858
|
"type": "object",
|
|
1855
1859
|
"properties": {
|
|
@@ -2078,6 +2082,7 @@
|
|
|
2078
2082
|
"id": "firewatch",
|
|
2079
2083
|
"title": "Firewatch",
|
|
2080
2084
|
"version": "1.0.0",
|
|
2085
|
+
"description": "Investigates an alert and writes its cited cause on a Bug Task, offering a fix.",
|
|
2081
2086
|
"input": {
|
|
2082
2087
|
"type": "object",
|
|
2083
2088
|
"properties": {
|
|
@@ -2267,6 +2272,7 @@
|
|
|
2267
2272
|
"id": "plan",
|
|
2268
2273
|
"title": "Plan",
|
|
2269
2274
|
"version": "3.1.0",
|
|
2275
|
+
"description": "Plans a goal into reviewed tickets and a spec, then builds them or files them as Tasks.",
|
|
2270
2276
|
"input": {
|
|
2271
2277
|
"type": "object",
|
|
2272
2278
|
"properties": {
|
|
@@ -2574,6 +2580,7 @@
|
|
|
2574
2580
|
"id": "project-update",
|
|
2575
2581
|
"title": "Project update",
|
|
2576
2582
|
"version": "2.0.1",
|
|
2583
|
+
"description": "Drafts a Project's next Update from its recent Runs and Task changes, for a person to post.",
|
|
2577
2584
|
"input": {
|
|
2578
2585
|
"type": "object",
|
|
2579
2586
|
"properties": {
|
|
@@ -2635,6 +2642,7 @@
|
|
|
2635
2642
|
"id": "release",
|
|
2636
2643
|
"title": "Release",
|
|
2637
2644
|
"version": "2.4.0",
|
|
2645
|
+
"description": "Tags and publishes a release of what merged, and follows its deploy.",
|
|
2638
2646
|
"input": {
|
|
2639
2647
|
"type": "object",
|
|
2640
2648
|
"properties": {
|
|
@@ -3189,6 +3197,7 @@
|
|
|
3189
3197
|
"id": "research",
|
|
3190
3198
|
"title": "Research",
|
|
3191
3199
|
"version": "2.1.0",
|
|
3200
|
+
"description": "Answers a question from primary sources, with a reviewed report and suggested next steps.",
|
|
3192
3201
|
"input": {
|
|
3193
3202
|
"type": "object",
|
|
3194
3203
|
"properties": {
|
|
@@ -3393,6 +3402,7 @@
|
|
|
3393
3402
|
"id": "hindsight",
|
|
3394
3403
|
"title": "Hindsight",
|
|
3395
3404
|
"version": "1.2.0",
|
|
3405
|
+
"description": "Reads the last week's settled Runs and proposes Memory and Tasks for what kept going wrong.",
|
|
3396
3406
|
"input": {
|
|
3397
3407
|
"type": "object",
|
|
3398
3408
|
"properties": {
|
|
@@ -3644,6 +3654,7 @@
|
|
|
3644
3654
|
"id": "land-epic",
|
|
3645
3655
|
"title": "Land epic",
|
|
3646
3656
|
"version": "1.0.0",
|
|
3657
|
+
"description": "Keeps an epic's branch up to date and, once every sub-task is done, merges it to the default branch.",
|
|
3647
3658
|
"input": {
|
|
3648
3659
|
"type": "object",
|
|
3649
3660
|
"properties": {
|
|
@@ -4457,7 +4468,8 @@
|
|
|
4457
4468
|
{
|
|
4458
4469
|
"id": "review",
|
|
4459
4470
|
"title": "Review",
|
|
4460
|
-
"version": "3.
|
|
4471
|
+
"version": "3.12.0",
|
|
4472
|
+
"description": "Reviews a ChangeRequest or revision range with two reviewers and writes one review.",
|
|
4461
4473
|
"input": {
|
|
4462
4474
|
"type": "object",
|
|
4463
4475
|
"properties": {
|
|
@@ -4471,16 +4483,6 @@
|
|
|
4471
4483
|
}
|
|
4472
4484
|
]
|
|
4473
4485
|
},
|
|
4474
|
-
"deliveredBy": {
|
|
4475
|
-
"anyOf": [
|
|
4476
|
-
{
|
|
4477
|
-
"type": "string"
|
|
4478
|
-
},
|
|
4479
|
-
{
|
|
4480
|
-
"type": "null"
|
|
4481
|
-
}
|
|
4482
|
-
]
|
|
4483
|
-
},
|
|
4484
4486
|
"base": {
|
|
4485
4487
|
"anyOf": [
|
|
4486
4488
|
{
|
|
@@ -4534,25 +4536,12 @@
|
|
|
4534
4536
|
}
|
|
4535
4537
|
]
|
|
4536
4538
|
},
|
|
4537
|
-
"
|
|
4539
|
+
"failing": {
|
|
4538
4540
|
"anyOf": [
|
|
4539
4541
|
{
|
|
4540
4542
|
"type": "array",
|
|
4541
4543
|
"items": {
|
|
4542
|
-
"type": "
|
|
4543
|
-
"properties": {
|
|
4544
|
-
"findingId": {
|
|
4545
|
-
"type": "string"
|
|
4546
|
-
},
|
|
4547
|
-
"reason": {
|
|
4548
|
-
"type": "string"
|
|
4549
|
-
}
|
|
4550
|
-
},
|
|
4551
|
-
"required": [
|
|
4552
|
-
"findingId",
|
|
4553
|
-
"reason"
|
|
4554
|
-
],
|
|
4555
|
-
"additionalProperties": true
|
|
4544
|
+
"type": "string"
|
|
4556
4545
|
}
|
|
4557
4546
|
},
|
|
4558
4547
|
{
|
|
@@ -4560,32 +4549,23 @@
|
|
|
4560
4549
|
}
|
|
4561
4550
|
]
|
|
4562
4551
|
},
|
|
4563
|
-
"
|
|
4552
|
+
"notRun": {
|
|
4564
4553
|
"anyOf": [
|
|
4565
4554
|
{
|
|
4566
|
-
"type": "
|
|
4567
|
-
"
|
|
4568
|
-
"
|
|
4569
|
-
|
|
4570
|
-
"refactor",
|
|
4571
|
-
"investigation",
|
|
4572
|
-
"docs",
|
|
4573
|
-
"migration",
|
|
4574
|
-
"performance"
|
|
4575
|
-
]
|
|
4555
|
+
"type": "array",
|
|
4556
|
+
"items": {
|
|
4557
|
+
"type": "string"
|
|
4558
|
+
}
|
|
4576
4559
|
},
|
|
4577
4560
|
{
|
|
4578
4561
|
"type": "null"
|
|
4579
4562
|
}
|
|
4580
4563
|
]
|
|
4581
4564
|
},
|
|
4582
|
-
"
|
|
4565
|
+
"reviewed": {
|
|
4583
4566
|
"anyOf": [
|
|
4584
4567
|
{
|
|
4585
|
-
"type": "
|
|
4586
|
-
"items": {
|
|
4587
|
-
"type": "string"
|
|
4588
|
-
}
|
|
4568
|
+
"type": "string"
|
|
4589
4569
|
},
|
|
4590
4570
|
{
|
|
4591
4571
|
"type": "null"
|
|
@@ -4650,7 +4630,7 @@
|
|
|
4650
4630
|
}
|
|
4651
4631
|
]
|
|
4652
4632
|
},
|
|
4653
|
-
"
|
|
4633
|
+
"deliveredBy": {
|
|
4654
4634
|
"anyOf": [
|
|
4655
4635
|
{
|
|
4656
4636
|
"type": "string"
|
|
@@ -4660,6 +4640,64 @@
|
|
|
4660
4640
|
}
|
|
4661
4641
|
]
|
|
4662
4642
|
},
|
|
4643
|
+
"rebuttals": {
|
|
4644
|
+
"anyOf": [
|
|
4645
|
+
{
|
|
4646
|
+
"type": "array",
|
|
4647
|
+
"items": {
|
|
4648
|
+
"type": "object",
|
|
4649
|
+
"properties": {
|
|
4650
|
+
"findingId": {
|
|
4651
|
+
"type": "string"
|
|
4652
|
+
},
|
|
4653
|
+
"reason": {
|
|
4654
|
+
"type": "string"
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4657
|
+
"required": [
|
|
4658
|
+
"findingId",
|
|
4659
|
+
"reason"
|
|
4660
|
+
],
|
|
4661
|
+
"additionalProperties": true
|
|
4662
|
+
}
|
|
4663
|
+
},
|
|
4664
|
+
{
|
|
4665
|
+
"type": "null"
|
|
4666
|
+
}
|
|
4667
|
+
]
|
|
4668
|
+
},
|
|
4669
|
+
"outcome": {
|
|
4670
|
+
"anyOf": [
|
|
4671
|
+
{
|
|
4672
|
+
"type": "string",
|
|
4673
|
+
"enum": [
|
|
4674
|
+
"feature",
|
|
4675
|
+
"bug",
|
|
4676
|
+
"refactor",
|
|
4677
|
+
"investigation",
|
|
4678
|
+
"docs",
|
|
4679
|
+
"migration",
|
|
4680
|
+
"performance"
|
|
4681
|
+
]
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
"type": "null"
|
|
4685
|
+
}
|
|
4686
|
+
]
|
|
4687
|
+
},
|
|
4688
|
+
"claims": {
|
|
4689
|
+
"anyOf": [
|
|
4690
|
+
{
|
|
4691
|
+
"type": "array",
|
|
4692
|
+
"items": {
|
|
4693
|
+
"type": "string"
|
|
4694
|
+
}
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
"type": "null"
|
|
4698
|
+
}
|
|
4699
|
+
]
|
|
4700
|
+
},
|
|
4663
4701
|
"scope": {
|
|
4664
4702
|
"anyOf": [
|
|
4665
4703
|
{
|
|
@@ -4760,32 +4798,6 @@
|
|
|
4760
4798
|
}
|
|
4761
4799
|
]
|
|
4762
4800
|
},
|
|
4763
|
-
"failing": {
|
|
4764
|
-
"anyOf": [
|
|
4765
|
-
{
|
|
4766
|
-
"type": "array",
|
|
4767
|
-
"items": {
|
|
4768
|
-
"type": "string"
|
|
4769
|
-
}
|
|
4770
|
-
},
|
|
4771
|
-
{
|
|
4772
|
-
"type": "null"
|
|
4773
|
-
}
|
|
4774
|
-
]
|
|
4775
|
-
},
|
|
4776
|
-
"notRun": {
|
|
4777
|
-
"anyOf": [
|
|
4778
|
-
{
|
|
4779
|
-
"type": "array",
|
|
4780
|
-
"items": {
|
|
4781
|
-
"type": "string"
|
|
4782
|
-
}
|
|
4783
|
-
},
|
|
4784
|
-
{
|
|
4785
|
-
"type": "null"
|
|
4786
|
-
}
|
|
4787
|
-
]
|
|
4788
|
-
},
|
|
4789
4801
|
"outOfScopeFindings": {
|
|
4790
4802
|
"anyOf": [
|
|
4791
4803
|
{
|
|
@@ -5021,9 +5033,6 @@
|
|
|
5021
5033
|
"output": {
|
|
5022
5034
|
"type": "object",
|
|
5023
5035
|
"properties": {
|
|
5024
|
-
"summary": {
|
|
5025
|
-
"type": "string"
|
|
5026
|
-
},
|
|
5027
5036
|
"findings": {
|
|
5028
5037
|
"type": "array",
|
|
5029
5038
|
"items": {
|
|
@@ -5075,6 +5084,125 @@
|
|
|
5075
5084
|
"additionalProperties": true
|
|
5076
5085
|
}
|
|
5077
5086
|
},
|
|
5087
|
+
"blocking": {
|
|
5088
|
+
"type": "boolean"
|
|
5089
|
+
},
|
|
5090
|
+
"scope": {
|
|
5091
|
+
"anyOf": [
|
|
5092
|
+
{
|
|
5093
|
+
"type": "object",
|
|
5094
|
+
"properties": {
|
|
5095
|
+
"met": {
|
|
5096
|
+
"type": "boolean"
|
|
5097
|
+
},
|
|
5098
|
+
"unmet": {
|
|
5099
|
+
"type": "array",
|
|
5100
|
+
"items": {
|
|
5101
|
+
"type": "string"
|
|
5102
|
+
}
|
|
5103
|
+
},
|
|
5104
|
+
"reported": {
|
|
5105
|
+
"anyOf": [
|
|
5106
|
+
{
|
|
5107
|
+
"type": "array",
|
|
5108
|
+
"items": {
|
|
5109
|
+
"type": "string"
|
|
5110
|
+
}
|
|
5111
|
+
},
|
|
5112
|
+
{
|
|
5113
|
+
"type": "null"
|
|
5114
|
+
}
|
|
5115
|
+
]
|
|
5116
|
+
},
|
|
5117
|
+
"outOfScope": {
|
|
5118
|
+
"anyOf": [
|
|
5119
|
+
{
|
|
5120
|
+
"type": "array",
|
|
5121
|
+
"items": {
|
|
5122
|
+
"type": "object",
|
|
5123
|
+
"properties": {
|
|
5124
|
+
"part": {
|
|
5125
|
+
"type": "string"
|
|
5126
|
+
},
|
|
5127
|
+
"item": {
|
|
5128
|
+
"type": "string"
|
|
5129
|
+
}
|
|
5130
|
+
},
|
|
5131
|
+
"required": [
|
|
5132
|
+
"part",
|
|
5133
|
+
"item"
|
|
5134
|
+
],
|
|
5135
|
+
"additionalProperties": true
|
|
5136
|
+
}
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
"type": "null"
|
|
5140
|
+
}
|
|
5141
|
+
]
|
|
5142
|
+
},
|
|
5143
|
+
"criteria": {
|
|
5144
|
+
"anyOf": [
|
|
5145
|
+
{
|
|
5146
|
+
"type": "array",
|
|
5147
|
+
"items": {
|
|
5148
|
+
"type": "object",
|
|
5149
|
+
"properties": {
|
|
5150
|
+
"criterion": {
|
|
5151
|
+
"type": "string"
|
|
5152
|
+
},
|
|
5153
|
+
"status": {
|
|
5154
|
+
"type": "string",
|
|
5155
|
+
"enum": [
|
|
5156
|
+
"met",
|
|
5157
|
+
"open",
|
|
5158
|
+
"out_of_scope",
|
|
5159
|
+
"reported"
|
|
5160
|
+
]
|
|
5161
|
+
},
|
|
5162
|
+
"item": {
|
|
5163
|
+
"type": "string"
|
|
5164
|
+
}
|
|
5165
|
+
},
|
|
5166
|
+
"required": [
|
|
5167
|
+
"criterion",
|
|
5168
|
+
"status"
|
|
5169
|
+
],
|
|
5170
|
+
"additionalProperties": true
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
5173
|
+
{
|
|
5174
|
+
"type": "null"
|
|
5175
|
+
}
|
|
5176
|
+
]
|
|
5177
|
+
}
|
|
5178
|
+
},
|
|
5179
|
+
"required": [
|
|
5180
|
+
"met",
|
|
5181
|
+
"unmet"
|
|
5182
|
+
],
|
|
5183
|
+
"additionalProperties": true
|
|
5184
|
+
},
|
|
5185
|
+
{
|
|
5186
|
+
"type": "null"
|
|
5187
|
+
}
|
|
5188
|
+
]
|
|
5189
|
+
},
|
|
5190
|
+
"failing": {
|
|
5191
|
+
"anyOf": [
|
|
5192
|
+
{
|
|
5193
|
+
"type": "array",
|
|
5194
|
+
"items": {
|
|
5195
|
+
"type": "string"
|
|
5196
|
+
}
|
|
5197
|
+
},
|
|
5198
|
+
{
|
|
5199
|
+
"type": "null"
|
|
5200
|
+
}
|
|
5201
|
+
]
|
|
5202
|
+
},
|
|
5203
|
+
"summary": {
|
|
5204
|
+
"type": "string"
|
|
5205
|
+
},
|
|
5078
5206
|
"approvedFindings": {
|
|
5079
5207
|
"anyOf": [
|
|
5080
5208
|
{
|
|
@@ -5246,125 +5374,9 @@
|
|
|
5246
5374
|
"additionalProperties": true
|
|
5247
5375
|
}
|
|
5248
5376
|
},
|
|
5249
|
-
"blocking": {
|
|
5250
|
-
"type": "boolean"
|
|
5251
|
-
},
|
|
5252
5377
|
"artifactId": {
|
|
5253
5378
|
"type": "string"
|
|
5254
5379
|
},
|
|
5255
|
-
"scope": {
|
|
5256
|
-
"anyOf": [
|
|
5257
|
-
{
|
|
5258
|
-
"type": "object",
|
|
5259
|
-
"properties": {
|
|
5260
|
-
"met": {
|
|
5261
|
-
"type": "boolean"
|
|
5262
|
-
},
|
|
5263
|
-
"unmet": {
|
|
5264
|
-
"type": "array",
|
|
5265
|
-
"items": {
|
|
5266
|
-
"type": "string"
|
|
5267
|
-
}
|
|
5268
|
-
},
|
|
5269
|
-
"reported": {
|
|
5270
|
-
"anyOf": [
|
|
5271
|
-
{
|
|
5272
|
-
"type": "array",
|
|
5273
|
-
"items": {
|
|
5274
|
-
"type": "string"
|
|
5275
|
-
}
|
|
5276
|
-
},
|
|
5277
|
-
{
|
|
5278
|
-
"type": "null"
|
|
5279
|
-
}
|
|
5280
|
-
]
|
|
5281
|
-
},
|
|
5282
|
-
"outOfScope": {
|
|
5283
|
-
"anyOf": [
|
|
5284
|
-
{
|
|
5285
|
-
"type": "array",
|
|
5286
|
-
"items": {
|
|
5287
|
-
"type": "object",
|
|
5288
|
-
"properties": {
|
|
5289
|
-
"part": {
|
|
5290
|
-
"type": "string"
|
|
5291
|
-
},
|
|
5292
|
-
"item": {
|
|
5293
|
-
"type": "string"
|
|
5294
|
-
}
|
|
5295
|
-
},
|
|
5296
|
-
"required": [
|
|
5297
|
-
"part",
|
|
5298
|
-
"item"
|
|
5299
|
-
],
|
|
5300
|
-
"additionalProperties": true
|
|
5301
|
-
}
|
|
5302
|
-
},
|
|
5303
|
-
{
|
|
5304
|
-
"type": "null"
|
|
5305
|
-
}
|
|
5306
|
-
]
|
|
5307
|
-
},
|
|
5308
|
-
"criteria": {
|
|
5309
|
-
"anyOf": [
|
|
5310
|
-
{
|
|
5311
|
-
"type": "array",
|
|
5312
|
-
"items": {
|
|
5313
|
-
"type": "object",
|
|
5314
|
-
"properties": {
|
|
5315
|
-
"criterion": {
|
|
5316
|
-
"type": "string"
|
|
5317
|
-
},
|
|
5318
|
-
"status": {
|
|
5319
|
-
"type": "string",
|
|
5320
|
-
"enum": [
|
|
5321
|
-
"met",
|
|
5322
|
-
"open",
|
|
5323
|
-
"out_of_scope",
|
|
5324
|
-
"reported"
|
|
5325
|
-
]
|
|
5326
|
-
},
|
|
5327
|
-
"item": {
|
|
5328
|
-
"type": "string"
|
|
5329
|
-
}
|
|
5330
|
-
},
|
|
5331
|
-
"required": [
|
|
5332
|
-
"criterion",
|
|
5333
|
-
"status"
|
|
5334
|
-
],
|
|
5335
|
-
"additionalProperties": true
|
|
5336
|
-
}
|
|
5337
|
-
},
|
|
5338
|
-
{
|
|
5339
|
-
"type": "null"
|
|
5340
|
-
}
|
|
5341
|
-
]
|
|
5342
|
-
}
|
|
5343
|
-
},
|
|
5344
|
-
"required": [
|
|
5345
|
-
"met",
|
|
5346
|
-
"unmet"
|
|
5347
|
-
],
|
|
5348
|
-
"additionalProperties": true
|
|
5349
|
-
},
|
|
5350
|
-
{
|
|
5351
|
-
"type": "null"
|
|
5352
|
-
}
|
|
5353
|
-
]
|
|
5354
|
-
},
|
|
5355
|
-
"failing": {
|
|
5356
|
-
"anyOf": [
|
|
5357
|
-
{
|
|
5358
|
-
"type": "array",
|
|
5359
|
-
"items": {
|
|
5360
|
-
"type": "string"
|
|
5361
|
-
}
|
|
5362
|
-
},
|
|
5363
|
-
{
|
|
5364
|
-
"type": "null"
|
|
5365
|
-
}
|
|
5366
|
-
]
|
|
5367
|
-
},
|
|
5368
5380
|
"approval": {
|
|
5369
5381
|
"anyOf": [
|
|
5370
5382
|
{
|
|
@@ -5468,16 +5480,17 @@
|
|
|
5468
5480
|
}
|
|
5469
5481
|
},
|
|
5470
5482
|
"required": [
|
|
5471
|
-
"summary",
|
|
5472
5483
|
"findings",
|
|
5484
|
+
"blocking",
|
|
5485
|
+
"summary",
|
|
5473
5486
|
"followUps",
|
|
5474
5487
|
"verdicts",
|
|
5475
|
-
"blocking",
|
|
5476
5488
|
"artifactId"
|
|
5477
5489
|
],
|
|
5478
5490
|
"additionalProperties": true,
|
|
5479
5491
|
"$defs": {}
|
|
5480
5492
|
},
|
|
5493
|
+
"role": "review",
|
|
5481
5494
|
"agents": {
|
|
5482
5495
|
"code-review": "code-reviewer",
|
|
5483
5496
|
"quality": "quality-reviewer"
|
|
@@ -5527,6 +5540,7 @@
|
|
|
5527
5540
|
"id": "shepherd",
|
|
5528
5541
|
"title": "Shepherd",
|
|
5529
5542
|
"version": "1.11.0",
|
|
5543
|
+
"description": "Takes an open ChangeRequest to merge: catches it up, fixes its pipeline, gets it approved and merges it.",
|
|
5530
5544
|
"input": {
|
|
5531
5545
|
"type": "object",
|
|
5532
5546
|
"properties": {
|
|
@@ -6355,6 +6369,7 @@
|
|
|
6355
6369
|
"id": "sweep",
|
|
6356
6370
|
"title": "Sweep",
|
|
6357
6371
|
"version": "1.2.0",
|
|
6372
|
+
"description": "Lands the dependency bot's safe updates together in one ChangeRequest and explains the rest.",
|
|
6358
6373
|
"input": {
|
|
6359
6374
|
"type": "object",
|
|
6360
6375
|
"properties": {
|
|
@@ -6573,6 +6588,7 @@
|
|
|
6573
6588
|
"id": "tidy",
|
|
6574
6589
|
"title": "Tidy",
|
|
6575
6590
|
"version": "1.1.0",
|
|
6591
|
+
"description": "Finds the code-quality improvement worth most and opens it as one reviewable ChangeRequest.",
|
|
6576
6592
|
"input": {
|
|
6577
6593
|
"type": "object",
|
|
6578
6594
|
"properties": {
|
|
@@ -6884,7 +6900,7 @@
|
|
|
6884
6900
|
"carried": [
|
|
6885
6901
|
{
|
|
6886
6902
|
"name": "@kitman-sh/software-engineering",
|
|
6887
|
-
"version": "0.14.
|
|
6903
|
+
"version": "0.14.9",
|
|
6888
6904
|
"setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
|
|
6889
6905
|
"loops": [
|
|
6890
6906
|
"build",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.9",
|
|
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": "SEE LICENSE IN LICENSE.md",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"LICENSE.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@kitman-sh/sdk": "0.14.
|
|
21
|
+
"@kitman-sh/sdk": "0.14.9",
|
|
22
22
|
"effect": "^4.1.2"
|
|
23
23
|
},
|
|
24
24
|
"kitman": {
|
|
25
25
|
"bundle": "dist/bundle.js",
|
|
26
|
-
"digest": "
|
|
26
|
+
"digest": "3c0e607dc7495c66c57cd58502e76f41da06bbca13d367b590da39d25d456229",
|
|
27
27
|
"protocolVersion": 5,
|
|
28
28
|
"declarations": "dist/declarations.json",
|
|
29
29
|
"setup": {
|
package/src/build.ts
CHANGED
|
@@ -566,6 +566,7 @@ const build = defineLoop({
|
|
|
566
566
|
id: 'build',
|
|
567
567
|
version: '2.13.0',
|
|
568
568
|
title: 'Build',
|
|
569
|
+
description: 'Implements a Task or words, reviews and fixes the change, and opens a ChangeRequest with its evidence.',
|
|
569
570
|
input: BuildInput,
|
|
570
571
|
output: BuildOutput,
|
|
571
572
|
agents: { implementer: 'implementer', 'planned-implementer': 'planned-implementer' },
|
package/src/errand.ts
CHANGED
|
@@ -67,6 +67,7 @@ export default defineLoop({
|
|
|
67
67
|
id: 'errand',
|
|
68
68
|
version: '1.0.0',
|
|
69
69
|
title: 'Errand',
|
|
70
|
+
description: 'One agent does a small change with no review rally, then opens it as an unreviewed ChangeRequest.',
|
|
70
71
|
input: Input,
|
|
71
72
|
output: Output,
|
|
72
73
|
agents: { implementer: 'implementer' },
|
package/src/file-tasks.ts
CHANGED
|
@@ -26,6 +26,7 @@ export default defineLoop({
|
|
|
26
26
|
id: 'file-tasks',
|
|
27
27
|
version: '2.1.0',
|
|
28
28
|
title: 'File Tasks',
|
|
29
|
+
description: 'Files reviewed tickets as Tasks, with their blockers as dependencies.',
|
|
29
30
|
input: FileTasksInput,
|
|
30
31
|
output: Output,
|
|
31
32
|
agents: { 'plan-reviewer': 'plan-reviewer' },
|
package/src/firewatch.ts
CHANGED
|
@@ -135,6 +135,7 @@ export default defineLoop({
|
|
|
135
135
|
id: 'firewatch',
|
|
136
136
|
version: '1.0.0',
|
|
137
137
|
title: 'Firewatch',
|
|
138
|
+
description: 'Investigates an alert and writes its cited cause on a Bug Task, offering a fix.',
|
|
138
139
|
input: Input,
|
|
139
140
|
output: Output,
|
|
140
141
|
outcome: 'investigation',
|
package/src/hillclimb.ts
CHANGED
|
@@ -188,6 +188,7 @@ export default defineLoop({
|
|
|
188
188
|
id: 'hillclimb',
|
|
189
189
|
version: '1.6.0',
|
|
190
190
|
title: 'Hillclimb',
|
|
191
|
+
description: 'Improves a measured number one verified step at a time, keeping only the steps that prove a gain.',
|
|
191
192
|
outcome: 'performance',
|
|
192
193
|
input: Input,
|
|
193
194
|
output: Output,
|
package/src/hindsight.ts
CHANGED
|
@@ -244,6 +244,7 @@ export default defineLoop({
|
|
|
244
244
|
id: 'hindsight',
|
|
245
245
|
version: '1.2.0',
|
|
246
246
|
title: 'Hindsight',
|
|
247
|
+
description: "Reads the last week's settled Runs and proposes Memory and Tasks for what kept going wrong.",
|
|
247
248
|
input: Input,
|
|
248
249
|
output: Output,
|
|
249
250
|
outcome: 'investigation',
|
package/src/land-epic.ts
CHANGED
|
@@ -58,6 +58,7 @@ const landEpic = defineLoop({
|
|
|
58
58
|
id: 'land-epic',
|
|
59
59
|
version: '1.0.0',
|
|
60
60
|
title: 'Land epic',
|
|
61
|
+
description: "Keeps an epic's branch up to date and, once every sub-task is done, merges it to the default branch.",
|
|
61
62
|
input: LandEpicInput,
|
|
62
63
|
output: LandEpicOutput,
|
|
63
64
|
agents: { implementer: 'implementer' },
|
package/src/plan.ts
CHANGED
|
@@ -680,6 +680,7 @@ export default defineLoop({
|
|
|
680
680
|
id: 'plan',
|
|
681
681
|
version: '3.1.0',
|
|
682
682
|
title: 'Plan',
|
|
683
|
+
description: 'Plans a goal into reviewed tickets and a spec, then builds them or files them as Tasks.',
|
|
683
684
|
input: Input,
|
|
684
685
|
output: Output,
|
|
685
686
|
agents: { planner: 'planner', reviewer: 'reviewer', 'plan-reviewer': 'plan-reviewer' },
|
package/src/project-update.ts
CHANGED
|
@@ -59,6 +59,7 @@ export default defineLoop({
|
|
|
59
59
|
id: 'project-update',
|
|
60
60
|
version: '2.0.1',
|
|
61
61
|
title: 'Project update',
|
|
62
|
+
description: "Drafts a Project's next Update from its recent Runs and Task changes, for a person to post.",
|
|
62
63
|
input: Input,
|
|
63
64
|
output: Output,
|
|
64
65
|
agents: { writer: 'writer' },
|
package/src/release.ts
CHANGED
|
@@ -355,6 +355,7 @@ export default defineLoop({
|
|
|
355
355
|
id: 'release',
|
|
356
356
|
version: '2.4.0',
|
|
357
357
|
title: 'Release',
|
|
358
|
+
description: 'Tags and publishes a release of what merged, and follows its deploy.',
|
|
358
359
|
input: Input,
|
|
359
360
|
output: Output,
|
|
360
361
|
agents: { releaser: 'releaser' },
|
package/src/research.ts
CHANGED
|
@@ -156,6 +156,7 @@ export default defineLoop({
|
|
|
156
156
|
id: 'research',
|
|
157
157
|
version: '2.1.0',
|
|
158
158
|
title: 'Research',
|
|
159
|
+
description: 'Answers a question from primary sources, with a reviewed report and suggested next steps.',
|
|
159
160
|
input: Input,
|
|
160
161
|
output: Output,
|
|
161
162
|
outcome: 'investigation',
|
package/src/review.ts
CHANGED
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
type Severity,
|
|
19
19
|
resolveRevisions,
|
|
20
20
|
ResolvedDeliveryTarget,
|
|
21
|
+
ReviewRoleInput,
|
|
22
|
+
ReviewRoleOutput,
|
|
21
23
|
ScopeJudgement,
|
|
22
24
|
settleRound
|
|
23
25
|
} from '@kitman-sh/sdk/loop'
|
|
@@ -54,6 +56,7 @@ const scopeSeat = 'code-review'
|
|
|
54
56
|
const choices = ['Post to the ChangeRequest', 'Fix here', 'Build from it', 'Done'] as const
|
|
55
57
|
|
|
56
58
|
const Input = Schema.Struct({
|
|
59
|
+
...ReviewRoleInput.fields,
|
|
57
60
|
/** Reviews this ChangeRequest, then asks what next: posting, fixing and building are each the user's call. */
|
|
58
61
|
changeRequestId: Schema.optional(Schema.String),
|
|
59
62
|
/** With `base` and `head`, the ChangeRequest the change delivers: Kitman gives its Task's Out of scope list only if that ChangeRequest delivers the Task. */
|
|
@@ -347,6 +350,7 @@ const ApprovedFinding = Schema.Struct({
|
|
|
347
350
|
type ApprovedFinding = typeof ApprovedFinding.Type
|
|
348
351
|
|
|
349
352
|
const Output = Schema.Struct({
|
|
353
|
+
...ReviewRoleOutput.fields,
|
|
350
354
|
/** What the review leads with: each reviewer's one sentence. */
|
|
351
355
|
summary: Schema.String,
|
|
352
356
|
findings: Schema.Array(MergedFinding),
|
|
@@ -1074,8 +1078,10 @@ const fixBrief = (changeRequestId: string, findings: readonly MergedFinding[], u
|
|
|
1074
1078
|
*/
|
|
1075
1079
|
export default defineLoop({
|
|
1076
1080
|
id: 'review',
|
|
1077
|
-
version: '3.
|
|
1081
|
+
version: '3.12.0',
|
|
1078
1082
|
title: 'Review',
|
|
1083
|
+
description: 'Reviews a ChangeRequest or revision range with two reviewers and writes one review.',
|
|
1084
|
+
role: 'review',
|
|
1079
1085
|
input: Input,
|
|
1080
1086
|
output: Output,
|
|
1081
1087
|
agents: { 'code-review': 'code-reviewer', quality: 'quality-reviewer' },
|
package/src/shepherd.ts
CHANGED
|
@@ -252,6 +252,8 @@ export default defineLoop({
|
|
|
252
252
|
id: 'shepherd',
|
|
253
253
|
version: '1.11.0',
|
|
254
254
|
title: 'Shepherd',
|
|
255
|
+
description:
|
|
256
|
+
'Takes an open ChangeRequest to merge: catches it up, fixes its pipeline, gets it approved and merges it.',
|
|
255
257
|
input: Input,
|
|
256
258
|
output: Output,
|
|
257
259
|
agents: { implementer: 'implementer' },
|
package/src/sweep.ts
CHANGED
|
@@ -188,6 +188,7 @@ export default defineLoop({
|
|
|
188
188
|
id: 'sweep',
|
|
189
189
|
version: '1.2.0',
|
|
190
190
|
title: 'Sweep',
|
|
191
|
+
description: "Lands the dependency bot's safe updates together in one ChangeRequest and explains the rest.",
|
|
191
192
|
input: Input,
|
|
192
193
|
output: Output,
|
|
193
194
|
agents: { assessor: 'investigator', implementer: 'implementer' },
|
package/src/tidy.ts
CHANGED
|
@@ -128,6 +128,7 @@ export default defineLoop({
|
|
|
128
128
|
id: 'tidy',
|
|
129
129
|
version: '1.1.0',
|
|
130
130
|
title: 'Tidy',
|
|
131
|
+
description: 'Finds the code-quality improvement worth most and opens it as one reviewable ChangeRequest.',
|
|
131
132
|
input: Input,
|
|
132
133
|
output: Output,
|
|
133
134
|
agents: { implementer: 'implementer', surveyor: 'surveyor' },
|