oh-my-pr 2.15.3 → 3.1.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
@@ -45,11 +45,7 @@ npm install -g oh-my-pr
45
45
  oh-my-pr
46
46
  ```
47
47
 
48
- That opens the terminal UI. If you prefer the browser dashboard, run:
49
-
50
- ```bash
51
- oh-my-pr web
52
- ```
48
+ That starts the dashboard server and opens the browser dashboard.
53
49
 
54
50
  Then:
55
51
 
@@ -96,8 +92,7 @@ Watched repositories default to `My PRs only`. You can switch a repo to `My PRs
96
92
 
97
93
  oh-my-pr can be used in a few ways:
98
94
 
99
- - terminal UI: `oh-my-pr`
100
- - web dashboard: `oh-my-pr web`
95
+ - web dashboard: `oh-my-pr`
101
96
  - MCP server: `oh-my-pr mcp`
102
97
  - local REST API: see [LOCAL_API.md](LOCAL_API.md)
103
98
  - optional Tauri desktop shell
@@ -116,8 +111,7 @@ Those features are optional and documented in the linked docs below.
116
111
  ## Commands
117
112
 
118
113
  ```bash
119
- oh-my-pr # terminal UI
120
- oh-my-pr web # web dashboard
114
+ oh-my-pr # web dashboard
121
115
  oh-my-pr mcp # MCP server
122
116
  oh-my-pr --help # help
123
117
  oh-my-pr --version # version
@@ -19,13 +19,11 @@ if (parsed.mode === "help") {
19
19
  }
20
20
 
21
21
  process.env.NODE_ENV = process.env.NODE_ENV || "production";
22
- if (parsed.mode === "web") {
23
- require("../dist/index.cjs");
24
- } else if (parsed.mode === "mcp") {
22
+ if (parsed.mode === "mcp") {
25
23
  require("../dist/mcp.cjs");
24
+ } else if (parsed.mode === "web") {
25
+ require("../dist/index.cjs");
26
26
  } else {
27
- import("../dist/tui.mjs").catch((error) => {
28
- console.error(error instanceof Error ? error.message : String(error));
29
- process.exit(1);
30
- });
27
+ console.error(`Unsupported mode: ${parsed.mode}`);
28
+ process.exit(1);
31
29
  }
package/dist/cli.cjs CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var a=(r,e)=>{for(var o in e)i(r,o,{get:e[o],enumerable:!0})},h=(r,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!m.call(r,t)&&t!==o&&i(r,t,{get:()=>e[t],enumerable:!(n=s(e,t))||n.enumerable});return r};var d=r=>h(i({},"__esModule",{value:!0}),r);var u={};a(u,{formatCliHelp:()=>c,parseCliArgs:()=>l});module.exports=d(u);function l(r){let e=r[0];return e?e==="web"?{mode:"web"}:e==="mcp"?{mode:"mcp"}:e==="--help"||e==="-h"?{mode:"help"}:e==="--version"||e==="-v"?{mode:"version"}:{mode:"help",error:`Unknown command: ${e}`}:{mode:"tui"}}function c(r){return`
1
+ "use strict";var s=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var m=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of p(e))!a.call(r,o)&&o!==t&&s(r,o,{get:()=>e[o],enumerable:!(i=n(e,o))||i.enumerable});return r};var d=r=>h(s({},"__esModule",{value:!0}),r);var u={};m(u,{formatCliHelp:()=>l,parseCliArgs:()=>c});module.exports=d(u);function c(r){let e=r[0];return e?e==="web"?{mode:"web"}:e==="mcp"?{mode:"mcp"}:e==="--help"||e==="-h"?{mode:"help"}:e==="--version"||e==="-v"?{mode:"version"}:{mode:"help",error:`Unknown command: ${e}`}:{mode:"web"}}function l(r){return`
2
2
  oh-my-pr v${r}
3
3
 
4
4
  Autonomous GitHub PR babysitter \u2014 watches repos, triages review
5
5
  feedback, and dispatches AI agents to fix code locally.
6
6
 
7
7
  Usage:
8
- oh-my-pr Start the terminal UI
8
+ oh-my-pr Start the dashboard server
9
9
  oh-my-pr web Start the dashboard server
10
10
  oh-my-pr mcp Start the MCP server
11
11
  oh-my-pr --help Show this help message