passport-bridge 0.6.0 → 0.6.1

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
@@ -30,7 +30,7 @@ Remote Passport servers must use HTTPS. Plain HTTP is accepted only for local
30
30
  development on `localhost`, `127.0.0.0/8`, or `::1`. Self-hosted deployments
31
31
  should terminate HTTPS before using interactive profiles or agent keys.
32
32
 
33
- Passport CLI 0.6.0 requires gateway MCP serverInfo `passport` version 0.5.0 or
33
+ Passport CLI 0.6.1 requires gateway MCP serverInfo `passport` version 0.5.0 or
34
34
  newer and the exact four-tool governed CLI protocol. Older servers fail clearly
35
35
  before the CLI makes a tool call.
36
36
 
@@ -268,3 +268,6 @@ passport-bridge serve --profile cursor@ws_example
268
268
  ```
269
269
 
270
270
  The bridge exchanges its file-backed refresh credential for short-lived access tokens, persists rotations, coordinates concurrent processes, and forwards tools, resources, prompts, cancellation, progress, and tool-list changes over stdio. `passport-bridge status` checks stored bridge profiles, and `passport-bridge logout --profile <name>` revokes one.
271
+
272
+ Run `passport-bridge --help` for the complete bridge command surface or
273
+ `passport-bridge --version` to print the installed package version.
package/dist/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import { spawn } from "node:child_process";
3
3
  import { getProfile, writeProfile, removeProfile, readCreds, credsPath, withProfileLock } from "./credentials.js";
4
4
  import { TokenManager, runBridge, log } from "./bridge.js";
5
+ import { VERSION } from "./version.js";
5
6
  /**
6
7
  * passport-bridge — the local tier.
7
8
  *
@@ -20,6 +21,10 @@ function arg(flag, fallback = "") {
20
21
  }
21
22
  async function main() {
22
23
  const command = process.argv[2] ?? "serve";
24
+ if (process.argv.includes("--help") || process.argv.includes("-h") || command === "help")
25
+ return help();
26
+ if (command === "--version" || command === "-V" || command === "version")
27
+ return version();
23
28
  if (command === "serve")
24
29
  return serve();
25
30
  if (command === "login")
@@ -28,9 +33,33 @@ async function main() {
28
33
  return logout();
29
34
  if (command === "status")
30
35
  return status();
31
- process.stderr.write(`Unknown command: ${command}\nUsage: passport-bridge <login|serve|status|logout>\n`);
36
+ process.stderr.write(`Unknown command: ${command}\nRun \`passport-bridge --help\` for usage.\n`);
32
37
  process.exit(1);
33
38
  }
39
+ function help() {
40
+ process.stdout.write(`Passport bridge ${VERSION}
41
+
42
+ Usage: passport-bridge [command] [options]
43
+
44
+ Commands:
45
+ serve Connect an MCP client using a saved profile (default)
46
+ login Sign in and save a rotating bridge credential
47
+ status Check saved bridge profiles
48
+ logout Revoke and remove a saved profile
49
+
50
+ Options:
51
+ --profile <name> Use a named profile (default: default)
52
+ --cloud <url> Passport URL for login
53
+ --workspace <id> Workspace for login
54
+ --client <name> AI client identity for login
55
+ --target <target> Credential target for login
56
+ -h, --help Show this help
57
+ -V, --version Show the package version
58
+ `);
59
+ }
60
+ function version() {
61
+ process.stdout.write(`${VERSION}\n`);
62
+ }
34
63
  async function serve() {
35
64
  const profile = arg("--profile", "default");
36
65
  let endpoint = process.env.PASSPORT_ENDPOINT ?? "";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Keep in lockstep with bridge/package.json. The published bridge can run from
2
2
  // a compiled sidecar where package.json is not available at runtime.
3
- export const VERSION = "0.6.0";
3
+ export const VERSION = "0.6.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passport-bridge",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Passport CLI for governed terminal and CI agents, plus the local stdio-to-cloud MCP bridge.",
5
5
  "license": "MIT",
6
6
  "repository": {