@indexnetwork/cli 0.30.0-rc.100.1 → 0.30.0-rc.102.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.
Files changed (2) hide show
  1. package/dist/index.js +36 -25
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -922,38 +922,49 @@ async function handleLogin(apiUrl, appUrl, store, options = {}) {
922
922
  };
923
923
  }
924
924
  var WORDMARK_SVG = `<svg viewBox="0 0 522 44" fill="none" xmlns="http://www.w3.org/2000/svg">
925
- <path d="M184.51 21.66C184.51 18.33 187.42 15.73 191.23 15.73C195.04 15.73 197.95 18.33 197.95 21.66C197.95 24.99 195.1 27.54 191.23 27.54C187.36 27.54 184.51 25 184.51 21.66Z" fill="white"/>
926
- <path d="M0 0.72998H7.47V42.61H0V0.72998Z" fill="white"/>
927
- <path d="M16.6301 0.72998H25.0701L44.3701 27.26H45.4001V0.72998H52.9301V42.61H44.4301L25.1901 16.08H24.1001V42.61H16.6301V0.72998Z" fill="white"/>
928
- <path d="M99.91 21.67C99.91 33.63 90.74 42.61 78.54 42.61H62.03V0.72998H78.54C90.74 0.72998 99.91 9.70995 99.91 21.67ZM92.2 21.67C92.2 14.93 86.25 9.88998 78.3 9.88998H69.5V33.44H78.3C86.25 33.44 92.2 28.4 92.2 21.66V21.67Z" fill="white"/>
929
- <path d="M137.61 33.45V42.62H107.08V0.73999H137.31V9.91H114.55V17.13H135.31V25.99H114.55V33.46H137.62L137.61 33.45Z" fill="white"/>
930
- <path d="M167.53 21.7899L181.49 42.61H172.75L162.43 27.86H160.97L150.71 42.61H141.3L155.56 21.37L141.84 0.72998H150.58L160.66 15.36H162.06L172.14 0.72998H181.55L167.53 21.7899Z" fill="white"/>
931
- <path d="M209.87 0.72998H218.31L237.61 27.26H238.64V0.72998H246.17V42.61H237.67L218.43 16.08H217.34V42.61H209.87V0.72998Z" fill="white"/>
932
- <path d="M285.8 33.45V42.62H255.27V0.73999H285.5V9.91H262.74V17.13H283.5V25.99H262.74V33.46H285.81L285.8 33.45Z" fill="white"/>
933
- <path d="M324.77 9.88998H311.48V42.61H304.01V9.88998H290.72V0.719971H324.77V9.88998Z" fill="white"/>
934
- <path d="M328.96 0.72998H336.91L346.14 28.35H347.41L356.09 0.72998H362.71L371.45 28.35H372.79L381.89 0.72998H390.33L376.92 42.61H368.42L360.59 17.24H358.71L350.88 42.61H342.38L328.97 0.72998H328.96Z" fill="white"/>
935
- <path d="M391.54 21.67C391.54 9.34998 401.07 0 413.7 0C426.33 0 435.86 9.34998 435.86 21.67C435.86 33.99 426.33 43.34 413.7 43.34C401.07 43.34 391.54 33.99 391.54 21.67ZM428.14 21.67C428.14 14.63 421.89 9.35004 413.69 9.35004C405.49 9.35004 399.24 14.63 399.24 21.67C399.24 28.71 405.49 33.99 413.69 33.99C421.89 33.99 428.14 28.71 428.14 21.67Z" fill="white"/>
936
- <path d="M459.46 29.5H450.42V42.61H442.95V0.72998H462.13C470.57 0.72998 477 6.91996 477 15.12C477 21.31 473.36 26.35 467.9 28.47L477.55 42.61H468.45L459.47 29.5H459.46ZM450.42 20.33H461.95C466.44 20.33 469.23 18.27 469.23 15.11C469.23 11.95 466.44 9.88998 461.95 9.88998H450.42V20.33Z" fill="white"/>
937
- <path d="M497.83 25.56L491.4 30.96V42.61H483.93V0.72998H491.4V17.67H492.92L509.07 0.72998H521.03L503.31 20.21L521.46 42.61H512.11L497.85 25.55L497.83 25.56Z" fill="white"/>
925
+ <path d="M184.51 21.66C184.51 18.33 187.42 15.73 191.23 15.73C195.04 15.73 197.95 18.33 197.95 21.66C197.95 24.99 195.1 27.54 191.23 27.54C187.36 27.54 184.51 25 184.51 21.66Z" fill="currentColor"/>
926
+ <path d="M0 0.72998H7.47V42.61H0V0.72998Z" fill="currentColor"/>
927
+ <path d="M16.6301 0.72998H25.0701L44.3701 27.26H45.4001V0.72998H52.9301V42.61H44.4301L25.1901 16.08H24.1001V42.61H16.6301V0.72998Z" fill="currentColor"/>
928
+ <path d="M99.91 21.67C99.91 33.63 90.74 42.61 78.54 42.61H62.03V0.72998H78.54C90.74 0.72998 99.91 9.70995 99.91 21.67ZM92.2 21.67C92.2 14.93 86.25 9.88998 78.3 9.88998H69.5V33.44H78.3C86.25 33.44 92.2 28.4 92.2 21.66V21.67Z" fill="currentColor"/>
929
+ <path d="M137.61 33.45V42.62H107.08V0.73999H137.31V9.91H114.55V17.13H135.31V25.99H114.55V33.46H137.62L137.61 33.45Z" fill="currentColor"/>
930
+ <path d="M167.53 21.7899L181.49 42.61H172.75L162.43 27.86H160.97L150.71 42.61H141.3L155.56 21.37L141.84 0.72998H150.58L160.66 15.36H162.06L172.14 0.72998H181.55L167.53 21.7899Z" fill="currentColor"/>
931
+ <path d="M209.87 0.72998H218.31L237.61 27.26H238.64V0.72998H246.17V42.61H237.67L218.43 16.08H217.34V42.61H209.87V0.72998Z" fill="currentColor"/>
932
+ <path d="M285.8 33.45V42.62H255.27V0.73999H285.5V9.91H262.74V17.13H283.5V25.99H262.74V33.46H285.81L285.8 33.45Z" fill="currentColor"/>
933
+ <path d="M324.77 9.88998H311.48V42.61H304.01V9.88998H290.72V0.719971H324.77V9.88998Z" fill="currentColor"/>
934
+ <path d="M328.96 0.72998H336.91L346.14 28.35H347.41L356.09 0.72998H362.71L371.45 28.35H372.79L381.89 0.72998H390.33L376.92 42.61H368.42L360.59 17.24H358.71L350.88 42.61H342.38L328.97 0.72998H328.96Z" fill="currentColor"/>
935
+ <path d="M391.54 21.67C391.54 9.34998 401.07 0 413.7 0C426.33 0 435.86 9.34998 435.86 21.67C435.86 33.99 426.33 43.34 413.7 43.34C401.07 43.34 391.54 33.99 391.54 21.67ZM428.14 21.67C428.14 14.63 421.89 9.35004 413.69 9.35004C405.49 9.35004 399.24 14.63 399.24 21.67C399.24 28.71 405.49 33.99 413.69 33.99C421.89 33.99 428.14 28.71 428.14 21.67Z" fill="currentColor"/>
936
+ <path d="M459.46 29.5H450.42V42.61H442.95V0.72998H462.13C470.57 0.72998 477 6.91996 477 15.12C477 21.31 473.36 26.35 467.9 28.47L477.55 42.61H468.45L459.47 29.5H459.46ZM450.42 20.33H461.95C466.44 20.33 469.23 18.27 469.23 15.11C469.23 11.95 466.44 9.88998 461.95 9.88998H450.42V20.33Z" fill="currentColor"/>
937
+ <path d="M497.83 25.56L491.4 30.96V42.61H483.93V0.72998H491.4V17.67H492.92L509.07 0.72998H521.03L503.31 20.21L521.46 42.61H512.11L497.85 25.55L497.83 25.56Z" fill="currentColor"/>
938
938
  </svg>`;
939
939
  function callbackHtml(title, message, ok = false) {
940
- const check = ok ? `<div class="check"><svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="#0b1612" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg></div>` : "";
941
- return `<!doctype html><html><head><meta charset="utf-8"><title>${title} · index</title>
940
+ const tag = ok ? `<span class="tag">signed in</span>` : "";
941
+ return `<!doctype html><html lang="en"><head><meta charset="utf-8">
942
+ <meta name="viewport" content="width=device-width, initial-scale=1">
943
+ <title>${title} · Index</title>
942
944
  <link rel="preconnect" href="https://fonts.googleapis.com">
943
945
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
944
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Public+Sans:wght@300;400;500;600&display=swap">
946
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400&family=Public+Sans:wght@300;400;500&display=swap">
945
947
  <style>
946
- body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#14241f;color:#F4FBF6;font-family:'Public Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
947
- .nav{display:flex;align-items:center;padding:22px 56px}
948
+ :root{--ink:#041729;--bg:#FCFEFB;--body:#2E3B45;--green:#123A00;--mono:'SF Mono',Menlo,Consolas,monospace}
949
+ *{box-sizing:border-box}
950
+ html,body{margin:0;background:var(--bg);color:var(--ink)}
951
+ body{min-height:100vh;display:flex;flex-direction:column;font-family:'Public Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
952
+ .col{width:100%;max-width:836px;margin:0 auto;padding:0 24px}
953
+ .nav{padding:26px 0;color:var(--ink)}
948
954
  .nav svg{height:14px;width:auto;display:block}
949
- main{flex:1;display:flex;align-items:center;justify-content:center;padding:24px}
950
- .c{text-align:center;max-width:420px}
951
- .check{width:56px;height:56px;margin:0 auto 26px;border-radius:50%;background:#3FBF7F;display:flex;align-items:center;justify-content:center}
952
- h1{font-size:20px;font-weight:600;margin:0 0 10px}
953
- p{font-size:14px;font-weight:500;margin:0;color:rgba(244,251,246,0.78)}
955
+ main{flex:1;display:flex;align-items:center}
956
+ .c{display:flex;flex-direction:column;align-items:flex-start;gap:22px;padding:40px 0 12vh;max-width:520px}
957
+ .tag{display:inline-flex;font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;padding:5px 9px;background:#E3F0DE;color:var(--green)}
958
+ h1{margin:0;font-family:'Source Serif 4',Georgia,serif;font-weight:400;font-size:40px;line-height:1.2;letter-spacing:-.015em}
959
+ p{margin:0;font-size:15px;line-height:1.7;font-weight:300;color:var(--body)}
960
+ footer{padding:24px 0;font-family:var(--mono);font-size:11px;color:var(--green)}
961
+ @media (max-width:520px){h1{font-size:32px}}
954
962
  </style></head>
955
- <body><nav class="nav">${WORDMARK_SVG}</nav>
956
- <main><div class="c">${check}<h1>${title}</h1><p>${message}</p></div></main></body></html>`;
963
+ <body>
964
+ <div class="col"><nav class="nav" aria-label="Index Network">${WORDMARK_SVG}</nav></div>
965
+ <main><div class="col"><div class="c">${tag}<h1>${title}</h1><p>${message}</p></div></div></main>
966
+ <div class="col"><footer>index.network</footer></div>
967
+ </body></html>`;
957
968
  }
958
969
 
959
970
  // src/logout.command.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/cli",
3
- "version": "0.30.0-rc.100.1",
3
+ "version": "0.30.0-rc.102.1",
4
4
  "description": "Command-line interface for Index Network",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,10 +20,10 @@
20
20
  "publish:all": "bun scripts/publish.ts"
21
21
  },
22
22
  "optionalDependencies": {
23
- "@indexnetwork/cli-linux-x64": "0.30.0-rc.100.1",
24
- "@indexnetwork/cli-linux-arm64": "0.30.0-rc.100.1",
25
- "@indexnetwork/cli-darwin-x64": "0.30.0-rc.100.1",
26
- "@indexnetwork/cli-darwin-arm64": "0.30.0-rc.100.1"
23
+ "@indexnetwork/cli-linux-x64": "0.30.0-rc.102.1",
24
+ "@indexnetwork/cli-linux-arm64": "0.30.0-rc.102.1",
25
+ "@indexnetwork/cli-darwin-x64": "0.30.0-rc.102.1",
26
+ "@indexnetwork/cli-darwin-arm64": "0.30.0-rc.102.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bun": "1.3.14"