@verentis/cli 0.2.24 → 0.2.25

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 CHANGED
@@ -25,6 +25,91 @@ 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
+
28
113
  ## Sign in
29
114
 
30
115
  ```bash
@@ -257,9 +342,9 @@ marketplace install dialog. This upgrades or reinstalls an installed package and
257
342
 
258
343
  ### Publisher publishing from GitHub Actions
259
344
 
260
- Register a GitHub federated credential on your publisher in each target Verentis
261
- environment. Bind it to the repository, protected GitHub environment, permitted
262
- ref and audience. Configure the job with `permissions: { contents: read, id-token: write }`,
345
+ Register a GitHub pipeline trust on your publisher in each target Verentis
346
+ environment. Bind it to the repository and a protected GitHub environment; restrict
347
+ which branches may deploy with the environment's deployment branch rules. Configure the job with `permissions: { contents: read, id-token: write }`,
263
348
  the matching protected environment, and these environment variables:
264
349
 
265
350
  ```text
@@ -269,8 +354,9 @@ VERENTIS_GITHUB_OIDC_AUDIENCE=https://<target-api>
269
354
 
270
355
  The audience must equal the exact target API HTTPS origin (no trailing slash).
271
356
  When `VERENTIS_GITHUB_OIDC_AUDIENCE` is set, `verentis publish` requests a
272
- short-lived GitHub Actions OIDC assertion, exchanges it for a publisher-scoped
273
- Verentis token, and resolves the publisher from that token. It never stores the
357
+ short-lived GitHub Actions OIDC assertion and presents it to `/connect/token`
358
+ using the OAuth 2.0 JWT bearer grant (RFC 7523) for a publishing-scoped access
359
+ token. The marketplace resolves the publisher from the trust bound to that client. It never stores the
274
360
  assertion or uses a configured human API key as a fallback. The job must also
275
361
  provide a **separate** Ed25519 package-signing key to `verentis pack --key <name>`;
276
362
  verify that the `.vpkg` is signed before publishing. Hosted-service client