pi-do-always 0.13.0 → 0.15.0

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.
@@ -80,7 +80,7 @@
80
80
  "category": "Ops",
81
81
  "description": "Prepare a release (version, changelog, tag)",
82
82
  "when": "git",
83
- "prompt": "Prepare a release for this project (branch {{branch}}): check `git log` since the last tag, update the version in package.json (or the equivalent location), add a changelog entry summarizing the changes, and create a git tag if git present. Do not push."
83
+ "prompt": "Prepare a release for this project (branch {{branch}}): check `git log` since the last tag, then bump the version in package.json (or the equivalent location) to the next version, and add a changelog entry under that exact version summarizing the changes. The changelog entry must use the same version number now set in package.json — never add a changelog section for a version that package.json does not yet contain, and never leave an 'Unreleased' or placeholder version heading. Create a git tag if git present. Do not push."
84
84
  },
85
85
  {
86
86
  "name": "Commit",
@@ -1353,11 +1353,11 @@ export default function doAlwaysExtension(pi: ExtensionAPI) {
1353
1353
  * Send a prompt and resolve when the run it starts has fully settled,
1354
1354
  * reporting the run's outcome (see armWaiter).
1355
1355
  */
1356
- function sendAndWait(prompt: string, graceMs = 10_000, stepIndex = 0): Promise<ChainStepOutcome> {
1357
- const done = armWaiter(graceMs, stepIndex);
1358
- pi.sendUserMessage(prompt);
1359
- return done;
1360
- }
1356
+ function sendAndWait(prompt: string, graceMs = 10_000, stepIndex = 0): Promise<ChainStepOutcome> {
1357
+ const done = armWaiter(graceMs, stepIndex);
1358
+ pi.sendUserMessage(prompt, { deliverAs: 'followUp' });
1359
+ return done;
1360
+ }
1361
1361
 
1362
1362
  /** Filter tasks by visibility (`hidden` flag + `when` condition) and refresh the completion cache. */
1363
1363
  function refreshVisible(cwd: string, context: TaskContext): DoAlwaysTask[] {
@@ -1540,7 +1540,7 @@ export default function doAlwaysExtension(pi: ExtensionAPI) {
1540
1540
  pendingSummaryTask = null;
1541
1541
  lastCtx?.ui.notify(`do-always: "${name}" failed to start (check model/API key)`, "error");
1542
1542
  }, 10_000);
1543
- pi.sendUserMessage(prompt);
1543
+ pi.sendUserMessage(prompt, { deliverAs: 'followUp' });
1544
1544
  ctx.ui.notify(
1545
1545
  `do-always: ${selected.length} commit${selected.length !== 1 ? "s" : ""} → ${chosen.name}`,
1546
1546
  "info",
@@ -1571,7 +1571,7 @@ export default function doAlwaysExtension(pi: ExtensionAPI) {
1571
1571
  pendingSummaryTask = null;
1572
1572
  lastCtx?.ui.notify(`do-always: "${name}" failed to start (check model/API key)`, "error");
1573
1573
  }, 10_000);
1574
- pi.sendUserMessage(prompt);
1574
+ pi.sendUserMessage(prompt, { deliverAs: 'followUp' });
1575
1575
  ctx.ui.notify(`do-always: auto-ran "${task.name}"`, "info");
1576
1576
  return;
1577
1577
  }
@@ -1579,7 +1579,7 @@ export default function doAlwaysExtension(pi: ExtensionAPI) {
1579
1579
  ctx.ui.setEditorText(prompt);
1580
1580
  ctx.ui.notify(`do-always: prompt for "${task.name}" filled — press Enter to run`, "info");
1581
1581
  } else {
1582
- pi.sendUserMessage(prompt);
1582
+ pi.sendUserMessage(prompt, { deliverAs: 'followUp' });
1583
1583
  }
1584
1584
  }
1585
1585
 
@@ -418,7 +418,7 @@ export const DEFAULT_TASKS: DoAlwaysTask[] = [
418
418
  description: "Prepare a release (version, changelog, tag)",
419
419
  when: "git",
420
420
  prompt:
421
- "Prepare a release for this project (branch {{branch}}): check `git log` since the last tag, update the version in package.json (or the equivalent location), add a changelog entry summarizing the changes, and create a git tag if git present. Do not push.",
421
+ "Prepare a release for this project (branch {{branch}}): check `git log` since the last tag, then bump the version in package.json (or the equivalent location) to the next version, and add a changelog entry under that exact version summarizing the changes. The changelog entry must use the same version number now set in package.json — never add a changelog section for a version that package.json does not yet contain, and never leave an 'Unreleased' or placeholder version heading. Create a git tag if git present. Do not push.",
422
422
  },
423
423
  {
424
424
  name: "Commit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-do-always",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "description": "Pi extension: /do-always — pick a common task by number, it fills your prompt",
6
6
  "author": {