@openengio/cli 0.45.0 → 0.50.0

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
@@ -10,10 +10,10 @@ a cleared link suspect. Bounds independently answer `in`, `out`, `none`, `no-val
10
10
  Numeric bounds include their units. Text output from `objects-sdk readObject` also shows
11
11
  property values with units, using one additional catalogue read; `--json` retains the wire result.
12
12
 
13
- `openeng links clear <link> --version <v> --project <id> --ref <ref>` clears after review.
13
+ `openeng links clear <link> --version <v> --project <id> --ref <ref> --reason <text>` clears after review.
14
14
  For 1 to 100 links, list the ids and repeat `--version` once per link in matching order, for
15
15
  example `openeng links clear <link1> <link2> --version <v1> --version <v2> --project <id>
16
- --ref <ref>`. Each opaque upstream version comes from status and is a precondition; the clear is
16
+ --ref <ref> --reason <text>`. Each opaque upstream version comes from status and is a precondition; the clear is
17
17
  atomic. `upstream-changed` requires reading and reviewing again; `upstream-not-readable` requires
18
18
  upstream read access. Clearing records the person and time and leaves bounds unchanged. The edge's
19
19
  write rule governs clearing, with no organisation setting. The admitted actor classes are
@@ -21,6 +21,13 @@ person (a `user` token), `agent:apply` (an apply run token), `app:client` (a `cl
21
21
  service (a `service` token); `agent:explore` and `agent:types` are refused at admission. There is no object-agent
22
22
  clearing tool. An unknown outcome exits 5; recover by correlation before repeating a clear.
23
23
 
24
+ `--reason <text>` is required on `openeng attachment add`, `openeng links clear` and `openeng locks set`: write the
25
+ commit message for the change: one line under 72 characters saying what changed and why, then, after a blank line, what changed, why, what it affects downstream and what a reviewer should check. The command refuses a missing flag, a reason that is empty after
26
+ trimming white space and a reason that holds a NUL character or a lone UTF-16 surrogate, before any call, as a client refusal that
27
+ exits 2. The host writes the reason first in the save's commit message. The generic route commands require
28
+ `reason` in their `--input` JSON (`mutate`, `mutateBatch`, `executeVerb`, `promoteDraft`, `clearLinks`, `setObjectLock`);
29
+ a merge keeps its required `message`.
30
+
24
31
  `openeng branches impact <ref> --base <base> --project <id>` prints review, bounds and aggregate
25
32
  changes against the merge base, plus downstream reach to depth three and hidden counts. Both heads
26
33
  are pinned. Added and removed states identify new and deleted links; `head-moved` and `over-bound`
@@ -72,6 +79,7 @@ The installed package contains the bundled command and the skill. It carries no
72
79
  | `openeng demo seed --project <id> [--size standard\|full]` | plays a generic open-cycle gas turbine plant into a project the person may list; `standard` is the default size, and a repeat completes what is left | one listing, one catalogue read, four to publish the types when they are not yet published, then one per object and edge |
73
80
  | `openeng link <branch-diff\|project> --project <id> --ref <ref>`, `openeng link explore --project <id> --ref <ref> (--object <id> \| --object-set <id>)`, `openeng link <ontology\|change-set> --ref <ref>`, `openeng link <object\|type\|proposal\|app> <identifier> --project <id> --ref <ref>`, `openeng link app-page <appKey> <pageKey> --project <id> --ref <ref>`, `openeng link app-draft <appKey> --ref <ref>`, `openeng link organisation-page <page>` | prints the address of a page of the web application: the host's web origin joined to the page's path, built for the attached organisation; `--json` answers `{ link }`; a flag the page does not read or a branch or baseline outside `main` and `<projectId>/<branch>` is refused (exit 2) before any call; a branch must match `--project` when given. The command reads the branch or baseline and the page's object, catalogue type, app page or proposal before printing, and refuses a missing subject with no address; a host with no web origin is refused too. `openeng link --help` prints every form | one `readWebOrigin`, plus a branch or baseline read for a branch or a project page on main, plus the subject read for object, type, app, app-page, proposal or Explore’s seed; the reads run in parallel |
74
81
  | `openeng types draft open` | opens a change set on the attached organisation's namespace | one |
82
+ | `openeng projects rename --project <id> --name <text>` | renames the project; the name is sent as typed, only an empty name is refused, and a caller without `administer projects` on the project is told it was not found; prints `renamed project <id> to <name>`, and under `--json` the fields `projectId` and `name` | one |
75
83
  | `openeng projects create --name <text>` | creates a project in the organisation the session is attached to, under a minted idempotency key | one |
76
84
  | `openeng types list --project <id>` | lists the project's published types | one |
77
85
  | `openeng types draft current` | the attached organisation's open change set, or none | one |
@@ -83,7 +91,7 @@ The installed package contains the bundled command and the skill. It carries no
83
91
  | `openeng types draft try --type <key> --sample <file> [--change-set <id>]` | checks one sample instance, a JSON object of raw property values in the file, against the open change set's version of the type, with the check a write runs; it reads the open change set (the attached organisation's, or the one `--change-set` names) and writes nothing; exits 0 with `{ valid: true, violations: [] }` when the sample fits, and 4 with each violation's path and rule on standard output when it does not; a file that is unreadable, not JSON or not an object, no open change set, or a type key the change set does not hold or that names a verb type, is refused (exit 2) | two reads, one with `--change-set` |
84
92
  | `openeng types draft discard --change-set <id>` | discards the change set | one |
85
93
  | `openeng types draft accept --change-set <id> --revision <token>` | publishes the change set's types at the revision the person reviewed, under a minted idempotency key | one |
86
- | `openeng attachment add <object> <property> <file> --project <id> --ref <ref>` | uploads and saves | five |
94
+ | `openeng attachment add <object> <property> <file> --project <id> --ref <ref> --reason <text>` | uploads and saves | five |
87
95
  | `openeng attachment get <object> <property> [--out <path>] --project <id> --ref <ref>` | downloads and prints the written path | one |
88
96
  | `openeng attachment list <object> --project <id> --ref <ref>` | prints attachment properties and descriptors | two |
89
97
  | `openeng hosted-app publish <bundle> --project <id> --key <app key>` | publishes the bundle file as the next version of the project's hosted app under the key, creating the app when the project has none; prints the version, its SHA-256 and size, and the reduced isolation warning for an app that holds the reduced isolation permission | three to four |
@@ -155,6 +163,16 @@ An object type's `subscriptionRoles` field declares which roles it admits: owner
155
163
  Owner is limited to one; approver and watcher may have optional maxima. Without the field, only
156
164
  watchers are admitted.
157
165
 
166
+ ## Feedback
167
+
168
+ File a bug or missing feature with `openeng feedback bug --title <text> --body-file -` or `openeng feedback feature`. The body may also come from `--body <text>` or `--body-file <path>`. Optional `--route`, `--correlation` and `--project` record context. List entries with `openeng admin-sdk listFeedback`.
169
+
170
+ `listFeedback` returns one page (20 entries by default, with a limit from 1 to 50) and a continuation token. Pass the token to the next request and repeat until it is null.
171
+
172
+ ```sh
173
+ openeng admin-sdk listFeedback --input '{"continuation":"<token from the previous answer>"}'
174
+ ```
175
+
158
176
  ## Link destinations
159
177
 
160
178
  | kind | destination |
@@ -219,8 +237,11 @@ Matching is case-insensitive, and a glob is at most 255 characters.
219
237
  A `rows` rule binds only its project's rows; `ref` binds every row on the matching ref.
220
238
  The host answers `invalid-rule-pattern`, `invalid-rule-setting` or `unknown-rule-member` when
221
239
  pattern, settings or membership do not fit. An absent or other owner's rule answers `not-found`.
222
- A repeated rule add returns the existing rule without changing it. Changing a rule’s consequence
223
- to one another rule on that pattern already has is refused `duplicate-rule`; the rule stays unchanged.
240
+ An add with the same owner, case-insensitive pattern, extent and consequence returns the existing rule without
241
+ an audit write if its settings are identical; otherwise it is refused with duplicate-rule. A different
242
+ consequence can create a separate rule.
243
+ Changing a rule’s consequence to one another rule on that pattern already has is also refused
244
+ `duplicate-rule`.
224
245
 
225
246
  Commands make one host call, plus refresh or step-up calls when needed, and send no idempotency
226
247
  key. Under `--json`, success answers `{ scope, value }`, with the full rule for add/update,
@@ -254,9 +275,9 @@ A branch whose name contains `/` cannot request or show a schema update today.
254
275
  A baseline cannot be deleted.
255
276
  - `openeng org-refs mark-read-only --name <name>` calls `markOrganisationRefReadOnly` and prints the
256
277
  branch or baseline's name and read-only state. All four organisation branch or baseline calls have no selector.
257
- - `openeng locks set --project <id> --ref <ref> --object <objectId> --lock <none|merge-only|frozen>`
278
+ - `openeng locks set --project <id> --ref <ref> --object <objectId> --lock <none|merge-only|frozen> --reason <text>`
258
279
  calls the Objects client's `setObjectLock` with selector `{ projectId, ref }` and input
259
- `{ objectId, lock }`. It prints `object <objectId> lock <lock>`. `none` lifts the lock;
280
+ `{ objectId, lock, reason }`. It prints `object <objectId> lock <lock>`. `none` lifts the lock;
260
281
  the lock also applies to the object's child edges.
261
282
  - `openeng ceiling show --project <id>` calls `readAgentCeiling` and prints `ceiling <role>`.
262
283
  - `openeng ceiling set --project <id> --ceiling <contributor|maintainer>` calls `setAgentCeiling`
@@ -271,7 +292,7 @@ Missing required flags and unknown lock or ceiling spellings refuse before any c
271
292
  For an uncertain outcome, rules, organisation branches and baselines, ceiling and schema requests name a read-only
272
293
  command: list the rules or organisation branches and baselines, or show the ceiling or schema request. Inspect that
273
294
  answer before acting again. The lock command instead names the same idempotent `openeng locks set`
274
- command with the same arguments, which sets the same lock again.
295
+ command with the same arguments and a `--reason <text>`, which sets the same lock again.
275
296
 
276
297
  ## The connector commands
277
298