@henryqw/pi-prompt-creator 2.0.5 → 2.0.6
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 +9 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Turn repeated requests or corrections in the current conversation into a reviewed global Pi prompt. A tool-free child drafts one candidate, while Main and the user control review and saving.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Automatic analysis only prepares a candidate; the extension never saves it without your approval.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -29,13 +29,10 @@ Run `/promptor` in the interactive TUI after a repeated request or correction ap
|
|
|
29
29
|
|
|
30
30
|
The prompt is created at `~/.pi/agent/prompts/<name>.md`, then Pi reloads its resources. No selection menu or name prompt is required.
|
|
31
31
|
|
|
32
|
-
|
|
|
33
|
-
| --- | --- |
|
|
34
|
-
| `/promptor` |
|
|
35
|
-
|
|
|
36
|
-
| `/promptor save [name]` | Save Main's newest completed review reply, using the suggested name by default. |
|
|
37
|
-
| `/promptor dismiss` | Forget a candidate prepared by automatic analysis. |
|
|
38
|
-
| `/promptor automatic <on\|off>` | Enable or disable automatic analysis. |
|
|
32
|
+
| Surface | Type | Purpose |
|
|
33
|
+
| --- | --- | --- |
|
|
34
|
+
| `/promptor [analyze|dismiss|save [name]|automatic <on\|off>]` | command | For users in the interactive TUI: start or show analysis, dismiss a pending candidate, save a reviewed prompt, or control automatic analysis. |
|
|
35
|
+
| Analysis status widget and candidate message | ui | Show analysis progress, readiness, or failure; a displayed candidate is marked as untrusted. |
|
|
39
36
|
|
|
40
37
|
## Flow
|
|
41
38
|
|
|
@@ -65,23 +62,19 @@ New user input does not stop a running child. Branch navigation discards its old
|
|
|
65
62
|
|
|
66
63
|
### Review and save
|
|
67
64
|
|
|
68
|
-
A manually requested analysis displays its completed candidate immediately. Automatic
|
|
65
|
+
A manually requested analysis displays its completed candidate immediately. Automatic analysis shows a running widget, then keeps a completed candidate behind the `Prompt ready — /promptor` widget until you run `/promptor` or `/promptor dismiss`, so background work never interrupts the conversation.
|
|
69
66
|
|
|
70
67
|
Displayed candidates are visible messages marked as untrusted.
|
|
71
68
|
|
|
72
69
|
Refine the candidate with Main. Ask Main to return only the complete Final Prompt Draft before saving it with `/promptor save [name]`.
|
|
73
70
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Saving uses that latest retained Main reply as the entire file. Replies before the active compaction or branch summary cannot be saved.
|
|
71
|
+
Saving is allowed only after you show a candidate and Main then completes a valid Markdown review reply. Saving uses that latest retained Main reply as the entire file. Replies before the active compaction or branch summary cannot be saved.
|
|
77
72
|
|
|
78
73
|
An interrupted, failed, empty, or tool-use reply cannot be saved. The extension never falls back to an older reply.
|
|
79
74
|
|
|
80
75
|
A successful save ends that review. Show another candidate and complete another Main review reply before saving again.
|
|
81
76
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Names start with a letter and contain at most 64 ASCII characters. Existing command names and prompt files are rejected.
|
|
77
|
+
`/promptor save` uses the suggested candidate name. Pass `/promptor save <name>` to choose another. Names must be lowercase kebab-case, start with a letter, and contain at most 64 ASCII characters. Existing command names and prompt files are rejected.
|
|
85
78
|
|
|
86
79
|
A successful save reloads Pi resources. If reload fails, the prompt remains saved and `/reload` can load it.
|
|
87
80
|
|
|
@@ -106,7 +99,7 @@ A missing file quietly uses both defaults. Startup never creates or rewrites the
|
|
|
106
99
|
|
|
107
100
|
Malformed config or unknown keys disable automatic analysis. Pi warns once and leaves the file unchanged.
|
|
108
101
|
|
|
109
|
-
Only
|
|
102
|
+
Only `/promptor automatic on` or `/promptor automatic off` writes the config. Toggling preserves the configured threshold.
|
|
110
103
|
|
|
111
104
|
## State and storage
|
|
112
105
|
|