gh-manager-cli 1.15.1 → 1.16.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.16.1](https://github.com/wiiiimm/gh-manager-cli/compare/v1.16.0...v1.16.1) (2025-09-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add missing hasInternalRepos state variable ([#16](https://github.com/wiiiimm/gh-manager-cli/issues/16)) ([e3bcc84](https://github.com/wiiiimm/gh-manager-cli/commit/e3bcc843b82259bafbac34726fda2113c66f874c))
7
+
8
+ # [1.16.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.15.1...v1.16.0) (2025-09-02)
9
+
10
+
11
+ ### Features
12
+
13
+ * add Ctrl+L logout option to error state ([#14](https://github.com/wiiiimm/gh-manager-cli/issues/14)) ([1a15028](https://github.com/wiiiimm/gh-manager-cli/commit/1a15028cc8f1a2bf39054f65b09d0ade7be1de0f))
14
+
1
15
  ## [1.15.1](https://github.com/wiiiimm/gh-manager-cli/compare/v1.15.0...v1.15.1) (2025-09-02)
2
16
 
3
17
 
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ var require_package = __commonJS({
27
27
  "package.json"(exports, module) {
28
28
  module.exports = {
29
29
  name: "gh-manager-cli",
30
- version: "1.15.1",
30
+ version: "1.16.1",
31
31
  private: false,
32
32
  description: "Interactive CLI to manage your GitHub repos (personal) with Ink",
33
33
  license: "MIT",
@@ -1285,6 +1285,7 @@ function RepoList({ token, maxVisibleRows, onLogout, viewerLogin, onOrgContextCh
1285
1285
  const [logoutError, setLogoutError] = useState10(null);
1286
1286
  const [visibilityMode, setVisibilityMode] = useState10(false);
1287
1287
  const [isEnterpriseOrg, setIsEnterpriseOrg] = useState10(false);
1288
+ const [hasInternalRepos, setHasInternalRepos] = useState10(false);
1288
1289
  const [changeVisibilityMode, setChangeVisibilityMode] = useState10(false);
1289
1290
  const [changeVisibilityTarget, setChangeVisibilityTarget] = useState10(null);
1290
1291
  const [changingVisibility, setChangingVisibility] = useState10(false);
@@ -1727,6 +1728,39 @@ function RepoList({ token, maxVisibleRows, onLogout, viewerLogin, onOrgContextCh
1727
1728
  }
1728
1729
  }, [viewerLogin]);
1729
1730
  useInput10((input, key) => {
1731
+ if (error) {
1732
+ if (input && input.toUpperCase() === "Q") {
1733
+ try {
1734
+ const seq = "\x1B[2J\x1B[3J\x1B[H";
1735
+ if (stdout && typeof stdout.write === "function") stdout.write(seq);
1736
+ else if (typeof process.stdout.write === "function") process.stdout.write(seq);
1737
+ } catch {
1738
+ }
1739
+ exit();
1740
+ return;
1741
+ }
1742
+ if (input && input.toUpperCase() === "R") {
1743
+ setCursor(0);
1744
+ setRefreshing(true);
1745
+ setSortingLoading(true);
1746
+ ;
1747
+ (async () => {
1748
+ try {
1749
+ await purgeApolloCacheFiles();
1750
+ } catch {
1751
+ }
1752
+ fetchPage(null, true, true, void 0, "network-only");
1753
+ })();
1754
+ return;
1755
+ }
1756
+ if (key.ctrl && (input === "l" || input === "L")) {
1757
+ if (onLogout) {
1758
+ onLogout();
1759
+ }
1760
+ return;
1761
+ }
1762
+ return;
1763
+ }
1730
1764
  if (orgSwitcherOpen) {
1731
1765
  return;
1732
1766
  }
@@ -2179,9 +2213,9 @@ function RepoList({ token, maxVisibleRows, onLogout, viewerLogin, onOrgContextCh
2179
2213
  ] }) }),
2180
2214
  /* @__PURE__ */ jsx14(Box13, { borderStyle: "single", borderColor: "red", paddingX: 1, paddingY: 1, marginX: 1, height: contentHeight + containerPadding + 2, flexDirection: "column", children: /* @__PURE__ */ jsx14(Box13, { height: contentHeight, justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsxs13(Box13, { flexDirection: "column", alignItems: "center", children: [
2181
2215
  /* @__PURE__ */ jsx14(Text14, { color: "red", children: error }),
2182
- /* @__PURE__ */ jsx14(Box13, { marginTop: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", dimColor: true, children: "Press R to retry or Q to quit" }) })
2216
+ /* @__PURE__ */ jsx14(Box13, { marginTop: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", dimColor: true, children: "Press R to retry \u2022 Ctrl+L to logout \u2022 Q to quit" }) })
2183
2217
  ] }) }) }),
2184
- /* @__PURE__ */ jsx14(Box13, { marginTop: 1, paddingX: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", children: "Press R to retry \u2022 Q to quit" }) })
2218
+ /* @__PURE__ */ jsx14(Box13, { marginTop: 1, paddingX: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", children: "Press R to retry \u2022 Ctrl+L to logout \u2022 Q to quit" }) })
2185
2219
  ] });
2186
2220
  }
2187
2221
  if (loading && items.length === 0 || sortingLoading) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gh-manager-cli",
3
- "version": "1.15.1",
3
+ "version": "1.16.1",
4
4
  "private": false,
5
5
  "description": "Interactive CLI to manage your GitHub repos (personal) with Ink",
6
6
  "license": "MIT",