promptlike 0.6.2 → 0.6.3
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 +12 -0
- package/README.md +19 -151
- package/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.3 — 2026-10-13
|
|
4
|
+
|
|
5
|
+
- **Package metadata:** `repository` and `bugs` now point to the public plugin repository
|
|
6
|
+
(github.com/zeynepaslierhann/promptlike-plugin), which is where issues can be filed. No code change.
|
|
7
|
+
- **Docs (npm page):** the README no longer calls the CLI "open source" or invites pull
|
|
8
|
+
requests: the source is not public, the npm package is MIT-licensed. It no longer lists
|
|
9
|
+
the Chrome extension (not published) among what a free account adds, says that Free
|
|
10
|
+
holds up to 3 versions of each prompt (the 4th save asks you to upgrade), and gives feedback by email or on the plugin
|
|
11
|
+
repository. Maintainer notes (development, publishing) moved out of the README into
|
|
12
|
+
`DEVELOPMENT.md`, which is not part of the package. "Scope / V2" no longer says the CLI
|
|
13
|
+
cannot create prompts (`ple save` does).
|
|
14
|
+
|
|
3
15
|
## 0.6.2 — 2026-10-12
|
|
4
16
|
|
|
5
17
|
- **Fix:** a network problem while your session is being refreshed (no DNS,
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# promptlike (ple)
|
|
2
2
|
|
|
3
|
-
> Your personal prompt library in the terminal.
|
|
3
|
+
> Your personal prompt library in the terminal. The CLI for PromptLikeEngineer (MIT-licensed npm package).
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/promptlike)
|
|
6
6
|
[](LICENSE)
|
|
@@ -20,9 +20,9 @@ diffable, and yours. Nothing leaves your machine until you ask it to.
|
|
|
20
20
|
|
|
21
21
|
**Signing in is the upgrade, not the door.** A free
|
|
22
22
|
[promptlikeengineer.com](https://promptlikeengineer.com) account adds version
|
|
23
|
-
history with diff and rollback
|
|
24
|
-
|
|
25
|
-
explicit command:
|
|
23
|
+
history with diff and rollback (Free holds up to 3 versions of each prompt; the 4th save asks you to upgrade),
|
|
24
|
+
the web editor, and the same library in Claude Code and other MCP clients.
|
|
25
|
+
Bring your local prompts up with one explicit command:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
ple login
|
|
@@ -39,11 +39,9 @@ ple sync # one-way, local → account; local files are kept
|
|
|
39
39
|
3. [Commands](#commands)
|
|
40
40
|
4. [Configuration](#configuration)
|
|
41
41
|
5. [How it works](#how-it-works)
|
|
42
|
-
6. [
|
|
43
|
-
7. [
|
|
44
|
-
8. [
|
|
45
|
-
9. [Contributing](#contributing)
|
|
46
|
-
10. [License](#license)
|
|
42
|
+
6. [Troubleshooting](#troubleshooting)
|
|
43
|
+
7. [Feedback](#feedback)
|
|
44
|
+
8. [License](#license)
|
|
47
45
|
|
|
48
46
|
---
|
|
49
47
|
|
|
@@ -448,134 +446,6 @@ to configure.
|
|
|
448
446
|
|
|
449
447
|
---
|
|
450
448
|
|
|
451
|
-
## Development
|
|
452
|
-
|
|
453
|
-
The CLI lives in the `cli/` directory of the PromptLikeEngineer monorepo.
|
|
454
|
-
|
|
455
|
-
```bash
|
|
456
|
-
cd PromptLikeEngineer/cli
|
|
457
|
-
npm install
|
|
458
|
-
npm run dev # tsc --watch
|
|
459
|
-
node dist/index.js list # or `npm link` then `ple list`
|
|
460
|
-
|
|
461
|
-
# point the CLI at a local API while developing
|
|
462
|
-
PROMPTLIKE_API_URL=http://localhost:3000 node dist/index.js list
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
### Scripts
|
|
466
|
-
|
|
467
|
-
| Script | What it does |
|
|
468
|
-
|---|---|
|
|
469
|
-
| `npm run build` | Compiles TS → `dist/`, marks `dist/index.js` executable |
|
|
470
|
-
| `npm run dev` | `tsc --watch` for live rebuilds |
|
|
471
|
-
| `npm run typecheck` | `tsc --noEmit` |
|
|
472
|
-
| `npm run clean` | Removes `dist/` |
|
|
473
|
-
|
|
474
|
-
### Project layout
|
|
475
|
-
|
|
476
|
-
```
|
|
477
|
-
cli/
|
|
478
|
-
├── src/
|
|
479
|
-
│ ├── index.ts # commander dispatcher + global error handler
|
|
480
|
-
│ ├── commands/ # one file per command, async default export
|
|
481
|
-
│ │ ├── login.ts # masked password prompt + api login
|
|
482
|
-
│ │ ├── logout.ts # delete config file
|
|
483
|
-
│ │ ├── list.ts # list with --tag / --limit
|
|
484
|
-
│ │ ├── copy.ts # resolve + fetch + clipboard
|
|
485
|
-
│ │ ├── show.ts # resolve + 3-part colored render
|
|
486
|
-
│ │ ├── search.ts # title + description search
|
|
487
|
-
│ │ ├── save.ts # write to local store, no account needed
|
|
488
|
-
│ │ ├── get.ts # resolve + fill {{vars}} + print/copy
|
|
489
|
-
│ │ ├── sync.ts # one-way upload: local store → account
|
|
490
|
-
│ │ ├── improve.ts # one-shot variants, pick a winner
|
|
491
|
-
│ │ ├── loop.ts # multi-round improve judged by --exec
|
|
492
|
-
│ │ └── local.ts # logged-out routing + local-store implementations
|
|
493
|
-
│ └── lib/
|
|
494
|
-
│ ├── constants.ts # API_BASE_URL + WEB_APP_URL
|
|
495
|
-
│ ├── config.ts # read/write ~/.config/promptlike/config.json
|
|
496
|
-
│ ├── api-client.ts # fetch wrapper: bearer auth, refresh, error mapping
|
|
497
|
-
│ ├── clipboard.ts # spawn(pbcopy/xclip/clip) + Wayland fallback
|
|
498
|
-
│ ├── format.ts # chalk palette, timeAgo, truncate, joinPromptParts
|
|
499
|
-
│ ├── promptResolver.ts # name → prompt (id prefix or title search)
|
|
500
|
-
│ ├── promptVariables.ts # {{variable}} extract + fill
|
|
501
|
-
│ ├── localStore.ts # ~/.promptlike/prompts/ Markdown read/write
|
|
502
|
-
│ └── loopApi.ts / loopUx.ts # loop + improve variant generation & prompts
|
|
503
|
-
└── dist/ # tsc output, what gets published
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
### Adding a new command
|
|
507
|
-
|
|
508
|
-
1. Create `src/commands/<name>.ts`, `export async function`.
|
|
509
|
-
2. If it needs auth, call `await ensureAuthed()` from `../lib/api-client`
|
|
510
|
-
(throws a clear "log in" message + refreshes a soon-to-expire token), then
|
|
511
|
-
call the typed api-client helpers (`listPrompts`, `getPromptById`, …).
|
|
512
|
-
3. Wire it up in `src/index.ts` with `program.command('<name>')` + the
|
|
513
|
-
`runWithErrorHandler` wrapper for consistent error output.
|
|
514
|
-
4. `npm run build` and try it locally.
|
|
515
|
-
|
|
516
|
-
### Self-contained
|
|
517
|
-
|
|
518
|
-
The CLI defines its own minimal types (in `lib/api-client.ts`) and does not
|
|
519
|
-
depend on the repo's `shared/types/` — it talks to the web API purely over
|
|
520
|
-
HTTP, so there is no type-sync step for the CLI.
|
|
521
|
-
|
|
522
|
-
---
|
|
523
|
-
|
|
524
|
-
## Publishing a new version
|
|
525
|
-
|
|
526
|
-
Publishing is automated: pushing a `cli-v*` git tag runs the
|
|
527
|
-
`.github/workflows/cli-publish.yml` workflow, which typechecks, tests, builds,
|
|
528
|
-
and runs `npm publish --access public`.
|
|
529
|
-
|
|
530
|
-
Auth is **npm Trusted Publishing (OIDC)** — no token. npm verifies via OpenID
|
|
531
|
-
Connect that this exact repo + workflow is the package's configured trusted
|
|
532
|
-
publisher (npmjs.com/package/promptlike → Settings → Trusted Publisher:
|
|
533
|
-
`zeynepaslierhann` / `PromptLikeEngineer` / `cli-publish.yml`). The workflow
|
|
534
|
-
needs `permissions: id-token: write` and npm >= 11.5.1 (the runner upgrades npm
|
|
535
|
-
on Node 22), which the current workflow already sets.
|
|
536
|
-
|
|
537
|
-
This CLI lives in a monorepo, so bump the version **without** letting `npm`
|
|
538
|
-
create its own tag/commit, then push a `cli-v<version>` tag whose number
|
|
539
|
-
matches `package.json` exactly. Run everything from the repo root:
|
|
540
|
-
|
|
541
|
-
```bash
|
|
542
|
-
# 1. Bump cli/package.json only (no auto tag, no auto commit)
|
|
543
|
-
npm --prefix cli version patch --no-git-tag-version # or minor / major
|
|
544
|
-
|
|
545
|
-
# 2. Commit the bump (grab the new number from cli/package.json)
|
|
546
|
-
git add cli/package.json cli/package-lock.json
|
|
547
|
-
git commit -m "chore(cli): v0.2.1"
|
|
548
|
-
git push origin main
|
|
549
|
-
|
|
550
|
-
# 3. Tag that commit — the tag push is what triggers publishing
|
|
551
|
-
git tag cli-v0.2.1
|
|
552
|
-
git push origin cli-v0.2.1
|
|
553
|
-
```
|
|
554
|
-
|
|
555
|
-
Rules the automation relies on:
|
|
556
|
-
|
|
557
|
-
- The tag number **must** equal `cli/package.json#version` (npm rejects a
|
|
558
|
-
mismatch, and a version can never be published twice).
|
|
559
|
-
- Push the tag on its own (`git push origin cli-v0.2.1`), **not**
|
|
560
|
-
`git push --tags` — that would also push any stray local tags.
|
|
561
|
-
- If the run fails on the test step, nothing is published (publish runs last);
|
|
562
|
-
fix, move the tag to the new commit (`git tag -d` + delete remote + re-tag),
|
|
563
|
-
and push again.
|
|
564
|
-
|
|
565
|
-
To publish manually instead (only if CI is unavailable):
|
|
566
|
-
|
|
567
|
-
```bash
|
|
568
|
-
cd cli
|
|
569
|
-
npm run build
|
|
570
|
-
npm publish --dry-run # verify only dist/, README.md, LICENSE ship
|
|
571
|
-
npm publish --access public # requires npm login + 2FA OTP
|
|
572
|
-
```
|
|
573
|
-
|
|
574
|
-
`package.json#files` and `.npmignore` keep `src/`, `tsconfig.json`, and tests
|
|
575
|
-
out of the published tarball — only `dist/`, `LICENSE`, and `README.md` ship.
|
|
576
|
-
|
|
577
|
-
---
|
|
578
|
-
|
|
579
449
|
## Troubleshooting
|
|
580
450
|
|
|
581
451
|
| Symptom | Cause | Fix |
|
|
@@ -595,9 +465,9 @@ out of the published tarball — only `dist/`, `LICENSE`, and `README.md` ship.
|
|
|
595
465
|
|
|
596
466
|
## Scope / V2
|
|
597
467
|
|
|
598
|
-
What this CLI does **not** do yet
|
|
468
|
+
What this CLI does **not** do yet:
|
|
599
469
|
|
|
600
|
-
-
|
|
470
|
+
- Delete prompts (`ple save` creates and updates; deleting is done on the web)
|
|
601
471
|
- `ple search` over version body (`content`); needs a server-side full-text index
|
|
602
472
|
- `--project <name>` filter on `ple list`
|
|
603
473
|
- Interactive picker (think `fzf`-style)
|
|
@@ -605,21 +475,19 @@ What this CLI does **not** do yet (PRs welcome):
|
|
|
605
475
|
|
|
606
476
|
---
|
|
607
477
|
|
|
608
|
-
##
|
|
478
|
+
## Feedback
|
|
609
479
|
|
|
610
|
-
|
|
611
|
-
|
|
480
|
+
Bug reports and feature requests: email
|
|
481
|
+
[zeynepaslierhan@gmail.com](mailto:zeynepaslierhan@gmail.com) or open an issue on
|
|
482
|
+
[github.com/zeynepaslierhann/promptlike-plugin](https://github.com/zeynepaslierhann/promptlike-plugin/issues).
|
|
483
|
+
For a bug, include the command you ran, the error, your OS, and your Node version.
|
|
484
|
+
Check [Scope / V2](#scope--v2) before asking for a feature.
|
|
612
485
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
the issue you're picking up.
|
|
617
|
-
- **Code style:** TypeScript strict, no `any`, no `@ts-ignore`. Keep new
|
|
618
|
-
modules small and single-purpose (`src/lib/<thing>.ts`).
|
|
486
|
+
The `promptlike` and `promptlike-mcp` npm packages are MIT-licensed. The
|
|
487
|
+
PromptLikeEngineer web app they talk to is a hosted product owned by Zeynep Aslı
|
|
488
|
+
Erhan; its source is not public.
|
|
619
489
|
|
|
620
|
-
|
|
621
|
-
source — they're proprietary products owned by Zeynep Aslı Erhan. Only the
|
|
622
|
-
CLI in this directory falls under MIT.
|
|
490
|
+
Website: <https://promptlikeengineer.com/?utm_source=npm&utm_medium=readme&utm_campaign=ple_dist>
|
|
623
491
|
|
|
624
492
|
---
|
|
625
493
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptlike",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Terminal access to your PromptLikeEngineer prompt library - search, read, and copy your saved prompts without leaving the shell.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ple": "dist/index.js"
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"homepage": "https://promptlikeengineer.com",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/zeynepaslierhann/promptlike-plugin.git"
|
|
46
|
+
},
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/zeynepaslierhann/promptlike-plugin/issues"
|
|
49
|
+
},
|
|
43
50
|
"publishConfig": {
|
|
44
51
|
"access": "public"
|
|
45
52
|
},
|