@tempoxyz/mercator 0.0.519 → 0.0.520

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.
@@ -7,13 +7,19 @@ export function oauthCallbackPage(state) {
7
7
  const description = success
8
8
  ? 'Return to your terminal to continue. You can safely close this tab.'
9
9
  : 'Return to the installer and start authorization again.';
10
+ const status = success
11
+ ? ''
12
+ : `<h1 id="callback-heading">${heading}</h1>
13
+ <p class="subtitle">The connection was not completed.</p>`;
14
+ const eyebrowMarkup = success ? '' : `<p class="eyebrow"><span>${eyebrow}</span></p>`;
15
+ const hint = success ? '' : '<p class="hint">Try again from your terminal</p>';
10
16
  return `<!doctype html>
11
17
  <html lang="en">
12
18
  <head>
13
19
  <meta charset="utf-8">
14
20
  <meta name="viewport" content="width=device-width, initial-scale=1">
15
21
  <meta name="color-scheme" content="dark">
16
- <title>${heading} | Mercator</title>
22
+ <title>${success ? 'Mercator' : `${heading} | Mercator`}</title>
17
23
  <style>
18
24
  :root{color-scheme:dark;font-family:Geist,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0b0b0b;color:#f2f1ec}
19
25
  *{box-sizing:border-box}
@@ -29,6 +35,8 @@ main{position:relative;z-index:1;display:grid;place-items:center;width:calc(100%
29
35
  h1{max-width:740px;margin:0;font-size:clamp(48px,7vw,76px);font-weight:400;letter-spacing:-.04em;line-height:.98;text-wrap:balance}
30
36
  .subtitle{max-width:520px;margin:28px auto 0;color:rgb(242 241 236/78%);font-size:clamp(17px,2vw,21px);line-height:1.5;text-wrap:balance}
31
37
  .panel{position:relative;width:min(100%,520px);margin-top:46px;filter:drop-shadow(0 24px 36px rgb(0 0 0/22%))}
38
+ .success main{position:absolute;inset:0;width:calc(100% - 40px);min-height:100svh;padding:32px 0}
39
+ .success .panel{margin-top:0}
32
40
  .panel::before{position:absolute;z-index:-1;inset:0;background:#080808;box-shadow:inset 0 0 0 1px rgb(242 241 236/16%);content:"";transform:translate(12px,12px)}
33
41
  .surface{display:grid;justify-items:center;padding:36px 34px;background:#070707;box-shadow:inset 0 0 0 1px rgb(242 241 236/18%)}
34
42
  .eyebrow{display:inline-flex;margin:0 0 14px;padding:7px 10px;border:.5px solid rgb(185 163 255/20%);border-radius:999px;background:rgb(185 163 255/8%);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px;font-weight:520;letter-spacing:.1em;line-height:1.2;text-transform:uppercase}
@@ -41,21 +49,20 @@ h2{margin:0;color:#f2f1ec;font-size:25px;font-weight:500;letter-spacing:-.03em;l
41
49
  @media(prefers-reduced-motion:reduce){.eyebrow span{animation:none}}
42
50
  </style>
43
51
  </head>
44
- <body>
52
+ <body class="${state}">
45
53
  <header class="header" aria-label="Mercator">
46
54
  <svg class="globe" viewBox="0 0 32 32" fill="none" aria-hidden="true"><circle cx="16" cy="16" r="14.5" stroke="currentColor"/><ellipse cx="16" cy="16" rx="7" ry="14.5" stroke="currentColor"/><path d="M1.5 16h29M4.5 8.5h23M4.5 23.5h23" stroke="currentColor"/></svg>
47
55
  <span class="brand">MERCATOR</span><span class="divider"></span><span class="powered">Powered by MPP</span>
48
56
  </header>
49
57
  <main>
50
- <section class="content" aria-labelledby="callback-heading">
51
- <h1 id="callback-heading">${heading}</h1>
52
- <p class="subtitle">${success ? 'Mercator is ready to use from your CLI.' : 'The connection was not completed.'}</p>
58
+ <section class="content"${success ? '' : ' aria-labelledby="callback-heading"'}>
59
+ ${status}
53
60
  <div class="panel">
54
61
  <div class="surface">
55
- <p class="eyebrow"><span>${eyebrow}</span></p>
62
+ ${eyebrowMarkup}
56
63
  <h2>${panelHeading}</h2>
57
64
  <p class="message">${description}</p>
58
- <p class="hint">${success ? 'Continue in your terminal' : 'Try again from your terminal'}</p>
65
+ ${hint}
59
66
  </div>
60
67
  </div>
61
68
  </section>
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-callback-page.js","sourceRoot":"","sources":["../src/oauth-callback-page.ts"],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W,GAAG,OAAO;QAC1B,CAAC,CAAC,qEAAqE;QACvE,CAAC,CAAC,wDAAwD,CAAA;IAC3D,MAAM,MAAM,GAAG,OAAO;QACrB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,6BAA6B,OAAO;0DACkB,CAAA;IACzD,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,4BAA4B,OAAO,aAAa,CAAA;IACrF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,kDAAkD,CAAA;IAE9E,OAAO;;;;;;SAMC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA8BxC,KAAK;;;;;;0BAMM,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,qCAAqC;EAC5E,MAAM;;;EAGN,aAAa;MACT,YAAY;qBACG,WAAW;EAC9B,IAAI;;;;;;QAME,CAAA;AACR,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempoxyz/mercator",
3
- "version": "0.0.519",
3
+ "version": "0.0.520",
4
4
  "description": "Connect agent clients to the Mercator remote MCP server",
5
5
  "type": "module",
6
6
  "bin": {