pi-dev-flow 0.101.2 → 0.101.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/CHANGELOG.md +7 -0
- package/docs/jira.md +1 -1
- package/package.json +1 -1
- package/src/jira/sync.ts +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.101.3] - 2026-12-04
|
|
8
|
+
|
|
9
|
+
**Moving a Jira issue on approves even when the agent asked in its own words.**
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **Moving a Jira issue on approves even when the agent asked in its own words.** A status move answered a checkpoint only when the agent had formally asked it, for example Approve? from `flow approve`. When the agent asked its plan questions in plain chat and you moved the issue to the implement status, the move was shown as information only and nothing happened. Now, when no question is formally pending, a move into the next stage's status answers the checkpoint the flow's current stage ends on: Approve? at plan, Verified? at implement, Release? at pre-release, Finish? at release. The agent then runs the gate and asks in chat only for what it still needs, such as the release call.
|
|
13
|
+
|
|
7
14
|
## [0.101.2] - 2026-12-04
|
|
8
15
|
|
|
9
16
|
**Your Jira comments count as answers when dev-flow posts as a separate account.**
|
package/docs/jira.md
CHANGED
|
@@ -47,7 +47,7 @@ status.Story.done = Done
|
|
|
47
47
|
- **The approved plan always reaches the issue.** When the plan is approved, dev-flow posts it to the issue, with its PDF attached unless that version is already there. This covers approvals that never passed through a mirrored question: you approved in chat, or the issue was created or linked at the moment you approved. If the identical plan was already posted with the Approve? question, the approval comment names that PDF. A flow linked to an issue after approval gets its plan posted at link time.
|
|
48
48
|
- **Answering in Jira:**
|
|
49
49
|
- **Comment**, for example "Approved", "Verified", or a change request. Only comments from the `answerers` accounts count as your answer: by default the token's owner, which is you when the token is your own. Other people's comments are shown in the session as information and never approve anything.
|
|
50
|
-
- **Move the issue** to the status mapped to the next stage. A move to `implement` answers Approve?, `pre-release` answers Verified?, `release` answers Release?, and `done` answers Finish?. Any other move is shown as information.
|
|
50
|
+
- **Move the issue** to the status mapped to the next stage. A move to `implement` answers Approve?, `pre-release` answers Verified?, `release` answers Release?, and `done` answers Finish?. This holds even when the agent asked in its own words and has not formally asked yet: moving the issue into the next stage's status answers the checkpoint the flow's current stage ends on. If a different question is pending, only that question is answered. Any other move is shown as information.
|
|
51
51
|
|
|
52
52
|
Your answer arrives in the session as your own message, so the gates treat it exactly like a chat reply.
|
|
53
53
|
- **dev-flow moves the issue too.** When a stage changes (approve, verify, release, finish), it moves the issue to the mapped status if the workflow allows that transition. If it can't, it says so and the flow carries on.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-dev-flow",
|
|
3
|
-
"version": "0.101.
|
|
3
|
+
"version": "0.101.3",
|
|
4
4
|
"description": "Enforced feature workflow for Pi: plan → implement → pre-release → release, gated checkpoints, self-improvement reflections, one git worktree per feature, changelog + publish as part of the release",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
package/src/jira/sync.ts
CHANGED
|
@@ -21,6 +21,9 @@ const MOVE_ANSWERS: Record<string, { stage: JiraStage; word: string }> = {
|
|
|
21
21
|
"Finish?": { stage: "done", word: "Finish" },
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
/** The checkpoint each stage ends on: a move into the stage after it answers it, asked formally or not. */
|
|
25
|
+
const STAGE_ASK: Partial<Record<JiraStage, string>> = { plan: "Approve?", implement: "Verified?", "pre-release": "Release?", release: "Finish?" };
|
|
26
|
+
|
|
24
27
|
/** The status a move to which answers `ask`, for the comment's hint; undefined when none is mapped. */
|
|
25
28
|
export function answeringStatus(cfg: JiraConfig, link: JiraLink, ask: string | undefined): string | undefined {
|
|
26
29
|
const a = ask ? MOVE_ANSWERS[ask] : undefined;
|
|
@@ -91,8 +94,11 @@ export function classifyActivity(o: {
|
|
|
91
94
|
}
|
|
92
95
|
if (o.status && link.lastStatus && o.status.toLowerCase() !== link.lastStatus.toLowerCase()) {
|
|
93
96
|
const to = stageOfStatus(cfg, link.type, o.status);
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
// the question the move answers: the pending one, else — the agent asked in its own words and never ran
|
|
98
|
+
// the gate — the checkpoint the flow's stage ends on. Moving the issue on is the operator saying so.
|
|
99
|
+
const ask = state.pendingAsk ?? STAGE_ASK[state.stage as JiraStage];
|
|
100
|
+
const ans = ask ? MOVE_ANSWERS[ask] : undefined;
|
|
101
|
+
if (ans && to === ans.stage) relays.push({ kind: "answer", text: `[Jira ${link.key} moved to "${o.status}" (mapped to ${to}) — the operator's answer to ${ask}${state.pendingAsk ? "" : " (not asked formally yet: run the gate, and ask in chat only for what it still needs, such as the release call)"}] ${ans.word}` });
|
|
96
102
|
else relays.push({ kind: "info", text: `[Jira ${link.key} moved from "${link.lastStatus}" to "${o.status}"${to ? ` (mapped to ${to})` : ""}; the flow is at ${state.stage}${state.pendingAsk ? `, waiting on ${state.pendingAsk}` : ""} — information only]` });
|
|
97
103
|
}
|
|
98
104
|
return { relays, seenUntil: seen, seenCommentId: seenId, lastStatus: o.status || link.lastStatus || "" };
|