@henryqw/pi-prompt-creator 3.0.2 → 3.1.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.
- package/README.md +5 -3
- package/extensions/prompt-creator.ts +3 -2
- package/package.json +5 -5
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.
|
|
9
|
+
Requires Pi 1.1.0 or later. 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
|
-
|
|
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", (
|
|
436
|
+
pi.on("agent_settled", (event, ctx) => {
|
|
437
437
|
if (
|
|
438
|
-
|
|
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
|
+
"version": "3.1.0",
|
|
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 --
|
|
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.
|
|
29
|
+
"@earendil-works/pi-coding-agent": "^1.1.0"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@henryqw/pi-config-store": "^3.0.0",
|
|
49
49
|
"@henryqw/pi-subagent": "^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0 || ^26.0.0",
|
|
50
|
-
"@henryqw/pi-task-models": "^
|
|
50
|
+
"@henryqw/pi-task-models": "^8.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
53
|
+
"@earendil-works/pi-coding-agent": "1.1.0"
|
|
54
54
|
}
|
|
55
55
|
}
|