@verentis/cli 0.2.25 → 0.2.27
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 +76 -0
- package/dist/index.js +477 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -109,6 +109,25 @@ If `--expected-revision` is omitted, the CLI exports the current revision first
|
|
|
109
109
|
= revision `0`) and sends that revision with the apply request. A `409` means the policy changed:
|
|
110
110
|
export again, reapply your edits, and retry. Dry runs require `fabric.policy.read`; real applies
|
|
111
111
|
require `fabric.policy.update`.
|
|
112
|
+
## Native collaboration declarations
|
|
113
|
+
|
|
114
|
+
An Application may request the versioned native scene mode separately from WOPI:
|
|
115
|
+
|
|
116
|
+
```yaml
|
|
117
|
+
spec:
|
|
118
|
+
collaboration:
|
|
119
|
+
mode: native-scene-v1
|
|
120
|
+
capabilities: [file:read, file:write]
|
|
121
|
+
permissions: [node.file.read, node.node.create]
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Development validation and packing reject unknown modes, extra declaration keys,
|
|
125
|
+
non-Application declarations and combined native/WOPI declarations. The signed
|
|
126
|
+
declaration is a capability request, not authority: the platform must verify the
|
|
127
|
+
installed manifest and explicit administrator consent, select the document in the
|
|
128
|
+
host, and authorize every operation. It does not enable a native backend by itself;
|
|
129
|
+
the corresponding platform admission and fenced persistence prerequisites must
|
|
130
|
+
be delivered before installation can activate native editing.
|
|
112
131
|
|
|
113
132
|
## Sign in
|
|
114
133
|
|
|
@@ -141,6 +160,13 @@ verentis context # show current defaults
|
|
|
141
160
|
verentis whoami # identity, account, publisher
|
|
142
161
|
```
|
|
143
162
|
|
|
163
|
+
Workspace/account flags and defaults use Security's generalized `resourceId`
|
|
164
|
+
token target; the CLI does not send the legacy `workspaceId`/`accountId` selectors
|
|
165
|
+
to token exchange. Explicit Node targets also specify `resourceType: Node` and,
|
|
166
|
+
when available, the workspace as `parentResourceId`. These context selectors do
|
|
167
|
+
not grant permissions: Security resolves the registered resource and authorizes
|
|
168
|
+
the requested scopes.
|
|
169
|
+
|
|
144
170
|
## Admin
|
|
145
171
|
|
|
146
172
|
```bash
|
|
@@ -389,6 +415,52 @@ The hero does not count toward that gallery limit, but it does count toward the
|
|
|
389
415
|
unique presentation images. README and changelog Markdown files are each limited to 1 MiB.
|
|
390
416
|
`verentis validate` checks these paths, formats and limits before publishing.
|
|
391
417
|
|
|
418
|
+
### Manifest icons
|
|
419
|
+
|
|
420
|
+
Icon fields (`metadata.icon`, `spec.entry-points[].icon`, `spec.entry-points[].mime-types[].icon`,
|
|
421
|
+
`spec.mime-types[].icon`, `spec.file-types[].icon`) accept:
|
|
422
|
+
|
|
423
|
+
- a relative SVG file path, resolved against the manifest directory (it must end in `.svg` and may not
|
|
424
|
+
escape the package directory): `icon: ./icons/app.svg`
|
|
425
|
+
- a reference into an optional top-level `icons:` map: `icon: "#doc"`
|
|
426
|
+
- inline SVG markup: `icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">…</svg>'`
|
|
427
|
+
|
|
428
|
+
```yaml
|
|
429
|
+
icons:
|
|
430
|
+
doc: ./icons/document.svg # file path or inline <svg> markup
|
|
431
|
+
spec:
|
|
432
|
+
file-types:
|
|
433
|
+
- pattern: "*.docx"
|
|
434
|
+
icon: "#doc"
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
SVGs must be UTF-8 with an `<svg>` root (an `<?xml ?>` declaration and comments may precede it), end
|
|
438
|
+
with `</svg>`, stay within 32 KiB each and 256 KiB of distinct markup per manifest, and must not contain
|
|
439
|
+
numeric character references (`&#`), `<!DOCTYPE>`/`<!ENTITY>`, `script`/`foreignObject`/`iframe`/
|
|
440
|
+
`object`/`embed`/`audio`/`video` elements, `on*=` handlers, `javascript:`/`vbscript:`/`data:text/html`
|
|
441
|
+
URLs, or external `href`/`xlink:href`/`url(...)` references. Declare a `viewBox` and prefer
|
|
442
|
+
`currentColor` without fixed width/height — icons render at 16–40px. When `metadata.icon` is absent
|
|
443
|
+
and `marketplace.logo` is a valid SVG, the logo is used as the app icon.
|
|
444
|
+
|
|
445
|
+
`verentis validate` and `verentis pack` report problems with the field path, for example
|
|
446
|
+
`spec.file-types[2].icon: ./icons/x.svg not found`. Iconify identifiers (`lucide:file-text`, `shapes`)
|
|
447
|
+
are legacy and only produce a warning; convert them with:
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
verentis icons migrate [dir] # *.app.yaml, *.engine.yaml and manifest.yaml in dir
|
|
451
|
+
verentis icons migrate --file my.app.yaml --dry-run
|
|
452
|
+
verentis icons migrate --iconify-api https://icons.internal.example # self-hosted Iconify API
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
`icons migrate` resolves each id (bare names map to `lucide:<name>`) from a locally installed
|
|
456
|
+
`@iconify-json/<prefix>` package when present, otherwise from the Iconify API
|
|
457
|
+
(`https://api.iconify.design`, override with `--iconify-api <url>` or `VERENTIS_ICONIFY_API`), and writes
|
|
458
|
+
it as a standalone SVG to `icons/<prefix>-<name>.svg` next to the manifest and rewrites the field to that path, preserving
|
|
459
|
+
the rest of the YAML. Ids that do not exist (e.g. `lucide:checklist`) are reported as errors, left
|
|
460
|
+
unchanged and make the command exit non-zero — replace them with your own SVG. Network failures
|
|
461
|
+
are reported per field in the same way. `verentis init` scaffolds `icons/app.svg` and references it
|
|
462
|
+
from `metadata.icon`.
|
|
463
|
+
|
|
392
464
|
## The `.vpkg` format
|
|
393
465
|
|
|
394
466
|
A gzip tarball: `manifest.yaml` + `files/**` payload + optional plaintext `catalog/**` presentation
|
|
@@ -426,6 +498,10 @@ Packing behaviour:
|
|
|
426
498
|
overrides the packed manifest version, and `--bump-version` increments the authored patch version.
|
|
427
499
|
`publish` without a file selects the highest-version `.vpkg` in the current directory. `validate`
|
|
428
500
|
accepts the same overlay selectors.
|
|
501
|
+
- Icons are inlined into the packed `manifest.yaml`: the top-level `icons:` map holds the validated SVG
|
|
502
|
+
markup keyed by the first 12 hex characters of its sha256, and every icon field becomes `"#<key>"`.
|
|
503
|
+
Legacy Iconify ids are left as-is. Source files are not modified; digests and signatures cover the
|
|
504
|
+
rewritten manifest.
|
|
429
505
|
- Marketplace files are selected independently of `packaging.files` and written to deterministic,
|
|
430
506
|
content-addressed `catalog/assets/**` and `catalog/docs/**` entries described by
|
|
431
507
|
`catalog/index.json` (schema version 1).
|