Skip to content

Commit b149f87

Browse files
author
Alexie (Boyong) Madolid
committed
[CLEANUP]: Remove github publish and trigger npx prettier --write
1 parent 0d45162 commit b149f87

7 files changed

Lines changed: 87336 additions & 300 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -38,79 +38,3 @@ jobs:
3838
run: npm test
3939

4040
- run: npm run build
41-
42-
publish:
43-
runs-on: ubuntu-latest
44-
if: github.event_name == 'release'
45-
environment: release
46-
needs: build
47-
48-
permissions:
49-
contents: read
50-
id-token: write
51-
52-
steps:
53-
- uses: actions/checkout@v6
54-
- uses: actions/setup-node@v6
55-
with:
56-
node-version-file: package.json
57-
cache: npm
58-
registry-url: "https://registry.npmjs.org"
59-
60-
# Working around https://github.com/npm/cli/issues/4828
61-
# - run: npm ci
62-
- run: npm install --no-package-lock
63-
64-
# TODO: Add --provenance once the repo is public
65-
- run: npm run publish-all
66-
env:
67-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
68-
69-
publish-github-container-registry:
70-
runs-on: ubuntu-latest
71-
if: github.event_name == 'release'
72-
environment: release
73-
needs: build
74-
permissions:
75-
contents: read
76-
packages: write
77-
attestations: write
78-
id-token: write
79-
steps:
80-
- uses: actions/checkout@v6
81-
82-
- name: Log in to the Container registry
83-
uses: docker/login-action@v3
84-
with:
85-
registry: ghcr.io
86-
username: ${{ github.actor }}
87-
password: ${{ secrets.GITHUB_TOKEN }}
88-
89-
- name: Extract metadata (tags, labels) for Docker
90-
id: meta
91-
uses: docker/metadata-action@v5
92-
with:
93-
images: ghcr.io/${{ github.repository }}
94-
95-
- name: Set up QEMU
96-
uses: docker/setup-qemu-action@v3
97-
98-
- name: Set up Docker Buildx
99-
uses: docker/setup-buildx-action@v3
100-
101-
- name: Build and push Docker image
102-
id: push
103-
uses: docker/build-push-action@v6
104-
with:
105-
context: .
106-
push: true
107-
platforms: linux/amd64,linux/arm64
108-
tags: ${{ steps.meta.outputs.tags }}
109-
labels: ${{ steps.meta.outputs.labels }}
110-
111-
- name: Generate artifact attestation
112-
uses: actions/attest-build-provenance@v3
113-
with:
114-
subject-name: ghcr.io/${{ github.repository }}
115-
subject-digest: ${{ steps.push.outputs.digest }}
116-
push-to-registry: true
Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,62 @@
1-
import{u as l,r as n,j as u,p as d,g as h,S as f,I as p,a as E}from"./index-De_cSjJc.js";const A=({onConnect:o})=>{const{toast:s}=l(),i=n.useRef(!1);return n.useEffect(()=>{(async()=>{if(i.current)return;i.current=!0;const t=e=>void s({title:"OAuth Authorization Error",description:e,variant:"destructive"}),a=d(window.location.search);if(!a.successful)return t(h(a));const r=sessionStorage.getItem(f.SERVER_URL);if(!r)return t("Missing Server URL");let c;try{const e=new p(r);c=await E(e,{serverUrl:r,authorizationCode:a.code})}catch(e){return console.error("OAuth callback error:",e),t(`Unexpected error occurred: ${e}`)}if(c!=="AUTHORIZED")return t(`Expected to be authorized after providing auth code, got: ${c}`);s({title:"Success",description:"Successfully authenticated with OAuth",variant:"default"}),o(r)})().finally(()=>{window.history.replaceState({},document.title,"/")})},[s,o]),u.jsx("div",{className:"flex items-center justify-center h-screen",children:u.jsx("p",{className:"text-lg text-gray-500",children:"Processing OAuth callback..."})})};export{A as default};
1+
import {
2+
u as l,
3+
r as n,
4+
j as u,
5+
p as d,
6+
g as h,
7+
S as f,
8+
I as p,
9+
a as E,
10+
} from "./index-De_cSjJc.js";
11+
const A = ({ onConnect: o }) => {
12+
const { toast: s } = l(),
13+
i = n.useRef(!1);
14+
return (
15+
n.useEffect(() => {
16+
(async () => {
17+
if (i.current) return;
18+
i.current = !0;
19+
const t = (e) =>
20+
void s({
21+
title: "OAuth Authorization Error",
22+
description: e,
23+
variant: "destructive",
24+
}),
25+
a = d(window.location.search);
26+
if (!a.successful) return t(h(a));
27+
const r = sessionStorage.getItem(f.SERVER_URL);
28+
if (!r) return t("Missing Server URL");
29+
let c;
30+
try {
31+
const e = new p(r);
32+
c = await E(e, { serverUrl: r, authorizationCode: a.code });
33+
} catch (e) {
34+
return (
35+
console.error("OAuth callback error:", e),
36+
t(`Unexpected error occurred: ${e}`)
37+
);
38+
}
39+
if (c !== "AUTHORIZED")
40+
return t(
41+
`Expected to be authorized after providing auth code, got: ${c}`,
42+
);
43+
(s({
44+
title: "Success",
45+
description: "Successfully authenticated with OAuth",
46+
variant: "default",
47+
}),
48+
o(r));
49+
})().finally(() => {
50+
window.history.replaceState({}, document.title, "/");
51+
});
52+
}, [s, o]),
53+
u.jsx("div", {
54+
className: "flex items-center justify-center h-screen",
55+
children: u.jsx("p", {
56+
className: "text-lg text-gray-500",
57+
children: "Processing OAuth callback...",
58+
}),
59+
})
60+
);
61+
};
62+
export { A as default };
Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,74 @@
1-
import{r as d,S as a,p as l,j as r,g as h}from"./index-De_cSjJc.js";const p=({onConnect:s})=>{d.useEffect(()=>{let c=!1;return(async()=>{if(c)return;c=!0;const o=l(window.location.search);if(!o.successful){const i=h(o);s({errorMsg:i});return}const u=sessionStorage.getItem(a.SERVER_URL),n=sessionStorage.getItem(a.AUTH_DEBUGGER_STATE);let e=null;if(n)try{e=JSON.parse(n),e&&typeof e.resource=="string"&&(e.resource=new URL(e.resource)),e&&typeof e.authorizationUrl=="string"&&(e.authorizationUrl=new URL(e.authorizationUrl)),sessionStorage.removeItem(a.AUTH_DEBUGGER_STATE)}catch(i){console.error("Failed to parse stored auth state:",i)}if(u){if(!o.code){s({errorMsg:"Missing authorization code"});return}s({authorizationCode:o.code,restoredState:e})}})().finally(()=>{sessionStorage.getItem(a.SERVER_URL)&&window.history.replaceState({},document.title,"/")}),()=>{c=!0}},[s]);const t=l(window.location.search);return r.jsx("div",{className:"flex items-center justify-center h-screen",children:r.jsxs("div",{className:"mt-4 p-4 bg-secondary rounded-md max-w-md",children:[r.jsx("p",{className:"mb-2 text-sm",children:"Please copy this authorization code and return to the Auth Debugger:"}),r.jsx("code",{className:"block p-2 bg-muted rounded-sm overflow-x-auto text-xs",children:t.successful&&"code"in t?t.code:`No code found: ${t.error}, ${t.error_description}`}),r.jsx("p",{className:"mt-4 text-xs text-muted-foreground",children:"Close this tab and paste the code in the OAuth flow to complete authentication."})]})})};export{p as default};
1+
import { r as d, S as a, p as l, j as r, g as h } from "./index-De_cSjJc.js";
2+
const p = ({ onConnect: s }) => {
3+
d.useEffect(() => {
4+
let c = !1;
5+
return (
6+
(async () => {
7+
if (c) return;
8+
c = !0;
9+
const o = l(window.location.search);
10+
if (!o.successful) {
11+
const i = h(o);
12+
s({ errorMsg: i });
13+
return;
14+
}
15+
const u = sessionStorage.getItem(a.SERVER_URL),
16+
n = sessionStorage.getItem(a.AUTH_DEBUGGER_STATE);
17+
let e = null;
18+
if (n)
19+
try {
20+
((e = JSON.parse(n)),
21+
e &&
22+
typeof e.resource == "string" &&
23+
(e.resource = new URL(e.resource)),
24+
e &&
25+
typeof e.authorizationUrl == "string" &&
26+
(e.authorizationUrl = new URL(e.authorizationUrl)),
27+
sessionStorage.removeItem(a.AUTH_DEBUGGER_STATE));
28+
} catch (i) {
29+
console.error("Failed to parse stored auth state:", i);
30+
}
31+
if (u) {
32+
if (!o.code) {
33+
s({ errorMsg: "Missing authorization code" });
34+
return;
35+
}
36+
s({ authorizationCode: o.code, restoredState: e });
37+
}
38+
})().finally(() => {
39+
sessionStorage.getItem(a.SERVER_URL) &&
40+
window.history.replaceState({}, document.title, "/");
41+
}),
42+
() => {
43+
c = !0;
44+
}
45+
);
46+
}, [s]);
47+
const t = l(window.location.search);
48+
return r.jsx("div", {
49+
className: "flex items-center justify-center h-screen",
50+
children: r.jsxs("div", {
51+
className: "mt-4 p-4 bg-secondary rounded-md max-w-md",
52+
children: [
53+
r.jsx("p", {
54+
className: "mb-2 text-sm",
55+
children:
56+
"Please copy this authorization code and return to the Auth Debugger:",
57+
}),
58+
r.jsx("code", {
59+
className: "block p-2 bg-muted rounded-sm overflow-x-auto text-xs",
60+
children:
61+
t.successful && "code" in t
62+
? t.code
63+
: `No code found: ${t.error}, ${t.error_description}`,
64+
}),
65+
r.jsx("p", {
66+
className: "mt-4 text-xs text-muted-foreground",
67+
children:
68+
"Close this tab and paste the code in the OAuth flow to complete authentication.",
69+
}),
70+
],
71+
}),
72+
});
73+
};
74+
export { p as default };

pocketnest/assets/index-CNZ7Mlbo.css

Lines changed: 2436 additions & 1 deletion
Large diffs are not rendered by default.

pocketnest/assets/index-De_cSjJc.js

Lines changed: 84763 additions & 180 deletions
Large diffs are not rendered by default.

pocketnest/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Pocketnest MCP Inspector</title>
88
<script type="module" crossorigin src="./assets/index-De_cSjJc.js"></script>
9-
<link rel="stylesheet" crossorigin href="./assets/index-CNZ7Mlbo.css">
9+
<link rel="stylesheet" crossorigin href="./assets/index-CNZ7Mlbo.css" />
1010
</head>
1111
<body>
1212
<div id="root" class="w-full"></div>

0 commit comments

Comments
 (0)