ticket-runner 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +4 -1
- package/README.md +4 -1
- package/docs/templates/operator-skill.md +1 -1
- package/package.json +9 -2
- package/src/cli.ts +0 -1
- package/src/prompts.ts +2 -3
- package/src/remove.ts +3 -8
- package/src/staleness.ts +9 -2
package/README.ko.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# ticket-runner
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/ticket-runner)
|
|
4
|
+
[](https://github.com/jjongs2/ticket-runner/blob/main/LICENSE)
|
|
5
|
+
|
|
3
6
|
[English](https://github.com/jjongs2/ticket-runner/blob/main/README.md)
|
|
4
7
|
|
|
5
8
|
`ticket-runner`는 [`mattpocock-skills`](https://github.com/mattpocock/skills) 체인에서 사람이 지켜보지
|
|
@@ -32,7 +35,7 @@ rate limit에 걸려 멈춘 세션은 아무것도 잃지 않습니다. 이슈
|
|
|
32
35
|
설정해 두었고, Ticket 하나는 세션 하나로 끝낼 만큼 작습니다.
|
|
33
36
|
- pull request에서 도는 CI 워크플로가 있고, 파이프라인이 직접 돌릴 테스트나 typecheck 명령이 있습니다.
|
|
34
37
|
- 돌리는 머신에 Node 22 이상, `git`, 인증된 [`gh`](https://cli.github.com/), 그리고
|
|
35
|
-
[`mattpocock-skills`](https://github.com/mattpocock/skills) 플러그인 1.2.3 버전을 설치한 `claude`가
|
|
38
|
+
[`mattpocock-skills`](https://github.com/mattpocock/skills) 플러그인 1.2.3 이상 버전을 설치한 `claude`가
|
|
36
39
|
있습니다.
|
|
37
40
|
|
|
38
41
|
파이프라인은 묻지 않고 base branch에 merge합니다. 그걸 원하는 저장소에 쓰세요.
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# ticket-runner
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/ticket-runner)
|
|
4
|
+
[](https://github.com/jjongs2/ticket-runner/blob/main/LICENSE)
|
|
5
|
+
|
|
3
6
|
[한국어](https://github.com/jjongs2/ticket-runner/blob/main/README.ko.md)
|
|
4
7
|
|
|
5
8
|
`ticket-runner` runs the unattended half of the
|
|
@@ -34,7 +37,7 @@ It fits a repository where:
|
|
|
34
37
|
run itself
|
|
35
38
|
- the machine running it has Node 22 or newer, `git`, an authenticated
|
|
36
39
|
[`gh`](https://cli.github.com/), and `claude` with the
|
|
37
|
-
[`mattpocock-skills`](https://github.com/mattpocock/skills) plugin, version 1.2.3
|
|
40
|
+
[`mattpocock-skills`](https://github.com/mattpocock/skills) plugin, version 1.2.3 or later
|
|
38
41
|
|
|
39
42
|
It merges to your base branch without asking. It is for repositories where that is what you want.
|
|
40
43
|
|
|
@@ -16,7 +16,7 @@ Install only what this Host does not already have. What the cloud environment's
|
|
|
16
16
|
1. The pipeline. If `ticket-runner --version` answers, use that copy. Otherwise read the Version on the first line of `docs/agents/pipeline-conventions.md`, the `<number>` in `<!-- ticket-runner:version <number> -->`, and install that Version:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install -g
|
|
19
|
+
npm install -g ticket-runner@<number>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
If the first line carries no Version, install nothing and tell the human to run `ticket-runner init` on this repository from a workstation.
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ticket-runner",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "Drives the mattpocock-skills chain
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Drives the mattpocock-skills chain: humans plan, the pipeline executes.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude-code",
|
|
7
|
+
"cli",
|
|
8
|
+
"github-issues",
|
|
9
|
+
"mattpocock-skills"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://jjongs2.github.io/ticket-runner/",
|
|
5
12
|
"license": "MIT",
|
|
6
13
|
"repository": {
|
|
7
14
|
"type": "git",
|
package/src/cli.ts
CHANGED
package/src/prompts.ts
CHANGED
|
@@ -163,7 +163,7 @@ ${titleGuidance(base)}`;
|
|
|
163
163
|
|
|
164
164
|
const conflictInstructions = (base: string) => `You are the conflict Stage of an unattended pipeline. The Ticket below is already implemented on the branch you are on, and rebasing it onto \`${base}\` stopped on a conflict. That rebase is still in progress in this worktree, and finishing it is the whole of your job.
|
|
165
165
|
|
|
166
|
-
-
|
|
166
|
+
- Resolve every hunk and carry the rebase through to the end; never \`git rebase --abort\`, and never rewind the branch to escape the conflict.
|
|
167
167
|
- Where the two sides are compatible, keep both intents. Where they are not, keep the behaviour this Ticket's Acceptance Criteria ask for, and keep \`${base}\`'s everywhere the Ticket is silent.
|
|
168
168
|
- Resolve, do not redesign. Implement nothing new, and touch no file the conflict did not.
|
|
169
169
|
- Leave no conflict marker behind in any file, committed or not.
|
|
@@ -221,7 +221,7 @@ export function verifyPrompt(
|
|
|
221
221
|
]);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/**
|
|
224
|
+
/** A fresh session with no plugin skill, given the conflict git reported. */
|
|
225
225
|
export function conflictPrompt(
|
|
226
226
|
issueUrl: string,
|
|
227
227
|
conflict: string,
|
|
@@ -230,7 +230,6 @@ export function conflictPrompt(
|
|
|
230
230
|
selfHosted: boolean,
|
|
231
231
|
): string {
|
|
232
232
|
return sections([
|
|
233
|
-
"/mattpocock-skills:resolving-merge-conflicts",
|
|
234
233
|
`Ticket: ${issueUrl}`,
|
|
235
234
|
conflictInstructions(base),
|
|
236
235
|
outputSection("## Where the rebase stopped", conflict),
|
package/src/remove.ts
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
} from "./readiness.js";
|
|
23
23
|
import { STATE_BRANCH } from "./resume.js";
|
|
24
24
|
import { nestedRunRefusal } from "./stage-guard.js";
|
|
25
|
+
import { UPGRADE_COMMAND } from "./staleness.js";
|
|
25
26
|
import { describeHolder } from "./stop.js";
|
|
26
27
|
|
|
27
28
|
/**
|
|
@@ -66,8 +67,6 @@ export interface RemoveOptions {
|
|
|
66
67
|
repoRoot: string;
|
|
67
68
|
/** The Version doing the removing, which the report's first line names (ADR-0007). */
|
|
68
69
|
version: string;
|
|
69
|
-
/** The pipeline's own repository, as `owner/name`, which the upgrade is named from. */
|
|
70
|
-
repository?: string | undefined;
|
|
71
70
|
/** Read before anything is removed, because it names the in-progress label. */
|
|
72
71
|
config: Config;
|
|
73
72
|
tracker: Tracker;
|
|
@@ -151,14 +150,10 @@ export async function removeTarget(options: RemoveOptions): Promise<number> {
|
|
|
151
150
|
// emptied as done.
|
|
152
151
|
const newer = newerSetUp(repoRoot, options.version);
|
|
153
152
|
if (newer !== undefined) {
|
|
154
|
-
const upgrade =
|
|
155
|
-
options.repository === undefined
|
|
156
|
-
? "Upgrade `ticket-runner`"
|
|
157
|
-
: `Upgrade with \`npm install -g "github:${options.repository}#semver:*"\``;
|
|
158
153
|
return refuse(
|
|
159
154
|
`Refusing to remove: ${newer.mark} set this Target up and this is ${newer.own}, so it may` +
|
|
160
|
-
` have left things this Version does not know to remove.
|
|
161
|
-
" `ticket-runner remove` again.",
|
|
155
|
+
` have left things this Version does not know to remove. Upgrade with \`${UPGRADE_COMMAND}\`,` +
|
|
156
|
+
" then run `ticket-runner remove` again.",
|
|
162
157
|
);
|
|
163
158
|
}
|
|
164
159
|
|
package/src/staleness.ts
CHANGED
|
@@ -21,6 +21,12 @@ import type { Tracker } from "./ports/tracker.js";
|
|
|
21
21
|
import { readTargetFile } from "./readiness.js";
|
|
22
22
|
import { isHigher, tagNumber, versionNumber } from "./version-number.js";
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* How any copy is upgraded, whatever repository it asks about: every Version
|
|
26
|
+
* is on npm before it has a GitHub Release (ADR-0007).
|
|
27
|
+
*/
|
|
28
|
+
export const UPGRADE_COMMAND = "npm install -g ticket-runner";
|
|
29
|
+
|
|
24
30
|
export interface StalenessQuestion {
|
|
25
31
|
tracker: Tracker;
|
|
26
32
|
/** The Version this copy is, as the CLI resolved it once and handed it down. */
|
|
@@ -39,7 +45,8 @@ export interface StalenessQuestion {
|
|
|
39
45
|
*
|
|
40
46
|
* What has been published as a GitHub Release is the question rather than the
|
|
41
47
|
* highest tag, because a tag a workflow has not finished publishing is not a
|
|
42
|
-
* Version anybody can install yet.
|
|
48
|
+
* Version anybody can install yet. The tag workflow makes the GitHub Release
|
|
49
|
+
* only once npm has the Version, so the answer names one the upgrade finds.
|
|
43
50
|
*/
|
|
44
51
|
export async function newerVersionLine({
|
|
45
52
|
tracker,
|
|
@@ -53,7 +60,7 @@ export async function newerVersionLine({
|
|
|
53
60
|
const published = latest === undefined ? undefined : tagNumber(latest);
|
|
54
61
|
if (published === undefined || !isHigher(published, own)) return undefined;
|
|
55
62
|
|
|
56
|
-
return `A newer Version is out: ${published}, and this is ${own} — upgrade with
|
|
63
|
+
return `A newer Version is out: ${published}, and this is ${own} — upgrade with \`${UPGRADE_COMMAND}\`.`;
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
/**
|