@abraca/plugin-cli 2.4.0 → 2.5.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/README.md +26 -0
- package/package.json +5 -5
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @abraca/plugin-cli
|
|
2
|
+
|
|
3
|
+
The `abra-plugin` CLI — validate, pack, and preview-scan an Abracadabra plugin **locally** before submitting it to the registry. Validation is delegated to `@abraca/schema`; dependency-free (`node:` builtins only).
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
Full, code-derived documentation lives in [`docs/`](docs/) — the three commands, their
|
|
8
|
+
inputs/outputs, and the exact exit-code contract. It is the source of truth.
|
|
9
|
+
|
|
10
|
+
## Commands
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
abra-plugin validate [--quiet] [path] # schema-validate manifest.json
|
|
14
|
+
abra-plugin pack [--dry-run] [path] # recompute integrity, rewrite manifest
|
|
15
|
+
abra-plugin preview-scan [path] # capability/security regex scan
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
All default the path to `./manifest.json`.
|
|
19
|
+
|
|
20
|
+
::
|
|
21
|
+
|
|
22
|
+
> **Exit codes:** `0` ok · `1` warnings (preview-scan) / still-invalid after pack · `2` read/parse error or hard validation failure. `pack` writes `integrity` as `sha256-<hex>` — note the `@abraca/plugin` manifest type documents bare hex (the host enforces). See [`docs/1.commands/`](docs/1.commands/1.validate-pack-preview-scan.md).
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
MIT.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abraca/plugin-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "CLI for Abracadabra plugin authors — validate, pack, and preview-scan plugins locally before submission.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"zod": "^4.0.0",
|
|
32
|
-
"@abraca/plugin": "2.
|
|
33
|
-
"@abraca/schema": "2.
|
|
32
|
+
"@abraca/plugin": "2.5.0",
|
|
33
|
+
"@abraca/schema": "2.5.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "latest",
|
|
37
37
|
"zod": "^4.3.6",
|
|
38
|
-
"@abraca/plugin": "2.
|
|
39
|
-
"@abraca/schema": "2.
|
|
38
|
+
"@abraca/plugin": "2.5.0",
|
|
39
|
+
"@abraca/schema": "2.5.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"test": "node --no-warnings --conditions=source --experimental-transform-types --test 'tests/*.test.ts'"
|