@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.
- package/dist/cli/cli.service.js +40 -20
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cli/cli.service.js
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
562
|
+
"Usage:",
|
|
563
|
+
" forge-bridge <command> [options]",
|
|
564
|
+
" forge-bridge help <command>",
|
|
556
565
|
"",
|
|
557
566
|
"Options:",
|
|
558
|
-
" -h, --help
|
|
559
|
-
" -v, --version
|
|
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
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"
|
|
564
|
-
"
|
|
565
|
-
"
|
|
566
|
-
"
|
|
567
|
-
"
|
|
568
|
-
"
|
|
569
|
-
"
|
|
570
|
-
"
|
|
571
|
-
"
|
|
572
|
-
"
|
|
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
|
-
"
|
|
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
|
|
584
|
-
" If connect shows 502/500
|
|
585
|
-
" If a provider is missing
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|