@verentis/cli 0.2.24 → 0.2.26
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 +117 -5
- package/dist/index.js +441 -63
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,110 @@ verentis update --to 0.3.0 # install a specific version
|
|
|
25
25
|
`VERENTIS_NO_UPDATE_CHECK=1` (it is also skipped in CI, on non-interactive output, and with `--json`).
|
|
26
26
|
Point `VERENTIS_UPDATE_REGISTRY` at a mirror if you install from a private registry.
|
|
27
27
|
|
|
28
|
+
## Consented dependency installation
|
|
29
|
+
|
|
30
|
+
For a package declaring dependencies, `install` first prints the complete required graph and
|
|
31
|
+
does **not** install anything. Review every publisher-qualified package, concrete version/digest,
|
|
32
|
+
mode/branch/path, permissions/full manifest, and existing-install reuse or Failed-target recovery:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
verentis install verentis/invoicing 1.0.0 --workspace <workspace-id>
|
|
36
|
+
# Copy the operation ID and exact fingerprint from the displayed preview:
|
|
37
|
+
verentis install verentis/invoicing --workspace <workspace-id> \
|
|
38
|
+
--operation <operation-id> --consent <fingerprint>
|
|
39
|
+
verentis install-result <operation-id> --workspace <workspace-id>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use signed-in **user** credentials for graph consent; API keys and delegated/service tokens
|
|
43
|
+
cannot approve a graph. Consent is single-use and expires after 15 minutes. A changed graph,
|
|
44
|
+
permission, live archive/signing proof, visibility/entitlement or installed state rejects the
|
|
45
|
+
preview. `--operation` / `--consent` refer exclusively to that stored graph: they do not create a
|
|
46
|
+
new preview or change its destinations. There is no `--yes` expansion or automatic accepted
|
|
47
|
+
install retry. After HTTP failure or a lost response, use `install-result`, not the same consent.
|
|
48
|
+
|
|
49
|
+
Dependency-free packages preserve the existing install/in-place replacement behavior.
|
|
50
|
+
`--preview` opts them into the same explicit graph review. Required declarations cannot bypass
|
|
51
|
+
consent through a legacy API or update. Installation is not atomic; completed/shared dependencies
|
|
52
|
+
and retained user data are never rolled back. A Failed exact target can be recovered only with
|
|
53
|
+
a new displayed preview and explicit decision; uncertain in-flight records need investigation.
|
|
54
|
+
External-processing capability consent remains separate from installation/signature proof.
|
|
55
|
+
|
|
56
|
+
`validate`, `pack` and manifest loading accept this exact-pin contract:
|
|
57
|
+
|
|
58
|
+
```yaml
|
|
59
|
+
spec:
|
|
60
|
+
dependencies:
|
|
61
|
+
- package: verentis/accounting
|
|
62
|
+
version: 1.0.0
|
|
63
|
+
- package: verentis/canvas
|
|
64
|
+
version: 1.0.0
|
|
65
|
+
- package: verentis/crm
|
|
66
|
+
version: 1.0.0
|
|
67
|
+
optional: true
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
CRM and Accounting each declare Canvas as required. Script-bearing packages declare
|
|
71
|
+
`spec.scripts`, `spec.engine: verentis/server-scripts` and the corresponding required exact
|
|
72
|
+
engine dependency. Each dependency permits only `package`, `version`, optional `install-path`
|
|
73
|
+
and boolean `optional`; ranges, duplicate/noncanonical identities and traversal are rejected.
|
|
74
|
+
Optional packages are never installed implicitly.
|
|
75
|
+
|
|
76
|
+
## Agent, Skill and Tool packages
|
|
77
|
+
|
|
78
|
+
`verentis validate` and `verentis pack` accept the marketplace content package kinds
|
|
79
|
+
`Agent`, `Skill` and `Tool` in addition to `Application`, `ExecutionEngine` and `Bundle`.
|
|
80
|
+
These packages install under a workspace content path (usually `/bundles/{name}`), do not
|
|
81
|
+
host a backend service, and may be sealed like other packages. The CLI rejects hosted-backend
|
|
82
|
+
declarations on non-Application manifests to match Marketplace upload admission.
|
|
83
|
+
|
|
84
|
+
Sample manifests live under `samples/`:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
verentis validate samples/agent
|
|
88
|
+
verentis validate samples/skill
|
|
89
|
+
verentis validate samples/tool # external MCP fixture
|
|
90
|
+
verentis validate samples/application-tools
|
|
91
|
+
verentis pack samples/agent --publisher verentis --no-sign
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The Application sample shows `spec.tools` bindings for an app backend and an app-owned MCP
|
|
95
|
+
server. The Tool sample shows an external MCP server fixture with a credential reference.
|
|
96
|
+
|
|
97
|
+
## Workspace policy manifests
|
|
98
|
+
|
|
99
|
+
Policy manifests (`kind: Policy`) can be exported, reviewed, dry-run and applied through the
|
|
100
|
+
workspace Policy API:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
verentis policy export agent --workspace <workspace-id> -o agent.policy.yaml
|
|
104
|
+
verentis policy apply agent.policy.yaml --workspace <workspace-id> --dry-run
|
|
105
|
+
verentis policy apply agent.policy.yaml --workspace <workspace-id> --expected-revision 3
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
If `--expected-revision` is omitted, the CLI exports the current revision first (missing policy
|
|
109
|
+
= revision `0`) and sends that revision with the apply request. A `409` means the policy changed:
|
|
110
|
+
export again, reapply your edits, and retry. Dry runs require `fabric.policy.read`; real applies
|
|
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.
|
|
131
|
+
|
|
28
132
|
## Sign in
|
|
29
133
|
|
|
30
134
|
```bash
|
|
@@ -56,6 +160,13 @@ verentis context # show current defaults
|
|
|
56
160
|
verentis whoami # identity, account, publisher
|
|
57
161
|
```
|
|
58
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
|
+
|
|
59
170
|
## Admin
|
|
60
171
|
|
|
61
172
|
```bash
|
|
@@ -257,9 +368,9 @@ marketplace install dialog. This upgrades or reinstalls an installed package and
|
|
|
257
368
|
|
|
258
369
|
### Publisher publishing from GitHub Actions
|
|
259
370
|
|
|
260
|
-
Register a GitHub
|
|
261
|
-
environment. Bind it to the repository
|
|
262
|
-
|
|
371
|
+
Register a GitHub pipeline trust on your publisher in each target Verentis
|
|
372
|
+
environment. Bind it to the repository and a protected GitHub environment; restrict
|
|
373
|
+
which branches may deploy with the environment's deployment branch rules. Configure the job with `permissions: { contents: read, id-token: write }`,
|
|
263
374
|
the matching protected environment, and these environment variables:
|
|
264
375
|
|
|
265
376
|
```text
|
|
@@ -269,8 +380,9 @@ VERENTIS_GITHUB_OIDC_AUDIENCE=https://<target-api>
|
|
|
269
380
|
|
|
270
381
|
The audience must equal the exact target API HTTPS origin (no trailing slash).
|
|
271
382
|
When `VERENTIS_GITHUB_OIDC_AUDIENCE` is set, `verentis publish` requests a
|
|
272
|
-
short-lived GitHub Actions OIDC assertion
|
|
273
|
-
|
|
383
|
+
short-lived GitHub Actions OIDC assertion and presents it to `/connect/token`
|
|
384
|
+
using the OAuth 2.0 JWT bearer grant (RFC 7523) for a publishing-scoped access
|
|
385
|
+
token. The marketplace resolves the publisher from the trust bound to that client. It never stores the
|
|
274
386
|
assertion or uses a configured human API key as a fallback. The job must also
|
|
275
387
|
provide a **separate** Ed25519 package-signing key to `verentis pack --key <name>`;
|
|
276
388
|
verify that the `.vpkg` is signed before publishing. Hosted-service client
|