@henryqw/pi-prompt-creator 3.0.3 → 3.1.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.md CHANGED
@@ -6,7 +6,7 @@ Automatic analysis only prepares a candidate; the extension never saves it witho
6
6
 
7
7
  ## Install
8
8
 
9
- Requires Pi 1.0.0 or later. Older Pi releases are no longer supported.
9
+ Requires Pi 1.1.0 or later in the 1.x series. Older Pi releases are no longer supported.
10
10
 
11
11
  ```bash
12
12
  pi install npm:@henryqw/pi-task-models
@@ -47,9 +47,11 @@ The diagram shows the automatic path. Manual analysis displays its candidate imm
47
47
 
48
48
  Automatic mode waits for the configured number of non-empty user inputs. The default is three.
49
49
 
50
- It starts at the next idle `agent_settled` event. It starts at most once per extension runtime.
50
+ It starts at the next idle `agent_settled` event that is not aborted. It starts at most once per extension runtime.
51
51
 
52
- A manual analysis consumes that opportunity.
52
+ An aborted run does not start automatic analysis. It keeps the input count and the automatic opportunity, so a later eligible normal settlement can start analysis. `aborted: false` does not prove that the provider completed successfully.
53
+
54
+ Explicit `/promptor analyze` remains available after cancellation. A manual analysis consumes the automatic opportunity.
53
55
 
54
56
  Branch changes reset the input counter. Automatic analysis and candidate widgets require the interactive TUI.
55
57
 
@@ -433,9 +433,10 @@ export default function promptCreatorExtension(pi: ExtensionAPI, options: Prompt
433
433
  return { action: "continue" };
434
434
  });
435
435
 
436
- pi.on("agent_settled", (_event, ctx) => {
436
+ pi.on("agent_settled", (event, ctx) => {
437
437
  if (
438
- ctx.mode !== "tui"
438
+ event.aborted
439
+ || ctx.mode !== "tui"
439
440
  || !ctx.isIdle()
440
441
  || !automatic
441
442
  || automaticConsumed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-prompt-creator",
3
- "version": "3.0.3",
3
+ "version": "3.1.1",
4
4
  "description": "Turn current Pi conversation signals into user-approved prompt templates.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -22,11 +22,11 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "test": "node --test test/*.test.ts",
25
- "typecheck": "tsc --noEmit --allowImportingTsExtensions --target ES2022 --module NodeNext --moduleResolution NodeNext --skipLibCheck extensions/*.ts test/*.test.ts",
25
+ "typecheck": "tsc --project tsconfig.json",
26
26
  "pack:check": "npm pack --dry-run"
27
27
  },
28
28
  "peerDependencies": {
29
- "@earendil-works/pi-coding-agent": "^1.0.0"
29
+ "@earendil-works/pi-coding-agent": "^1.1.0"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
@@ -50,6 +50,6 @@
50
50
  "@henryqw/pi-task-models": "^8.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@earendil-works/pi-coding-agent": "1.0.0"
53
+ "@earendil-works/pi-coding-agent": "1.1.0"
54
54
  }
55
55
  }