@dosu/cli 0.3.2 → 0.3.4

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 +7 -42
  2. package/package.json +2 -2
package/bin/dosu.js CHANGED
@@ -3807,25 +3807,10 @@ h1 {
3807
3807
  color: #999;
3808
3808
  margin-bottom: 28px;
3809
3809
  }
3810
- .card {
3811
- background: #fff;
3812
- border: 1px solid #eaeaea;
3813
- border-radius: 8px;
3814
- padding: 16px 20px;
3810
+ .close-msg {
3811
+ margin-top: 4px;
3815
3812
  font-size: 16px;
3816
3813
  color: #666;
3817
- line-height: 1.5;
3818
- cursor: pointer;
3819
- transition: background 0.15s, border-color 0.15s;
3820
- }
3821
- .card:hover {
3822
- background: #f5f5f5;
3823
- border-color: #ccc;
3824
- }
3825
- .close-hint {
3826
- margin-top: 20px;
3827
- font-size: 14px;
3828
- color: #999;
3829
3814
  }
3830
3815
  </style>
3831
3816
  </head>
@@ -3848,25 +3833,8 @@ h1 {
3848
3833
  <h1>Authentication Successful</h1>
3849
3834
  <p class="subtitle">You're all set. The CLI is now authenticated.</p>
3850
3835
  ${emailLine}
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>
3836
+ <p class="close-msg">You can close this tab and return to your terminal.</p>
3853
3837
  </div>
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
- }
3867
- var s=10,el=document.getElementById('countdown');
3868
- var t=setInterval(function(){if(--s<=0){clearInterval(t);tryClose();}el.textContent=s;},1000);
3869
- </script>
3870
3838
  </body>
3871
3839
  </html>`;
3872
3840
  }
@@ -4622,7 +4590,7 @@ Run ${info("dosu mcp add <tool>")} to manually configure a tool.`);
4622
4590
  const results = stepConfigureTools(cfg, selection);
4623
4591
  stepShowSummary(results, cfg.mode);
4624
4592
  if (cfg.mode === MODE_OSS) {
4625
- Se("Setup complete! Using open-source libraries only.\nRun `dosu setup` again to connect your own repos.");
4593
+ Se("Setup complete! Using open-source libraries only.\n\nTips: Run `dosu setup` again to connect your own repos.");
4626
4594
  } else {
4627
4595
  Se("\uD83C\uDF89 Setup complete!");
4628
4596
  }
@@ -4684,8 +4652,7 @@ async function openBrowserForSetup(cfg, opts) {
4684
4652
  cfg.access_token = token.access_token;
4685
4653
  cfg.refresh_token = token.refresh_token;
4686
4654
  cfg.expires_at = Math.floor(Date.now() / 1000) + token.expires_in;
4687
- if (token.mode === MODE_OSS)
4688
- cfg.mode = MODE_OSS;
4655
+ cfg.mode = token.mode === MODE_OSS ? MODE_OSS : undefined;
4689
4656
  saveConfig(cfg);
4690
4657
  return cfg;
4691
4658
  } catch (err) {
@@ -5100,11 +5067,9 @@ init_config();
5100
5067
  init_providers();
5101
5068
 
5102
5069
  // src/version/version.ts
5103
- var VERSION = "0.3.2";
5104
- var COMMIT = "none";
5105
- var DATE = "unknown";
5070
+ var VERSION = "0.3.4";
5106
5071
  function getVersionString() {
5107
- return `dosu ${VERSION} (${COMMIT}, ${DATE})`;
5072
+ return `v${VERSION}`;
5108
5073
  }
5109
5074
 
5110
5075
  // src/cli/cli.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Manage MCP servers for AI tools",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "scripts": {
20
20
  "dev": "bun run src/index.ts",
21
21
  "dev:local": "DOSU_DEV=true bun run src/index.ts",
22
- "build": "bun --env-file=.env.production build --compile --env=DOSU_* --env=SUPABASE_* src/index.ts --outfile bin/dosu",
22
+ "build": "bun --env-file=.env.production run scripts/build-compile.ts",
23
23
  "build:npm": "bun --env-file=.env.production run scripts/build-npm.ts",
24
24
  "build:all": "bun --env-file=.env.production run scripts/build-all.ts",
25
25
  "test": "bunx vitest run",