@openengio/cli 0.44.0 → 0.45.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
@@ -556,7 +556,7 @@ protocol (`npm install -g @openengio/cli@0.<protocol>`). JSON adds that command
556
556
  | 3 | `unauthenticated`: not signed in, a sign-in that was cancelled, timed out or whose state differed, or a logout with nothing stored |
557
557
  | 4 | a platform refusal (`refused`), a route result whose arm is `refused`, or the violations `openeng types draft validate` or `openeng types draft try` answers (printed on standard output) |
558
558
  | 5 | `unknown-outcome`, from the host or from a transport that lost the answer; also a non-envelope answer with status 500 to 599 |
559
- | 6 | `invalid-request`, `not-found` or `bound-exceeded` |
559
+ | 6 | `invalid-request`, `not-found` or `bound-exceeded`; `request-duration` means the write did not run, and a retry must use a new idempotency key or none, because the refused request's record stays pending and the same key answers `in-flight` |
560
560
  | 7 | `internal`, `in-flight`, `protocol-mismatch`, a transport failure with no answer, a non-envelope answer with status 400 to 499, or an internal failure of the client |
561
561
 
562
562
  ## Stores
@@ -573,7 +573,7 @@ var ROUTE_DOCS = Object.freeze({
573
573
  listRefs: doc("Lists the branches of a project, each with its head: readable with a hash, withheld when the caller may not read the branch, or unread after the first 50 refs, including main (so at most 49 branch heads are read). Each row also carries a schema state as a convenience hint; the branch-needs-schema-update refusal on use remains the guard.", [...SCOPED, "organisation-not-ready"]),
574
574
  readCatalogue: doc("Reads the published catalogue of a project's namespace.", SCOPED),
575
575
  readPendingProposal: doc("Reads the proposal waiting for review on a branch, if any.", SCOPED),
576
- submitProposal: doc("Submits a branch for review. Optional target names main, a writable organisation ref or a project branch; it defaults to main. An apply run that names any ref other than its plan's is refused write-refused.", [...REF_READ, "proposal-open", "no-commits", "invalid-proposal-target"]),
576
+ submitProposal: doc("Submits a branch for review. Optional target names main, a writable organisation ref or a project branch; it defaults to main. A client holding branches.proposalSubmit may submit within the person's project permissions. That grant alone permits no other branch write. An apply run that names any ref other than its plan's is refused write-refused.", [...REF_READ, "proposal-open", "no-commits", "invalid-proposal-target"]),
577
577
  createServiceIdentity: doc("Creates a service identity in an organisation.", [...SIGNED_IN, "not-permitted", "capability-missing", "duplicate-name"]),
578
578
  revokeServiceIdentity: doc("Revokes a service identity.", [...SIGNED_IN, "not-permitted", "service_identity.revoke"]),
579
579
  issueServiceCredential: doc("Issues a credential for a service identity.", [...SIGNED_IN, "not-permitted", "capability-missing"]),
@@ -1207,7 +1207,7 @@ var ROUTE_INPUT_EXAMPLES = deepFreeze(EXAMPLES);
1207
1207
  var DESCRIPTION_ROUTES = Object.freeze(["queryRows", "queryObjects", "aggregateObjects", "queryGraph", "readStructure", "findPaths"]);
1208
1208
 
1209
1209
  // packages/api-contract/dist/routes.js
1210
- var PROTOCOL_VERSION = 44;
1210
+ var PROTOCOL_VERSION = 45;
1211
1211
  var VERSION_HEADER = "oe2-protocol-version";
1212
1212
  var TOKEN_HEADER = "authorization";
1213
1213
  var IDEMPOTENCY_HEADER = "oe2-idempotency-key";
@@ -2566,7 +2566,8 @@ var BOUND_LABEL = {
2566
2566
  "rate-per-principal": "the request-rate limit per principal",
2567
2567
  "rate-per-address": "the request-rate limit per address",
2568
2568
  "resolve-in-flight": "the concurrent name-resolution limit",
2569
- "pending-sign-ins": "the pending sign-in limit"
2569
+ "pending-sign-ins": "the pending sign-in limit",
2570
+ "request-duration": "the time limit on one request"
2570
2571
  };
2571
2572
  function explainKind(kind) {
2572
2573
  if (!Object.hasOwn(BY_KIND, kind)) {
@@ -2576,7 +2577,10 @@ function explainKind(kind) {
2576
2577
  if (kind !== "bound-exceeded") {
2577
2578
  return Object.freeze({ explanation, explains: "kind" });
2578
2579
  }
2579
- return Object.freeze({ explanation: withMeaning(explanation, "The exceeded limit is the request-body, query-page, concurrency, request-rate, address-rate, resolve-capacity or pending-sign-in limit."), explains: "kind" });
2580
+ return Object.freeze({
2581
+ explanation: withMeaning(explanation, "The exceeded limit is the request-body, query-page, concurrency, request-rate, address-rate, resolve-capacity, pending-sign-in or request-duration limit."),
2582
+ explains: "kind"
2583
+ });
2580
2584
  }
2581
2585
  function withMeaning(explanation, detail) {
2582
2586
  return Object.freeze({ meaning: `${explanation.meaning} ${detail}`, next: explanation.next });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openengio/cli",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -389,7 +389,9 @@ grant access to its title, type or properties. Any cursor that is not a current
389
389
  and no matching rule restricts deletions, or when no rule matches even with a pending proposal.
390
390
  Otherwise the caller must be on every matching rule's bypass list. A bypass member may dispose
391
391
  with or without a proposal, including under restricted deletions, with write access to all affected
392
- projects. Success discards the pending proposal after the engine disposal succeeds.
392
+ projects. A person's bypass counts only from a web session or a CLI session in human mode: an
393
+ agent-mode CLI session, or a session with no recorded channel, takes no bypass for a merge, a
394
+ disposal or a direct edit. Success discards the pending proposal after the engine disposal succeeds.
393
395
 
394
396
  Merge and disposal admit people, services and client apps. Agent runs and hosted apps are refused
395
397
  `token-kind-not-admitted`. With no rule matching the merge target, a writer of all affected projects
@@ -675,6 +677,8 @@ Recovery can report a committed change and its hash, and finish the recovery rec
675
677
  the original mutation again. If the saved evidence still cannot establish an outcome, it returns
676
678
  `unknown`; it cannot undo a successful write, restore a deleted object, or retry a failed operation.
677
679
 
680
+ A client with the `branches.proposalSubmit` grant may submit a proposal under the person's
681
+ project permissions. That grant alone permits no other branch write.
678
682
  ## Builds
679
683
 
680
684
  Save a step and its immutable output declarations with the objects SDK's `saveStep`, then check