@plitzi/cli 0.38.2 → 0.38.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 +127 -0
- package/dist/index.js +707 -103
- package/package.json +3 -3
- package/skills/plitzi-cli/SKILL.md +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.3",
|
|
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.3",
|
|
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.3",
|
|
32
32
|
"@types/node": "^26.6.4",
|
|
33
33
|
"eslint": "^9.39.5",
|
|
34
34
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -26,7 +26,8 @@ npx @plitzi/cli pack plugin # a plugin built, and zipped the
|
|
|
26
26
|
npx @plitzi/cli upload plugin # that zip, on the space you work in, and installed there
|
|
27
27
|
npx @plitzi/cli whoami # who the CLI is signed in as, and the space it works in
|
|
28
28
|
npx @plitzi/cli data describe public/data/products.json # a JSON file's fields, types and one row — not read whole
|
|
29
|
-
npx @plitzi/cli
|
|
29
|
+
npx @plitzi/cli upgrade # the project up to this CLI: files, package.json, skills, renames (--write)
|
|
30
|
+
npx @plitzi/cli upgrade skills --write # only one part: files | packages | skills | renames
|
|
30
31
|
npx @plitzi/cli explain navigate # what a name means: element, step, trigger, problem or suggestion code (--list steps)
|
|
31
32
|
npx @plitzi/cli functions pull # the space's functions (its own server code) into functions/
|
|
32
33
|
npx @plitzi/cli functions push # functions/ back as the space's draft, built and checked
|
|
@@ -38,6 +39,10 @@ npx @plitzi/cli functions dev feed.read --watch # the same, fr
|
|
|
38
39
|
|
|
39
40
|
## Running it as an agent
|
|
40
41
|
|
|
42
|
+
- **After the SDK moves, `upgrade`.** It shows the CLI's files, scripts, versions and skills as they should be now, and
|
|
43
|
+
every renamed name at its line. `--write` replaces what nobody changed, merges `package.json` and installs; a file
|
|
44
|
+
you changed comes as a diff — `--take <file>` once read.
|
|
45
|
+
|
|
41
46
|
- **`create` never decides for the person.** Three choices shape a project — package manager, `--mode`
|
|
42
47
|
(`server`: SSR + RSC on a Node tier, `client`: browser only) and `--source` (`local`: the space lives in the project,
|
|
43
48
|
`cloud`: it lives in Plitzi). With nobody at the terminal it writes NOTHING and prints each missing choice as a
|
|
@@ -82,7 +87,7 @@ What a project gives you, so you use it rather than rebuild it:
|
|
|
82
87
|
| `npx plitzi fix` | what `author` reports that has one fix, as a diff of your source; `--write` writes it, formatted, and keeps it only if the space then authors with it gone and nothing new |
|
|
83
88
|
| `check -- /path --width 1440,390` | whether a page is whole, in text: elements on screen, overflow, console, refused requests, failed flows; `--state` and `--element <id>` say what it holds; `--json` |
|
|
84
89
|
| `npx plitzi import <url>` | a page the user owns, measured as a place to start from: `tokens.ts` (colours light and dark, corners, shadows, Google fonts), `outline.ts` (its blocks and their layout per breakpoint), its repeated lists as `data/*.json`, screenshots per width, and `IMPORT.md` saying what was not carried over. Never the words. Only a site whose domain the user verified on one of their spaces (`_plitzi` TXT, under Domains in the dashboard), or one served from this machine — anything else is refused |
|
|
85
|
-
| `shot -- /path --width 390 --scheme dark` | a picture of one page — `--frames 4`
|
|
90
|
+
| `shot -- /path --width 390 --scheme dark` | a picture of one page — `--clip <element>` one element, `--scroll-to <element>` / `--viewport` the screen there, `--frames 4` what moves, `--compare <url>` how much differs from another site by section; refused if the port is another project's |
|
|
86
91
|
| `visual` | a browser asserts every element the space names is visible |
|
|
87
92
|
| `typecheck`, `lint`, `format` | before calling a change done |
|
|
88
93
|
|