@verentis/cli 0.2.31 → 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 +72 -14
- package/dist/index.js +1220 -414
- 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
|
|
@@ -325,7 +383,7 @@ spec:
|
|
|
325
383
|
splash: ./workspace-splash.svg
|
|
326
384
|
```
|
|
327
385
|
|
|
328
|
-
`verentis init <name> --
|
|
386
|
+
`verentis init <name> --type application` includes a commented launch template.
|
|
329
387
|
`verentis validate` verifies that `launch` is an object, `pinnable` is used only
|
|
330
388
|
with `enabled`, the selected entry-point id exists, and the launch resolves to
|
|
331
389
|
an absolute HTTP(S) iframe URL. Splash values must be non-empty URL strings. An
|
|
@@ -365,7 +423,7 @@ verentis publisher update --description "Tools for data teams" --website https:/
|
|
|
365
423
|
verentis publisher logo set ./brand/logo.svg
|
|
366
424
|
verentis publisher logo remove
|
|
367
425
|
verentis keygen # Ed25519 signing key + register public half
|
|
368
|
-
verentis init my-app --
|
|
426
|
+
verentis init my-app --type application # or --type engine | bundle | theme
|
|
369
427
|
verentis pack # signed .vpkg (--encrypt seals the payload)
|
|
370
428
|
verentis pack . --env production # writes my-app-production-<version>.vpkg
|
|
371
429
|
verentis pack . --bump-version # increments metadata.version.patch in the manifest
|
|
@@ -376,7 +434,7 @@ verentis package deprecate my-app --message "use my-app-2"
|
|
|
376
434
|
verentis package visibility set my-app Private
|
|
377
435
|
verentis package visibility grant my-app <workspaceId>
|
|
378
436
|
verentis package stats my-app
|
|
379
|
-
verentis search "image viewer" --
|
|
437
|
+
verentis search "image viewer" --type Application
|
|
380
438
|
verentis install acme/my-app --workspace <id>
|
|
381
439
|
verentis installs --workspace <id>
|
|
382
440
|
verentis uninstall <installationId> --workspace <id>
|