@plitzi/cli 0.38.8 → 0.38.10
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 +147 -0
- package/README.md +23 -8
- package/dist/index.js +899 -297
- package/package.json +3 -3
- package/skills/plitzi-cli/SKILL.md +10 -4
- package/skills/plitzi-cli/reference/projects.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.10",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"description": "Command line for Plitzi: scaffold a project that renders a space, a plugin package, or an element of your own.",
|
|
6
6
|
"files": [
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@plitzi/sdk-authoring": "0.38.
|
|
24
|
+
"@plitzi/sdk-authoring": "0.38.10",
|
|
25
25
|
"chalk": "^6.0.1",
|
|
26
26
|
"commander": "^15.0.0",
|
|
27
27
|
"esbuild": "^0.28.2",
|
|
28
28
|
"fflate": "^0.8.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@plitzi/sdk-shared": "0.38.
|
|
31
|
+
"@plitzi/sdk-shared": "0.38.10",
|
|
32
32
|
"@types/node": "^26.6.4",
|
|
33
33
|
"eslint": "^9.39.5",
|
|
34
34
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -4,9 +4,11 @@ description: >-
|
|
|
4
4
|
Use the Plitzi command line (@plitzi/cli, `plitzi …` or `npx @plitzi/cli …`) instead of hand-writing what it
|
|
5
5
|
generates: scaffold a project that renders a space, add plugins to it or build a plugin package, pack, upload and
|
|
6
6
|
install one, edit a space's functions, take a space on Plitzi out as a self-hosted project and back (`create --from`,
|
|
7
|
-
`space pull`, `space push`),
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
`space pull`, `space push`), check a project (`doctor`) or how its space's source is written (`space lint`), and
|
|
8
|
+
write a report to Plitzi of what broke, misled or cost time (`feedback`). Use whenever the task is to start a Plitzi
|
|
9
|
+
project, create or change a plugin, pack, upload or install one, pull/push/try a space's functions, move a space to a
|
|
10
|
+
server of its own and back, work out which space the CLI is connected to — or when the person asks for a report,
|
|
11
|
+
feedback or a list of what went wrong with Plitzi.
|
|
10
12
|
---
|
|
11
13
|
|
|
12
14
|
# The Plitzi CLI
|
|
@@ -31,11 +33,15 @@ npx plitzi feedback # a report to Plitzi, for the pe
|
|
|
31
33
|
## Running it as an agent
|
|
32
34
|
|
|
33
35
|
- **Which check.** All of it before you finish: `verify` — only what fails is printed. The space alone: `npm run
|
|
34
|
-
author`; a page: `page check`. The project around them: `doctor`, before `space push`.
|
|
36
|
+
author`; a page: `page check`. The project around them: `doctor`, before `space push`. Pages for signed-in visitors
|
|
37
|
+
are checked as the account `.env` names (`PLITZI_CHECK_USER`, `PLITZI_CHECK_PASSWORD`); `verify` says when none is.
|
|
35
38
|
- **`create` never decides for the person.** With nobody at the terminal it writes nothing and prints each choice as a
|
|
36
39
|
question: ask the user, then run again with their answers as flags. Never guess them.
|
|
37
40
|
- **Signing in happens in the browser** (`login`, `space use`, a first `plugin upload`): tell the person a tab is waiting.
|
|
38
41
|
- **One space at a time** — the one `whoami --json` names; `plitzi space use` switches it.
|
|
42
|
+
- **A report to Plitzi** — the person asks for a report, feedback, the bugs found or what cost time: `npx plitzi
|
|
43
|
+
feedback` (`--previous <link>` continues an earlier one). It reads the versions and `doctor` itself and writes the
|
|
44
|
+
page; fill it and publish it as its brief says, rather than a report of your own making.
|
|
39
45
|
- **Read stdout, exit code and stderr apart.** The answer is on stdout (`--json`: one line); exit 1 means it did not do
|
|
40
46
|
what was asked. A refusal says what to change: change it — the same refusal twice says to stop and ask.
|
|
41
47
|
|
|
@@ -19,7 +19,7 @@ What a project gives you, so you use it rather than rebuild it:
|
|
|
19
19
|
| `npx plitzi element where <id\|class\|words>` | where the code writes an element: file:line and the call — edit it there, not the files around it. `npx plitzi element edit <id> --set content="…"` writes an attribute in it, `remove <id>` takes it out, `move <id> --before <id>` reorders it — each checked |
|
|
20
20
|
| `check -- /path --width 1440,390` | whether a page is whole, in text: elements on screen, overflow, console, refused requests, failed flows, a binding its data lacks; `--state`, `--element <id>`: what it holds; `--ssr`: SSR misses; `--as <user>`; `--json` |
|
|
21
21
|
| `npx plitzi page import <url>` | a page the user owns, as a start: tokens, its blocks' layout, lists as `data/*.json` — never the words. **Only when the user asks**; a site not on this machine needs `--account`: ask first |
|
|
22
|
-
| `shot -- /path --width 390 --scheme dark` | a picture of one page — `--clip <element>` one element, `--frames 4` what moves, `--compare <url>` what differs from another site |
|
|
22
|
+
| `shot -- /path --width 390 --scheme dark` | a picture of one page — `--clip <element>` one element, `--frames 4` what moves (`--from load`: as the page arrives), `--steps "click a; wait 300; frames 6 150; shot"` a whole interaction, `--compare <url>` what differs from another site, `--as <user>` signed in (said, when the page sent it elsewhere) |
|
|
23
23
|
| `visual` | a browser asserts every element the space names is visible |
|
|
24
24
|
| `typecheck`, `lint`, `format` | before calling a change done |
|
|
25
25
|
|