@dosu/cli 0.3.1 → 0.3.2

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/bin/dosu.js +16 -4
  2. package/package.json +1 -1
package/bin/dosu.js CHANGED
@@ -3848,12 +3848,24 @@ h1 {
3848
3848
  <h1>Authentication Successful</h1>
3849
3849
  <p class="subtitle">You're all set. The CLI is now authenticated.</p>
3850
3850
  ${emailLine}
3851
- <div class="card" onclick="window.close()">Close this tab and return to your terminal.</div>
3852
- <p class="close-hint">This tab will close automatically in <span id="countdown">10</span>s</p>
3851
+ <div class="card" id="close-card" onclick="tryClose()">Close this tab and return to your terminal.</div>
3852
+ <p class="close-hint" id="close-hint">This tab will close automatically in <span id="countdown">10</span>s</p>
3853
3853
  </div>
3854
3854
  <script>
3855
+ function tryClose(){
3856
+ window.close();
3857
+ setTimeout(function(){
3858
+ var c=document.getElementById('close-card');
3859
+ c.textContent='You can close this tab now.';
3860
+ c.style.cursor='default';
3861
+ c.onclick=null;
3862
+ var h=document.getElementById('close-hint');
3863
+ if(h)h.style.display='none';
3864
+ clearInterval(t);
3865
+ },500);
3866
+ }
3855
3867
  var s=10,el=document.getElementById('countdown');
3856
- var t=setInterval(function(){if(--s<=0){clearInterval(t);window.close();}el.textContent=s;},1000);
3868
+ var t=setInterval(function(){if(--s<=0){clearInterval(t);tryClose();}el.textContent=s;},1000);
3857
3869
  </script>
3858
3870
  </body>
3859
3871
  </html>`;
@@ -5088,7 +5100,7 @@ init_config();
5088
5100
  init_providers();
5089
5101
 
5090
5102
  // src/version/version.ts
5091
- var VERSION = "0.3.1";
5103
+ var VERSION = "0.3.2";
5092
5104
  var COMMIT = "none";
5093
5105
  var DATE = "unknown";
5094
5106
  function getVersionString() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Manage MCP servers for AI tools",
6
6
  "license": "MIT",