@verentis/cli 0.2.30 → 0.2.32
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 +95 -15
- package/dist/index.js +2042 -1086
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -53,31 +53,88 @@ and retained user data are never rolled back. A Failed exact target can be recov
|
|
|
53
53
|
a new displayed preview and explicit decision; uncertain in-flight records need investigation.
|
|
54
54
|
External-processing capability consent remains separate from installation/signature proof.
|
|
55
55
|
|
|
56
|
-
`validate`, `pack` and manifest loading accept
|
|
56
|
+
`validate`, `pack` and manifest loading accept exact versions, version ranges and `latest`:
|
|
57
57
|
|
|
58
58
|
```yaml
|
|
59
59
|
spec:
|
|
60
60
|
dependencies:
|
|
61
61
|
- package: verentis/accounting
|
|
62
|
-
version: 1.0.0
|
|
62
|
+
version: 1.0.0 # exact
|
|
63
63
|
- package: verentis/canvas
|
|
64
|
-
version: 1.0.0
|
|
65
|
-
- package: verentis/crm
|
|
66
|
-
version: 1.0.0
|
|
64
|
+
version: ^1.2 # range: ^1.2, ~1.2.3, ">=1.2.0 <2.0.0", 1.x, 1.2.*, *
|
|
65
|
+
- package: verentis/crm@latest # shorthand publisher/name@<range|latest|exact>
|
|
67
66
|
optional: true
|
|
67
|
+
- package: verentis/docs # no version = latest
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
Ranges use npm semver syntax with up to four space-separated comparators; `||`, hyphen ranges
|
|
71
|
+
(`1.0.0 - 2.0.0`) and a `v` prefix are rejected. Declaring the version both in the shorthand and in
|
|
72
|
+
`version` is an error. `pack` normalises every dependency to `{ package, version }` in the packed
|
|
73
|
+
manifest (a missing version becomes `latest`); the Marketplace resolves ranges at install time.
|
|
74
|
+
|
|
70
75
|
CRM and Accounting each declare Canvas as required. Script-bearing packages declare
|
|
71
|
-
`spec.scripts`, `spec.engine: verentis/server-scripts` and the corresponding required
|
|
76
|
+
`spec.scripts`, `spec.engine: verentis/server-scripts` and the corresponding required
|
|
72
77
|
engine dependency. Each dependency permits only `package`, `version`, optional `install-path`
|
|
73
|
-
and boolean `optional`;
|
|
78
|
+
and boolean `optional`; duplicate/noncanonical identities and traversal are rejected.
|
|
74
79
|
Optional packages are never installed implicitly.
|
|
75
80
|
|
|
81
|
+
## Package types
|
|
82
|
+
|
|
83
|
+
`kind` names the package type. The known types come from the Marketplace's package type
|
|
84
|
+
registry, bundled with the CLI in `src/vpkg/package-types.json` (refresh it from a platform checkout
|
|
85
|
+
with `npm run sync:package-types -- [path/to/platform]`): `Application`, `ExecutionEngine`,
|
|
86
|
+
`Agent`, `Skill`, `Tool`, `Bundle` and `Theme`. Lookup accepts the type name or an alias in any
|
|
87
|
+
case or punctuation (`engine`, `execution-engine`, `theme`). When a manifest uses a type this CLI
|
|
88
|
+
does not know, `validate`/`pack` fetch the current registry once from `GET /v1/package-types` and
|
|
89
|
+
cache it in `~/.verentis/package-types.json` (`publish` refreshes it too); any failure falls back to
|
|
90
|
+
the bundled list. Set `VERENTIS_PACKAGE_TYPES_CACHE=0` to use only the bundled registry.
|
|
91
|
+
|
|
92
|
+
In a project directory the manifest is `manifest.yaml`, or a single `<name>.<suffix>.yaml` whose suffix
|
|
93
|
+
is a registry media slug or alias (`app`, `application`, `engine`, `agent`, `skill`, `tool`, `bundle`,
|
|
94
|
+
`theme`, plus `policy`), for example `wholesale-theme.theme.yaml`. `manifest.yaml` wins when present;
|
|
95
|
+
otherwise more than one typed manifest in the directory is an error.
|
|
96
|
+
|
|
97
|
+
Validation follows the type's profile: application-only sections (`spec.launch`, `spec.splash`,
|
|
98
|
+
`spec.messages`, `spec.actor`, `spec.collaboration`, hosted-backend capabilities) are rejected for
|
|
99
|
+
other types, as are the spec fields a type forbids (for example `spec.entry` or
|
|
100
|
+
`spec.dependencies` on a Theme).
|
|
101
|
+
|
|
102
|
+
`metadata.tags` is an optional list of up to 10 unique lowercase slugs (`a-z`, `0-9`, single
|
|
103
|
+
hyphens, at most 32 characters each), e.g. `tags: [branding, dark-mode]`.
|
|
104
|
+
|
|
105
|
+
## Theme packages
|
|
106
|
+
|
|
107
|
+
A `Theme` replaces the workspace theme. `verentis init my-theme --type theme` scaffolds a manifest,
|
|
108
|
+
a starter `theme/theme.css` (the default token list) and placeholder SVG artwork:
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
kind: Theme
|
|
112
|
+
spec:
|
|
113
|
+
assets:
|
|
114
|
+
theme.css: theme/theme.css
|
|
115
|
+
logo.light: theme/logo-light.svg
|
|
116
|
+
favicon: theme/favicon.svg
|
|
117
|
+
apple-touch-icon: theme/apple-touch-icon.png
|
|
118
|
+
packaging:
|
|
119
|
+
files: ["theme/*"]
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Allowed asset names: `theme.css`, `background`, `background.dark`, `logo.light`, `logo.dark`,
|
|
123
|
+
`mark.light`, `mark.dark`, `favicon`, `apple-touch-icon`. `pack` expands each asset into a managed
|
|
124
|
+
`spec.install` entry (`to: /.theme/<asset>`, with its MIME type); themes may not install anywhere
|
|
125
|
+
else. The CLI enforces the Marketplace rules before packing:
|
|
126
|
+
|
|
127
|
+
- `theme.css`: UTF-8, at most 64 KiB, no `@import`, `expression(`, `behavior:`, `javascript:` or
|
|
128
|
+
CSS escapes; `url()` only for `data:image/…` or `/_theme/<asset>`.
|
|
129
|
+
- Images: PNG, JPEG, WebP or SVG, at most 1 MiB each (backgrounds 2 MiB), 4 MiB in total;
|
|
130
|
+
`apple-touch-icon` must be PNG. SVGs may not contain scripts, event-handler attributes,
|
|
131
|
+
`<foreignObject>` or references other than `#fragments` and `data:image` URLs.
|
|
132
|
+
- `packaging.encryption: required` is rejected — theme assets are public.
|
|
133
|
+
|
|
76
134
|
## Agent, Skill and Tool packages
|
|
77
135
|
|
|
78
|
-
`
|
|
79
|
-
|
|
80
|
-
These packages install under a workspace content path (usually `/bundles/{name}`), do not
|
|
136
|
+
The marketplace content package types `Agent`, `Skill` and `Tool` (see
|
|
137
|
+
[Package types](#package-types)) install under a workspace content path (usually `/bundles/{name}`), do not
|
|
81
138
|
host a backend service, and may be sealed like other packages. The CLI rejects hosted-backend
|
|
82
139
|
declarations on non-Application manifests to match Marketplace upload admission.
|
|
83
140
|
|
|
@@ -96,7 +153,8 @@ server. The Tool sample shows an external MCP server fixture with a credential r
|
|
|
96
153
|
|
|
97
154
|
## Workspace policy manifests
|
|
98
155
|
|
|
99
|
-
Policy manifests (`kind: Policy`)
|
|
156
|
+
Policy manifests (`kind: Policy`) are not marketplace packages; `verentis validate` accepts them
|
|
157
|
+
alongside the package types. They can be exported, reviewed, dry-run and applied through the
|
|
100
158
|
workspace Policy API:
|
|
101
159
|
|
|
102
160
|
```bash
|
|
@@ -194,7 +252,7 @@ verentis api POST /v1/things --body @thing.json --workspace <id> --scope some.sc
|
|
|
194
252
|
verentis files ls /scripts
|
|
195
253
|
verentis files cat /data/input.json
|
|
196
254
|
verentis files upload ./local-dir /scripts # recursive
|
|
197
|
-
verentis files upload build.zip /apps --extract # server-side
|
|
255
|
+
verentis files upload build.zip /apps --extract # always extract server-side (even without a manifest)
|
|
198
256
|
verentis files download /data/report.json
|
|
199
257
|
verentis files mv /a.txt /archive/a.txt
|
|
200
258
|
verentis files rm /tmp-dir --recursive
|
|
@@ -202,6 +260,28 @@ verentis files rm /tmp-dir --recursive
|
|
|
202
260
|
|
|
203
261
|
All file commands take `--branch` (default `main`) and `--workspace`.
|
|
204
262
|
|
|
263
|
+
### Archives
|
|
264
|
+
|
|
265
|
+
Folders and files with children download as an archive that carries a `.verentis-manifest.json`
|
|
266
|
+
(hierarchy, MIME types, path metadata, SHA-256 hashes). Uploading such an archive recreates the tree:
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
verentis files download /data/x --archive -o x.zip # or --format zip|tgz
|
|
270
|
+
verentis files upload x.zip /data/restore # imports into /data/restore/x, waits, shows progress
|
|
271
|
+
verentis files upload x.zip /data/restore --conflict reject --no-wait # prints the job id
|
|
272
|
+
verentis files import-status <job-id> [--branch main] [--wait] [--json]
|
|
273
|
+
verentis files upload other.zip /data/ # zip without manifest → stored as /data/other.zip
|
|
274
|
+
verentis files upload x.zip /data/ --as-zip # never import; store the zip as a file
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
- A `.zip` with a root `.verentis-manifest.json` is detected by the server and imported as a
|
|
278
|
+
background job (`202`); the remote path is the destination folder. The CLI polls
|
|
279
|
+
`GET /v1/archive-imports/{id}` (1 s, backing off to 5 s), reports `processed/total` and failures on
|
|
280
|
+
stderr, and exits non-zero (printing the job's errors) when the import ends `Failed` or `Cancelled`.
|
|
281
|
+
- `--as-zip` sends `X-Auto-Extract: false`, `--extract` sends `X-Auto-Extract: true`; without either the
|
|
282
|
+
header is omitted and the server auto-detects. `--conflict merge|reject` sets `X-Archive-Conflict`.
|
|
283
|
+
- Recursive directory uploads always store `.zip` files verbatim.
|
|
284
|
+
|
|
205
285
|
## Executions
|
|
206
286
|
|
|
207
287
|
```bash
|
|
@@ -303,7 +383,7 @@ spec:
|
|
|
303
383
|
splash: ./workspace-splash.svg
|
|
304
384
|
```
|
|
305
385
|
|
|
306
|
-
`verentis init <name> --
|
|
386
|
+
`verentis init <name> --type application` includes a commented launch template.
|
|
307
387
|
`verentis validate` verifies that `launch` is an object, `pinnable` is used only
|
|
308
388
|
with `enabled`, the selected entry-point id exists, and the launch resolves to
|
|
309
389
|
an absolute HTTP(S) iframe URL. Splash values must be non-empty URL strings. An
|
|
@@ -343,7 +423,7 @@ verentis publisher update --description "Tools for data teams" --website https:/
|
|
|
343
423
|
verentis publisher logo set ./brand/logo.svg
|
|
344
424
|
verentis publisher logo remove
|
|
345
425
|
verentis keygen # Ed25519 signing key + register public half
|
|
346
|
-
verentis init my-app --
|
|
426
|
+
verentis init my-app --type application # or --type engine | bundle | theme
|
|
347
427
|
verentis pack # signed .vpkg (--encrypt seals the payload)
|
|
348
428
|
verentis pack . --env production # writes my-app-production-<version>.vpkg
|
|
349
429
|
verentis pack . --bump-version # increments metadata.version.patch in the manifest
|
|
@@ -354,7 +434,7 @@ verentis package deprecate my-app --message "use my-app-2"
|
|
|
354
434
|
verentis package visibility set my-app Private
|
|
355
435
|
verentis package visibility grant my-app <workspaceId>
|
|
356
436
|
verentis package stats my-app
|
|
357
|
-
verentis search "image viewer" --
|
|
437
|
+
verentis search "image viewer" --type Application
|
|
358
438
|
verentis install acme/my-app --workspace <id>
|
|
359
439
|
verentis installs --workspace <id>
|
|
360
440
|
verentis uninstall <installationId> --workspace <id>
|