promptlike 0.10.1 → 0.12.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/CHANGELOG.md +61 -0
- package/README.md +175 -5
- package/dist/commands/feedback.js +351 -0
- package/dist/commands/import.js +6 -1
- package/dist/commands/importPle.js +237 -0
- package/dist/commands/local.js +3 -1
- package/dist/commands/localHistory.js +1 -1
- package/dist/commands/repo.js +49 -0
- package/dist/commands/save.js +71 -0
- package/dist/commands/search.js +4 -1
- package/dist/commands/suggest.js +37 -4
- package/dist/commands/visibility.js +138 -0
- package/dist/commands/whoami.js +80 -0
- package/dist/help.js +5 -3
- package/dist/index.js +5 -1
- package/dist/lib/accountSave.js +159 -0
- package/dist/lib/api-client.js +45 -0
- package/dist/lib/feedbackApi.js +134 -0
- package/dist/lib/feedbackHint.js +15 -0
- package/dist/lib/feedbackInput.js +182 -0
- package/dist/lib/feedbackQueue.js +219 -0
- package/dist/lib/feedbackSource.js +53 -0
- package/dist/lib/libraryCache.js +1 -0
- package/dist/lib/localStore.js +18 -8
- package/dist/lib/loopApi.js +38 -2
- package/dist/lib/pleSpec.js +33 -0
- package/dist/lib/promptResolver.js +51 -5
- package/dist/lib/publicApi.js +92 -0
- package/dist/lib/rank.js +24 -6
- package/dist/lib/titleMatch.js +32 -0
- package/dist/program.js +165 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 — 2026-10-30
|
|
4
|
+
|
|
5
|
+
- **New: `ple visibility <prompt> public|private`** and **`ple visibility --all --project <repo> public|private`.**
|
|
6
|
+
Make one prompt, or every prompt of a repo, public or private from the terminal (before, only the web editor could).
|
|
7
|
+
A prompt page is public only when its repo is public too; the command says when the repo is still private. Going
|
|
8
|
+
public asks first (`--yes` in a script); only the owner can change it. There is no MCP tool for this on purpose.
|
|
9
|
+
- **New: `ple import ple:<user>/<repo>[/<prompt>]`.** Copy the public prompts of another PromptLikeEngineer user into
|
|
10
|
+
your library, the whole repo or one prompt by title or id. It works signed out and reads only the public
|
|
11
|
+
endpoints. Each copy keeps its source, the version it was read at and the repo's license (in the description, and as
|
|
12
|
+
provenance when signed in); a repo without a declared license is copied with a notice. A re-run skips what you
|
|
13
|
+
have; a newer upstream version is reported, not applied.
|
|
14
|
+
- **New: `ple repo license <repo> CC-BY-4.0|CC-BY-SA-4.0|CC0-1.0|MIT|Apache-2.0|none`.** Declare how a repo's prompts
|
|
15
|
+
may be reused (owner only). `ple repo show` and `--json` carry it as `license`; the public repo page shows it.
|
|
16
|
+
|
|
17
|
+
## 0.11.0 — 2026-10-30
|
|
18
|
+
|
|
19
|
+
- **New: `ple whoami` (alias `ple account`).** Shows the signed-in account: your email, the plan (Free / Pro /
|
|
20
|
+
Team), prompts and repos used against the plan limit (`prompts 23 / 25`), the version cap per prompt, and the
|
|
21
|
+
trial end when the server reports one. `--json` prints one line. Signed out it prints
|
|
22
|
+
`Not signed in. Run `ple login`.` and exits with code 1. It reads `GET /api/account/limits`; no token is ever
|
|
23
|
+
printed.
|
|
24
|
+
- **`ple suggest` no longer brings back unrelated prompts, and takes `--tag` and `--project`.** One generic word
|
|
25
|
+
in a title ("write") used to be enough for a 5-word task about something else (score 3.7-4.9). Now the longer
|
|
26
|
+
the task, the more of its words a prompt must match (1 word up to 4 task words, 2 up to 8, 3 up to 12), and a
|
|
27
|
+
match scoring under half of the best one is dropped. Short tasks and good matches are unchanged; the hook
|
|
28
|
+
output has the same shape. `--tag <name>` (repeatable, all must match, like `ple list`) and `--project <repo>`
|
|
29
|
+
narrow the library before ranking; signed out, `--project` is ignored with a note.
|
|
30
|
+
- **An unknown command is now a usage error.** `ple whoami-typo` (also `ple repo <x>`, `ple config <x>`) prints
|
|
31
|
+
`error: unknown command '...'`, the nearest command when there is one (`Did you mean list?`) and a pointer
|
|
32
|
+
to `ple --help` on stderr, and exits with code 2 (before: code 1, no pointer — the code scripts read as "your
|
|
33
|
+
login or input is wrong"). `ple` alone and `ple --help` are unchanged.
|
|
34
|
+
- **New: `ple save <title> --project <repo>` saves into your account, and running it again is safe.** The
|
|
35
|
+
title inside the repo is the identity: a new title creates the prompt, the same title with different text
|
|
36
|
+
adds a new version (earlier versions and labels stay), the same text prints "Unchanged" and sends nothing.
|
|
37
|
+
`-d` updates the description only when it differs (no new version), `-t` only adds tags. Two prompts with
|
|
38
|
+
the same title and no match for this text are listed and left alone (exit code 1). Signed out, `--project`
|
|
39
|
+
still saves locally and warns that the account was not written. Before this, `ple save` had no way to
|
|
40
|
+
reach the account, and `ple sync` after an edit uploaded the edited text as a second prompt.
|
|
41
|
+
- **Names are matched ignoring Turkish letters, accents and case.** `ple get "hat baslangici"` now finds
|
|
42
|
+
"Hat başlangıcı" and `ple get "is akisi"` finds "İş akışı özeti" (before: "No prompt matched", also for
|
|
43
|
+
"HAT BAŞLANGICI", because `I` and `ı`/`İ` did not fold). It works for `get`, `show`, `copy`, `log`, `diff`,
|
|
44
|
+
`rollback`, `improve` and `export`, in your account and in the local store, and a part of a title is
|
|
45
|
+
enough. An exact title still wins; several matches print the candidates and exit with code 1; no match
|
|
46
|
+
keeps the old error. `ple search` on this machine folds the same way.
|
|
47
|
+
- **New: `ple feedback "<message>"`.** Tell the maker what is missing, broken or confusing, from the
|
|
48
|
+
terminal or from an agent: `--type bug|missing|idea|prompt` (default `idea`), `--prompt <title|id>`,
|
|
49
|
+
`--email`, `--agent <name>`, `--json`. It never asks a question. Exit codes: `0` sent, `1` unexpected,
|
|
50
|
+
`2` usage or validation, `3` rate limited, `4` server or network problem (saved to a local queue).
|
|
51
|
+
What is sent: the type, the message, the prompt title or id and the email if you gave them, whether a
|
|
52
|
+
person or an agent wrote it, and the `ple` version, OS and CPU, Node version and the command name with
|
|
53
|
+
the flag names you used. Never a prompt body, a file, a path or a flag value. A message that looks like an
|
|
54
|
+
API key or token is refused. Signed in, the report is tied to your account; signed out it is anonymous.
|
|
55
|
+
- **Reports that cannot be delivered are kept and sent later.** They are saved to
|
|
56
|
+
`~/.promptlike/feedback/queue.json` (at most 50, mode `0600`) and sent silently after a later `ple` command
|
|
57
|
+
(2 second limit, at most every 15 minutes; not after `save`, `log`, `diff`, `rollback`, `suggest`,
|
|
58
|
+
`import`, and not after a failed command). `PLE_FEEDBACK_QUEUE=off` turns the sending off.
|
|
59
|
+
- **New (owner): `ple feedback list` and `ple feedback close <id> --commit <sha>`** read the feedback and
|
|
60
|
+
mark it `done` or `wontfix` with the commit that resolved it. They need a session on the owner account.
|
|
61
|
+
- **A pointer when nothing is found.** `ple search` with no result, and a failing `ple get`, print one
|
|
62
|
+
line on stderr: `Missing something? ple feedback --type missing "..."`. It never goes into the output you pipe.
|
|
63
|
+
|
|
3
64
|
## 0.10.1 — 2026-10-23
|
|
4
65
|
|
|
5
66
|
- **Security: the Claude Code suggestion note is hardened.** The note the hook adds to Claude's
|
package/README.md
CHANGED
|
@@ -104,6 +104,29 @@ not repeat are carried over rather than wiped. Every save that changes the text
|
|
|
104
104
|
also adds a version to a local, append-only history (see
|
|
105
105
|
[Local version history](#local-version-history-signed-out)).
|
|
106
106
|
|
|
107
|
+
### `ple save <title> --project <repo>` — straight into your account, safe to run again
|
|
108
|
+
|
|
109
|
+
Signed in, `--project` (a repo name, slug, id or short id) saves into that repo of your account instead
|
|
110
|
+
of the local store, and the title inside the repo is the identity:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
$ ple save "code review" -m "Review this diff: {{diff}}" --project my-prompts
|
|
114
|
+
✓ Saved to my-prompts: code review (3f2a1b9c, v1)
|
|
115
|
+
$ ple save "code review" -m "Review this diff: {{diff}}" --project my-prompts
|
|
116
|
+
= Unchanged: "code review" in my-prompts already has this text (v1) — no new version.
|
|
117
|
+
$ ple save "code review" -m "Review this diff, be strict: {{diff}}" --project my-prompts
|
|
118
|
+
✓ New version of "code review" in my-prompts: v2 (was v1) — earlier versions are kept
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
A new title creates the prompt; the same title with different text adds a new version (nothing is
|
|
122
|
+
overwritten, labels stay where they are); the same text sends nothing. `-d` changes the description only
|
|
123
|
+
when it differs (no new version); `-t` only ever adds tags. If two prompts in the repo share the title and
|
|
124
|
+
neither has this text, nothing is changed and both are listed (exit code 1). A wrong repo name stops before
|
|
125
|
+
anything is sent. Signed out, `--project` still saves locally and prints a warning that the account was
|
|
126
|
+
not written; run the same command after `ple login` and it will not duplicate anything. Unlike `ple sync`
|
|
127
|
+
(which uploads whatever text the local files hold, so an edited file becomes a second prompt), this
|
|
128
|
+
command updates the prompt you named.
|
|
129
|
+
|
|
107
130
|
### `ple sync [--dry-run] [--project <repo>]`
|
|
108
131
|
|
|
109
132
|
Uploads local prompts into your signed-in account. **Explicit on purpose** —
|
|
@@ -138,6 +161,26 @@ Password: ********
|
|
|
138
161
|
Removes the local session file. The session itself expires naturally on its
|
|
139
162
|
own clock — this just clears the local copy.
|
|
140
163
|
|
|
164
|
+
### `ple whoami [--json]` (alias `ple account`)
|
|
165
|
+
|
|
166
|
+
Which account is this terminal signed in as, and how much of the plan is used. It shows your own email in
|
|
167
|
+
full, the plan name (Free, Pro, Team), prompts and repos used against the plan limit, the version cap per
|
|
168
|
+
prompt, and — when the server reports one — the trial end. The session token is never printed.
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
$ ple whoami
|
|
172
|
+
you@example.com
|
|
173
|
+
Plan Free
|
|
174
|
+
Prompts 23 / 25
|
|
175
|
+
Repos 1 / 1
|
|
176
|
+
Versions up to 10 per prompt
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
`--json` prints one line (`signed_in`, `email`, `plan`, `usage`, `limits`, `trial_ends_at`). Signed out it
|
|
180
|
+
prints `Not signed in. Run `ple login`.` on stderr (`{"signed_in":false}` with `--json`) and exits `1`.
|
|
181
|
+
The data comes from `GET /api/account/limits`; that endpoint does not report a trial end or how many versions
|
|
182
|
+
each prompt has, so those two are shown only when it does.
|
|
183
|
+
|
|
141
184
|
### `ple list [--tag <name>]… [--limit <n>] [--project <repo>]`
|
|
142
185
|
|
|
143
186
|
Lists every prompt your account has access to. The server scopes results to
|
|
@@ -196,6 +239,7 @@ $ ple repo visibility team-prompts public # asks first; --yes in scripts
|
|
|
196
239
|
| `ple repo list [--json]` | Every repo you own or belong to: visibility, your role, prompt count. |
|
|
197
240
|
| `ple repo show <repo> [--json]` | One repo. `<repo>` = name, slug, id, or the 8-character id from `ple repo list`. |
|
|
198
241
|
| `ple repo visibility <repo> private\|public [--yes] [--json]` | Owner only. Going public asks for confirmation (a script must pass `--yes`); going private never asks. |
|
|
242
|
+
| `ple repo license <repo> CC-BY-4.0\|CC-BY-SA-4.0\|CC0-1.0\|MIT\|Apache-2.0\|none [--json]` | Owner only. Declares how the repo's prompts may be reused; shown on the public repo page. `none` clears it. A repo with no license is shown as "none declared", never as free to use. |
|
|
199
243
|
|
|
200
244
|
The server enforces the rules, not just the CLI: you must be signed in, Free
|
|
201
245
|
includes 1 repo (hitting the limit says so and links the pricing page), names and URL slugs must be valid and unique among your repos
|
|
@@ -208,7 +252,7 @@ a repo cannot be undone, so it is only possible on the web.
|
|
|
208
252
|
|
|
209
253
|
```json
|
|
210
254
|
{ "ok": true, "repo": { "id": "…", "name": "team-prompts", "slug": "team-prompts",
|
|
211
|
-
"description": null, "visibility": "private", "role": "owner",
|
|
255
|
+
"description": null, "visibility": "private", "license": null, "role": "owner",
|
|
212
256
|
"prompt_count": 0, "member_count": 1,
|
|
213
257
|
"created_at": "2026-10-17T09:00:00Z", "updated_at": "2026-10-17T09:00:00Z" } }
|
|
214
258
|
```
|
|
@@ -217,6 +261,28 @@ a repo cannot be undone, so it is only possible on the web.
|
|
|
217
261
|
`{ "repo": { … } }`; `visibility` prints `{ "ok": true, "changed": true|false, "repo": { … } }`.
|
|
218
262
|
Keys are only ever added, never renamed or removed, within 0.x minor releases.
|
|
219
263
|
|
|
264
|
+
### `ple visibility` — make single prompts public or private
|
|
265
|
+
|
|
266
|
+
A prompt page is public only when its repo **and** the prompt are public. `ple repo visibility` is the repo half; this
|
|
267
|
+
is the prompt half. Needs an account.
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
$ ple visibility "code review" public --yes
|
|
271
|
+
✓ 'Code Review' is now public.
|
|
272
|
+
Its repo 'ortak-web' is private, so the page stays hidden: ple repo visibility ortak-web public
|
|
273
|
+
|
|
274
|
+
$ ple visibility --all --project ortak-web public --yes
|
|
275
|
+
✓ 5 prompts in 'ortak-web' are now public.
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
| Command | What it does |
|
|
279
|
+
|---|---|
|
|
280
|
+
| `ple visibility <prompt> private\|public [--project <repo>] [--yes] [--json]` | One prompt, by title or id. Going public asks for confirmation (a script must pass `--yes`); going private never asks. A prompt that already has the value is left alone. |
|
|
281
|
+
| `ple visibility --all --project <repo> private\|public [--yes] [--json]` | Every prompt of the repo that differs, with one confirmation. A prompt that fails is reported and the exit code is `1`; the rest are still changed. |
|
|
282
|
+
|
|
283
|
+
Only the owner can change visibility (the server enforces it). There is no MCP tool for this on purpose: an agent
|
|
284
|
+
should not be able to publish your prompts.
|
|
285
|
+
|
|
220
286
|
### `ple copy <name>`
|
|
221
287
|
|
|
222
288
|
Looks up a prompt by title substring (case-insensitive) or short ID, joins
|
|
@@ -285,6 +351,15 @@ used when your account has no match (see
|
|
|
285
351
|
[Prompts only on this machine](#prompts-only-on-this-machine-signed-in)); the note
|
|
286
352
|
about it goes to stderr as well.
|
|
287
353
|
|
|
354
|
+
**How a name is matched.** `get`, `show`, `copy` (and `log`, `diff`, `rollback`, `improve`, `export`) take a
|
|
355
|
+
title, a slug, a short id or just part of a title. Case, Turkish letters and accents do not matter:
|
|
356
|
+
`ple get "hat baslangici"` finds "Hat başlangıcı", `ple get "is akisi"` finds "İş akışı özeti". An exact
|
|
357
|
+
title always wins over longer titles that contain it. One match → the prompt. Several matches → a warning
|
|
358
|
+
with the candidates (name or short id on the left, repo on the right) on stderr, nothing on stdout, exit
|
|
359
|
+
code `1`; re-run with the exact name, a short id or `--project <repo>`. No match → the error, exit code
|
|
360
|
+
`1`, and the `ple feedback` pointer (`get`). Signed in, the account is searched first and the titles are
|
|
361
|
+
looked through when the server's own search finds none.
|
|
362
|
+
|
|
288
363
|
**Conditional blocks.** `{{#if var}}…{{else}}…{{/if}}` and `{{#unless var}}…{{/unless}}`
|
|
289
364
|
keep or drop text depending on a variable. A variable counts as set when it has a
|
|
290
365
|
value that is not empty, `false` or `0`; a condition variable you do not pass is
|
|
@@ -506,6 +581,28 @@ followed by the real import costs nothing extra: files and file lists are
|
|
|
506
581
|
stored by commit and never change, while a repo's info and what a branch points
|
|
507
582
|
to are reused for 10 minutes.
|
|
508
583
|
|
|
584
|
+
### Import from another PromptLikeEngineer user
|
|
585
|
+
|
|
586
|
+
```bash
|
|
587
|
+
ple import ple:<user>/<repo> --dry-run # what is there, and under which license
|
|
588
|
+
ple import ple:<user>/<repo> --all # every public prompt of the repo
|
|
589
|
+
ple import ple:<user>/<repo>/<title or id> # one prompt (an 8-character id prefix works)
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
Copies the **public** prompts of a public repo into your library. It works signed out: it reads only the public
|
|
593
|
+
endpoints (`/api/public/...`), and no session or token is read or sent. Signed out the copies go to
|
|
594
|
+
`~/.promptlike/prompts`, signed in to your account (`--project <repo>` picks the repo; the plan limit is said before
|
|
595
|
+
uploading).
|
|
596
|
+
|
|
597
|
+
- **Source and license are kept.** The description ends with
|
|
598
|
+
`Source: ple:<user>/<repo>/<id> · v<version> · <license> · promptlikeengineer.com/<user>/<repo>`. Signed in, the same
|
|
599
|
+
facts (source, owner, repo, prompt id, version, license) are stored as provenance.
|
|
600
|
+
- **A repo without a declared license** is copied with a notice, never silently: the author has not said how its
|
|
601
|
+
prompts may be reused.
|
|
602
|
+
- **Safe to run again.** A body you already have is skipped. If upstream has a newer version of a prompt you imported
|
|
603
|
+
earlier, it is reported (`you have v1, upstream is v2`) and not applied: updates are not followed yet.
|
|
604
|
+
- Text that looks like a secret is never copied. Several prompts with the same title in one repo: use the id.
|
|
605
|
+
|
|
509
606
|
### Check for upstream changes
|
|
510
607
|
|
|
511
608
|
`ple import --check` looks at every prompt you imported from GitHub and shows
|
|
@@ -596,7 +693,7 @@ Every `ple copy/get/show` records one use with `surface: cli`. A wrapper can
|
|
|
596
693
|
attribute uses differently with `PLE_SURFACE` (e.g. `hook`) and
|
|
597
694
|
`PLE_VIA=suggestion`; unknown values fall back to `cli`.
|
|
598
695
|
|
|
599
|
-
### `ple suggest "<task>" [--json] [--limit <n>] [--hook]`
|
|
696
|
+
### `ple suggest "<task>" [--tag <name>]… [--project <repo>] [--json] [--limit <n>] [--hook]`
|
|
600
697
|
|
|
601
698
|
Which of your saved prompts fits what you are about to do? Matching is
|
|
602
699
|
**local**: a cached copy of your library (`~/.config/promptlike/cache/`,
|
|
@@ -614,7 +711,15 @@ Use one: ple get "Code Review"
|
|
|
614
711
|
|
|
615
712
|
Ranking: title ×3, tag ×2, description ×1, the first 600 characters of the
|
|
616
713
|
body ×0.5, weighted by how rare each word is in your library, plus a small
|
|
617
|
-
bonus for prompts you use a lot. Weak single-word matches are not suggested
|
|
714
|
+
bonus for prompts you use a lot. Weak single-word matches are not suggested: the
|
|
715
|
+
longer the task, the more of its words a prompt has to match (one word up to 4
|
|
716
|
+
task words, two up to 8, three up to 12), and a match scoring under half of the
|
|
717
|
+
best one is dropped. So one shared generic word like "write" no longer brings
|
|
718
|
+
back an unrelated prompt.
|
|
719
|
+
|
|
720
|
+
`--tag <name>` (repeat it to require several, as in `ple list`) and
|
|
721
|
+
`--project <repo>` (name, slug or id; needs `ple login`, ignored with a note
|
|
722
|
+
while signed out) narrow the library before ranking. `--hook` does not use them.
|
|
618
723
|
Case, Turkish letters and accents are folded on both sides, so `kok neden` finds
|
|
619
724
|
`kök neden` and `İngilizce` is the same word as `ingilizce` (ç ğ ı İ ö ş ü â î û
|
|
620
725
|
and other Latin accents). This applies to the hook note as well.
|
|
@@ -630,6 +735,62 @@ the plugin option in Claude Code's `/config`. How many were shown is counted
|
|
|
630
735
|
on this machine only (`ple stats`); the server only learns about a suggestion
|
|
631
736
|
when one is actually used.
|
|
632
737
|
|
|
738
|
+
### `ple feedback "<message>"` — tell the maker what is missing or broken
|
|
739
|
+
|
|
740
|
+
```bash
|
|
741
|
+
ple feedback "ple search should also look inside prompt bodies" # an idea (the default type)
|
|
742
|
+
ple feedback --type bug --prompt "code review" "get printed the wrong version"
|
|
743
|
+
ple feedback --type missing --json "no way to rename a repo from the CLI"
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
| Flag | Meaning |
|
|
747
|
+
|---|---|
|
|
748
|
+
| `--type bug\|missing\|idea\|prompt` | What kind of note (default `idea`) |
|
|
749
|
+
| `--prompt <title\|id>` | The prompt it is about: its **title or id**, never its text |
|
|
750
|
+
| `--email <address>` | Where to answer you (optional) |
|
|
751
|
+
| `--agent <name>` | Mark the report as written by an AI agent with this name |
|
|
752
|
+
| `--json` | One JSON line on stdout: `{"ok":true,"id":"…","exit_code":0,…}` — on failure `{"ok":false,"exit_code":2,"error":"…"}`, or `{"ok":false,"queued":true,"exit_code":4,…}` |
|
|
753
|
+
|
|
754
|
+
It never asks a question and never waits for input, so an agent can call it. A message is 1 to 2000 characters;
|
|
755
|
+
one that looks like an API key or token is **refused** (the kind is named, the value never echoed).
|
|
756
|
+
|
|
757
|
+
**What leaves your machine:** the type, your message, the prompt title or id and the email if you gave them,
|
|
758
|
+
whether a person or an AI agent wrote it, and four short values: the `ple` version, OS and CPU (`darwin-arm64`),
|
|
759
|
+
the Node version, and the command name with the **names** of the flags you used (`feedback --type --prompt`).
|
|
760
|
+
Never a prompt body, a file, a path or a flag value. Signed in, the report is tied to your account; signed out it is
|
|
761
|
+
anonymous. Who wrote it is decided from `--agent`, else from `PLE_AGENT=<name>`, `AI_AGENT`, `CLAUDECODE`,
|
|
762
|
+
`CLAUDE_CODE_ENTRYPOINT`, `CODEX_*` or `CURSOR_*` in the environment; otherwise a person (a piped stdin does not count).
|
|
763
|
+
|
|
764
|
+
**Exit codes** (this command only; the table at [Exit codes](#exit-codes) covers the rest):
|
|
765
|
+
|
|
766
|
+
| Code | Meaning |
|
|
767
|
+
|---|---|
|
|
768
|
+
| `0` | Sent |
|
|
769
|
+
| `1` | Something unexpected |
|
|
770
|
+
| `2` | Usage or validation error — nothing was sent (bad flag, empty or too long message, secret found, rejected by the server) |
|
|
771
|
+
| `3` | Rate limited — try again after the delay shown |
|
|
772
|
+
| `4` | Server or network problem — the report was saved to the local queue |
|
|
773
|
+
|
|
774
|
+
**Offline queue.** A report that could not be delivered is saved to `~/.promptlike/feedback/queue.json` (at most 50;
|
|
775
|
+
the oldest is dropped when it is full; mode `0600`). After any other `ple` command it is sent silently, with a
|
|
776
|
+
2 second limit, at most once every 15 minutes, never after the offline commands (`save`, `log`, `diff`, `rollback`,
|
|
777
|
+
`suggest`, `import`) and never when the command failed. Turn it off with `PLE_FEEDBACK_QUEUE=off`.
|
|
778
|
+
|
|
779
|
+
**Pointer on a miss.** When `ple search` finds nothing, or `ple get` fails, one line goes to stderr:
|
|
780
|
+
`Missing something? ple feedback --type missing "..."` (never into the output you pipe).
|
|
781
|
+
|
|
782
|
+
**Owner commands** (need a session on the owner account; other accounts get a "not allowed" message):
|
|
783
|
+
|
|
784
|
+
```bash
|
|
785
|
+
ple feedback list [--status new|triaged|done|wontfix] [--limit <n>] [--json]
|
|
786
|
+
ple feedback close <id> --commit <sha> [--status done|wontfix] [--json]
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
`list` prints what the server returns (with `--json`: `{"ok":true,"exit_code":0,"items":[…]}` exactly as sent, e-mail
|
|
790
|
+
addresses included). `close` marks an item `done` (default) or `wontfix` and records the commit that resolved it
|
|
791
|
+
(`--commit` is required for `done`). They use `0` ok · `1` not signed in or not allowed · `2` bad input · `3` rate limit ·
|
|
792
|
+
`4` server or network problem (nothing is queued for these two).
|
|
793
|
+
|
|
633
794
|
### `ple config get [key]` · `ple config set <key> <value>`
|
|
634
795
|
|
|
635
796
|
CLI preferences, stored in `~/.config/promptlike/settings.json` (separate from
|
|
@@ -686,7 +847,12 @@ Turn it off with `ple config set update-check off`, `PLE_UPDATE_CHECK=off` or
|
|
|
686
847
|
| `1` | You can fix it | bad input, not signed in, not found, not allowed, plan limit, name already used |
|
|
687
848
|
| `2` | Try again later | no network, timeout, rate limited, server error (5xx) |
|
|
688
849
|
|
|
689
|
-
Scripts should treat any non-zero code as failure; `2` is the one worth retrying
|
|
850
|
+
Scripts should treat any non-zero code as failure; `2` is the one worth retrying — except for a mistyped
|
|
851
|
+
command: `ple whoami-typo` prints `error: unknown command` with the nearest command and exits `2`, like a usage
|
|
852
|
+
error in `ple feedback`; retrying will not help.
|
|
853
|
+
|
|
854
|
+
`ple feedback` has its own table (`0` sent · `1` unexpected · `2` usage or validation · `3` rate limited · `4` queued for
|
|
855
|
+
later) — see [its section](#ple-feedback-message--tell-the-maker-what-is-missing-or-broken).
|
|
690
856
|
|
|
691
857
|
## Security notes
|
|
692
858
|
|
|
@@ -729,6 +895,7 @@ Scripts should treat any non-zero code as failure; `2` is the one worth retrying
|
|
|
729
895
|
| `~/.config/promptlike/settings.json` | Preferences (`ple config`) | `0600` |
|
|
730
896
|
| `~/.config/promptlike/cache/library.json` | Library snapshot for `ple suggest` (titles, descriptions, tags, first 600 chars) | `0600` |
|
|
731
897
|
| `~/.config/promptlike/cache/update-check.json` | Latest `promptlike` version npm reported and when you were last told (see [Update notice](#update-notice)); safe to delete | `0600` where supported |
|
|
898
|
+
| `~/.promptlike/feedback/queue.json` | Reports `ple feedback` could not deliver (max 50), sent by a later command; see [`ple feedback`](#ple-feedback-message--tell-the-maker-what-is-missing-or-broken) | `0600` |
|
|
732
899
|
| `~/.promptlike/cache/github/` | Answers from GitHub for `ple import github:…` (file lists, files, repo info); safe to delete | `0600` |
|
|
733
900
|
|
|
734
901
|
Shape of the config file:
|
|
@@ -766,6 +933,8 @@ to configure.
|
|
|
766
933
|
| `PLE_SUGGEST=off` | `ple suggest --hook` stays silent |
|
|
767
934
|
| `PLE_UPDATE_CHECK=off` | No update notice, no cache read, no request to npm |
|
|
768
935
|
| `NO_UPDATE_NOTIFIER=1` | Same (any value turns it off, even empty); a non-empty `CI` other than `false` / `0` does too |
|
|
936
|
+
| `PLE_FEEDBACK_QUEUE=off` | Reports that `ple feedback` could not deliver are not retried by later commands (they are still saved) |
|
|
937
|
+
| `PLE_AGENT=<name>` | `ple feedback` marks its reports as written by this agent (also read: `AI_AGENT`, `CLAUDECODE`, `CODEX_*`, `CURSOR_*`) |
|
|
769
938
|
| `PLE_SURFACE`, `PLE_VIA` | How `copy/get/show` report a use (e.g. `hook`, `suggestion`) |
|
|
770
939
|
| `PROMPTLIKE_HOME` | Local store location (default `~/.promptlike`) |
|
|
771
940
|
| `PROMPTLIKE_CONFIG_DIR` | Session / settings / cache folder (default `~/.config/promptlike`) |
|
|
@@ -843,7 +1012,8 @@ What this CLI does **not** do yet:
|
|
|
843
1012
|
|
|
844
1013
|
## Feedback
|
|
845
1014
|
|
|
846
|
-
Bug reports and feature requests:
|
|
1015
|
+
Bug reports and feature requests: run [`ple feedback "<message>"`](#ple-feedback-message--tell-the-maker-what-is-missing-or-broken)
|
|
1016
|
+
(works from agents too), email
|
|
847
1017
|
[zeynepaslierhan@gmail.com](mailto:zeynepaslierhan@gmail.com) or open an issue on
|
|
848
1018
|
[github.com/zeynepaslierhann/promptlike-plugin](https://github.com/zeynepaslierhann/promptlike-plugin/issues).
|
|
849
1019
|
For a bug, include the command you ran, the error, your OS, and your Node version.
|