@loucompanion/forge-bridge 0.1.1-dev.54464ef723de → 0.1.1-dev.5b0a0fe4307c

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.
@@ -544,35 +544,51 @@ function normalizePairingCode(code) {
544
544
  function normalizeServerUrl(serverUrl) {
545
545
  return serverUrl.endsWith("/") ? serverUrl : `${serverUrl}/`;
546
546
  }
547
+ function isHelpArg(arg) {
548
+ return arg === "help" || arg === "--help" || arg === "-h";
549
+ }
547
550
  function usage() {
548
551
  return helpText();
549
552
  }
550
553
  function helpText() {
551
554
  const version = defaultBridgeServiceConfig().version ?? forgeBridgeVersion;
552
555
  return [
553
- `🛠 Forge Bridge ${version} — Local provider runners for Forge.`,
556
+ `Forge Bridge ${version}`,
557
+ "Local runner bridge for Forge agents.",
558
+ "",
559
+ "Forge Bridge lets this machine run provider CLIs like Codex or Cursor for Forge.",
560
+ "Keep `forge-bridge connect` open while Forge dispatches work.",
554
561
  "",
555
- "Usage: forge-bridge [options] [command]",
562
+ "Usage:",
563
+ " forge-bridge <command> [options]",
564
+ " forge-bridge help <command>",
556
565
  "",
557
566
  "Options:",
558
- " -h, --help Display help for command",
559
- " -v, --version Output the version number",
567
+ " -h, --help Show help.",
568
+ " -v, --version Print the bridge version.",
569
+ "",
570
+ "Setup commands:",
571
+ " pair [code] Pair this machine with Forge and save runner credentials.",
572
+ " connect Start the bridge and wait for Forge dispatches.",
573
+ " status Show config, runner identity, repos, provider CLIs, and updates.",
560
574
  "",
561
- "Commands:",
562
- " Hint: commands suffixed with * have detailed help. Run <command> --help for details.",
563
- " connect * Start the runner bridge and wait for Forge dispatches",
564
- " pair * Pair this machine with Forge and save runner credentials",
565
- " status * Show config, runner identity, repos, provider CLIs, and updates",
566
- " add-repo * Map a Forge repo label/name to a local checkout path",
567
- " remove-repo * Remove a saved repo mapping",
568
- " cleanup * Prune managed bridge worktrees",
569
- " version * Print the installed bridge package version",
570
- " help * Display help for command",
571
- " run-once * Internal: run one dispatch packet from JSON",
572
- " mcp * Internal: run the phase-completion MCP server",
575
+ "Repo commands:",
576
+ " add-repo Map a Forge repo label/name to a local checkout path.",
577
+ " remove-repo Remove a saved repo mapping.",
578
+ " cleanup Prune managed bridge worktrees.",
579
+ "",
580
+ "Internal commands:",
581
+ " run-once Run one dispatch packet. Used by Forge and tests.",
582
+ " mcp Run the phase-completion MCP server for provider CLIs.",
583
+ "",
584
+ "Common flow:",
585
+ " 1. Install or update: npm install -g @loucompanion/forge-bridge@next",
586
+ " 2. In Forge: Profile Settings -> Runners -> Pair runner.",
587
+ " 3. Run the pairing command Forge shows you.",
588
+ " 4. Start the bridge: forge-bridge connect",
573
589
  "",
574
590
  "Examples:",
575
- " npm install -g @loucompanion/forge-bridge@next",
591
+ " forge-bridge version",
576
592
  " forge-bridge pair 1234-5678 --server https://srv1493013.tail66073d.ts.net:8443 --repo-root \"%USERPROFILE%\\ForgeRepos\"",
577
593
  " forge-bridge connect",
578
594
  " forge-bridge status --check-updates",
@@ -580,9 +596,13 @@ function helpText() {
580
596
  " forge-bridge cleanup --stale",
581
597
  "",
582
598
  "Troubleshooting:",
583
- " If Forge says the bridge is old: npm install -g @loucompanion/forge-bridge@next",
584
- " If connect shows 502/500: leave it open; it reconnects with backoff while dev restarts.",
585
- " If a provider is missing: run forge-bridge status --check-updates and verify CLI login.",
599
+ " - If Forge says the bridge is old, run npm install -g @loucompanion/forge-bridge@next.",
600
+ " - If connect shows 502/500, leave it open; it reconnects with backoff while dev restarts.",
601
+ " - If a provider is missing, run forge-bridge status --check-updates and verify the CLI login.",
602
+ "",
603
+ "Command help:",
604
+ " forge-bridge help pair",
605
+ " forge-bridge connect --help",
586
606
  "",
587
607
  "Docs:",
588
608
  " https://github.com/coleman399/Forge/tree/develop/tools/forge-bridge#readme",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const forgeBridgeVersion = "0.1.1-dev.54464ef723de";
1
+ export declare const forgeBridgeVersion = "0.1.1-dev.5b0a0fe4307c";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const forgeBridgeVersion = "0.1.1-dev.54464ef723de";
1
+ export const forgeBridgeVersion = "0.1.1-dev.5b0a0fe4307c";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loucompanion/forge-bridge",
3
- "version": "0.1.1-dev.54464ef723de",
3
+ "version": "0.1.1-dev.5b0a0fe4307c",
4
4
  "description": "Forge runner bridge CLI for connecting local developer machines to Forge dispatch.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",