@engini/cli 0.21.0 → 0.22.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
@@ -100,14 +100,19 @@ engini connect outlook --json # → {need:"oauth", sign_in_url,
100
100
  # show sign_in_url to the user; after they sign in:
101
101
  engini connect outlook --oauth-state <state> # polls token → creates → checks → refreshes
102
102
 
103
+ # re-authenticate an EXISTING OAuth2 connection in place — same sign-in flow,
104
+ # but --oauth-state alone (no --field/--name/--metadata) is a valid edit and
105
+ # keeps the connection id instead of minting a new one
106
+ engini connections update 481 --oauth-state <state>
107
+
103
108
  # object selection (apps that support it) — resume never re-creates
104
109
  engini connect <app> --json # → {need:"objects", connection_id, objects, resume:"engini connect <app> --connection <id> --object <id>"}
105
110
  engini connect <app> --connection <id> --object 5 --object 9
106
111
  ```
107
112
 
108
113
  The same steps are available as standalone primitives: `connections sign-in-url`
109
- / `oauth-complete` (OAuth) and `connections create` / `check` / `refresh` /
110
- `objects` / `select-objects`.
114
+ / `oauth-complete` (OAuth), `connections update` (re-authenticate in place), and
115
+ `connections create` / `check` / `refresh` / `objects` / `select-objects`.
111
116
 
112
117
  ## Output & exit codes
113
118
 
package/dist/cli.js CHANGED
@@ -442,7 +442,7 @@ function saveConfig(config, path = configPath()) {
442
442
  }
443
443
 
444
444
  // src/version.ts
445
- var VERSION = true ? "0.21.0" : "0.0.0";
445
+ var VERSION = true ? "0.22.0" : "0.0.0";
446
446
 
447
447
  // src/http.ts
448
448
  var USER_AGENT_PREFIX = `engini-cli/${VERSION}`;
@@ -913,8 +913,7 @@ function methodSummary(m) {
913
913
  };
914
914
  }
915
915
  function methodHelpUrl(m) {
916
- const value = m.helpUrl;
917
- return typeof value === "string" && value.trim() !== "" ? value : null;
916
+ return typeof m.helpUrl === "string" && m.helpUrl.trim() !== "" ? m.helpUrl : null;
918
917
  }
919
918
  function fieldSummary(f) {
920
919
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engini/cli",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Engini CLI — machine-first command line over the Engini Public API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "test": "vitest run"
27
27
  },
28
28
  "dependencies": {
29
- "@engini/sdk": "^0.21.0",
29
+ "@engini/sdk": "^0.22.0",
30
30
  "commander": "^12.1.0",
31
31
  "smol-toml": "^1.3.0"
32
32
  },