@kitman-sh/software-engineering 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +6 -2
- package/dist/declarations.json +31 -1
- package/package.json +3 -3
- package/src/build.ts +5 -3
- package/src/release.ts +1 -1
- package/src/shepherd.ts +8 -0
package/dist/bundle.js
CHANGED
|
@@ -20895,6 +20895,7 @@ var Continuing = Struct({
|
|
|
20895
20895
|
url: String5,
|
|
20896
20896
|
branch: String5,
|
|
20897
20897
|
targetBranch: String5,
|
|
20898
|
+
defaultBranch: optional2(String5),
|
|
20898
20899
|
revision: optional2(String5),
|
|
20899
20900
|
lastRunId: optional2(String5),
|
|
20900
20901
|
lastRunStatus: optional2(String5),
|
|
@@ -21577,7 +21578,7 @@ var release_default = defineLoop({
|
|
|
21577
21578
|
if (input.releaseScope !== undefined && input.tag === undefined && input.version === undefined)
|
|
21578
21579
|
return {
|
|
21579
21580
|
status: "no_version",
|
|
21580
|
-
reason: "Kitman cut no version for this Milestone or Project: its Project
|
|
21581
|
+
reason: "Kitman cut no version for this Milestone or Project: its Project\u2019s name does not start with a full semver version, such as 0.11.0. Release it with a tag.",
|
|
21581
21582
|
shipped: shippedScope(input.releaseScope)
|
|
21582
21583
|
};
|
|
21583
21584
|
const changeRequestId = input.changeRequestId;
|
|
@@ -22829,6 +22830,9 @@ Merge now?`,
|
|
|
22829
22830
|
epicLanding: landing
|
|
22830
22831
|
};
|
|
22831
22832
|
}
|
|
22833
|
+
const defaultBranch = input.continuing?.defaultBranch;
|
|
22834
|
+
if (defaultBranch !== undefined && target !== defaultBranch)
|
|
22835
|
+
return done("merged", `Merged into ${target} at ${merged.revision}, not into ${defaultBranch}: nothing is released until it reaches ${defaultBranch}`);
|
|
22832
22836
|
if (releaseWhen !== undefined && releaseWhen.trigger !== "merge")
|
|
22833
22837
|
return done("merged", `Merged at ${merged.revision}; Release runs when its ${releaseWhen.trigger === "milestone" ? "Milestone" : "Project"} is done, as ${layerWords2[releaseWhen.layer]} says`);
|
|
22834
22838
|
const ship = yield* ask("ship", {
|
|
@@ -31042,4 +31046,4 @@ var runKit = (config, identity, packages) => {
|
|
|
31042
31046
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
31043
31047
|
};
|
|
31044
31048
|
// .kitman-build-entry.ts
|
|
31045
|
-
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.11.
|
|
31049
|
+
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.11.3" }, []);
|
package/dist/declarations.json
CHANGED
|
@@ -108,6 +108,16 @@
|
|
|
108
108
|
"targetBranch": {
|
|
109
109
|
"type": "string"
|
|
110
110
|
},
|
|
111
|
+
"defaultBranch": {
|
|
112
|
+
"anyOf": [
|
|
113
|
+
{
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "null"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
111
121
|
"revision": {
|
|
112
122
|
"anyOf": [
|
|
113
123
|
{
|
|
@@ -2838,6 +2848,16 @@
|
|
|
2838
2848
|
"targetBranch": {
|
|
2839
2849
|
"type": "string"
|
|
2840
2850
|
},
|
|
2851
|
+
"defaultBranch": {
|
|
2852
|
+
"anyOf": [
|
|
2853
|
+
{
|
|
2854
|
+
"type": "string"
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
"type": "null"
|
|
2858
|
+
}
|
|
2859
|
+
]
|
|
2860
|
+
},
|
|
2841
2861
|
"revision": {
|
|
2842
2862
|
"anyOf": [
|
|
2843
2863
|
{
|
|
@@ -4065,6 +4085,16 @@
|
|
|
4065
4085
|
"targetBranch": {
|
|
4066
4086
|
"type": "string"
|
|
4067
4087
|
},
|
|
4088
|
+
"defaultBranch": {
|
|
4089
|
+
"anyOf": [
|
|
4090
|
+
{
|
|
4091
|
+
"type": "string"
|
|
4092
|
+
},
|
|
4093
|
+
{
|
|
4094
|
+
"type": "null"
|
|
4095
|
+
}
|
|
4096
|
+
]
|
|
4097
|
+
},
|
|
4068
4098
|
"revision": {
|
|
4069
4099
|
"anyOf": [
|
|
4070
4100
|
{
|
|
@@ -5058,7 +5088,7 @@
|
|
|
5058
5088
|
"carried": [
|
|
5059
5089
|
{
|
|
5060
5090
|
"name": "@kitman-sh/software-engineering",
|
|
5061
|
-
"version": "0.11.
|
|
5091
|
+
"version": "0.11.3",
|
|
5062
5092
|
"setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
|
|
5063
5093
|
"loops": [
|
|
5064
5094
|
"build",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
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.11.
|
|
20
|
+
"@kitman-sh/sdk": "0.11.3",
|
|
21
21
|
"effect": "^4.1.2"
|
|
22
22
|
},
|
|
23
23
|
"kitman": {
|
|
24
24
|
"bundle": "dist/bundle.js",
|
|
25
|
-
"digest": "
|
|
25
|
+
"digest": "3462642351c70c3159eb3a9413014d15224da18df52217b040c85014cc28f019",
|
|
26
26
|
"protocolVersion": 5,
|
|
27
27
|
"declarations": "dist/declarations.json",
|
|
28
28
|
"setup": {
|
package/src/build.ts
CHANGED
|
@@ -55,7 +55,10 @@ export const BuildInput = Schema.Struct({
|
|
|
55
55
|
words: Schema.optional(Schema.String),
|
|
56
56
|
taskId: Schema.optional(Schema.String),
|
|
57
57
|
repoBindingId: Schema.optional(Schema.String),
|
|
58
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* The base branch; the repository's default branch when left out. Kitman reads an earlier Run's branch as where the
|
|
60
|
+
* Build starts and puts the branch it merges into here instead.
|
|
61
|
+
*/
|
|
59
62
|
branch: Schema.optional(Schema.String),
|
|
60
63
|
/** Where to start; the head of `branch` when left out. */
|
|
61
64
|
revision: Schema.optional(Schema.String),
|
|
@@ -445,8 +448,7 @@ const build = defineLoop({
|
|
|
445
448
|
|
|
446
449
|
const task = input.words === undefined ? 'the Task your brief describes.' : `this: ${input.words}`
|
|
447
450
|
const outcome = input.outcome
|
|
448
|
-
// A retry
|
|
449
|
-
// the ChangeRequest it continues says what it merges into.
|
|
451
|
+
// A retry given an earlier Run's branch starts there; Kitman leaves `branch` as what it merges into.
|
|
450
452
|
const epic = epicOf(input)
|
|
451
453
|
const target = input.continuing?.targetBranch ?? input.branch ?? epic?.branch
|
|
452
454
|
|
package/src/release.ts
CHANGED
|
@@ -410,7 +410,7 @@ export default defineLoop({
|
|
|
410
410
|
return {
|
|
411
411
|
status: 'no_version',
|
|
412
412
|
reason:
|
|
413
|
-
'Kitman cut no version for this Milestone or Project: its Project
|
|
413
|
+
'Kitman cut no version for this Milestone or Project: its Project’s name does not start with a full semver version, such as 0.11.0. Release it with a tag.',
|
|
414
414
|
shipped: shippedScope(input.releaseScope)
|
|
415
415
|
} satisfies Output
|
|
416
416
|
|
package/src/shepherd.ts
CHANGED
|
@@ -1477,6 +1477,14 @@ export default defineLoop({
|
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
+
const defaultBranch = input.continuing?.defaultBranch
|
|
1481
|
+
|
|
1482
|
+
if (defaultBranch !== undefined && target !== defaultBranch)
|
|
1483
|
+
return done(
|
|
1484
|
+
'merged',
|
|
1485
|
+
`Merged into ${target} at ${merged.revision}, not into ${defaultBranch}: nothing is released until it reaches ${defaultBranch}`
|
|
1486
|
+
)
|
|
1487
|
+
|
|
1480
1488
|
// A Milestone's or Project's completion starts its Release; this merge does not, unless the Run says so.
|
|
1481
1489
|
if (releaseWhen !== undefined && releaseWhen.trigger !== 'merge')
|
|
1482
1490
|
return done(
|