@stackone/cli 1.9.2 → 1.9.3

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.
package/dist/cli.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=require(`./cliCore-xqwgmaz9.cjs`),t=new e.CLI;t.run();
2
+ const e=require(`./cliCore-DVRzfEhV.cjs`),t=new e.CLI;t.run();
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{CLI as e}from"./cliCore-BFE-6X6w.js";const t=new e;t.run();
2
+ import{CLI as e}from"./cliCore-_ngOl27x.js";const t=new e;t.run();
@@ -7,7 +7,7 @@ Setup cancelled.`)),process.exit(0)),console.log()}let a=await C(),o;if(a?.email
7
7
  `)),process.exit(1)),l.succeed(`Login successful!`);let m=new Date(Date.now()+1440*60*1e3).toISOString();await S({apiKey:u.apiKey,userId:o,email:o,expiresAt:m,serverUrl:T()}),y.success(`API key saved to ~/.stackone/agent-config.json`),console.log(t.default.white(`✓ Key expires at`),t.default.cyan(P(m)));let h=(0,s.default)(`Setting up global MCP configuration...`).start();try{let e=E(),n=T();try{await N(`claude mcp remove ${e} 2>/dev/null`)}catch{}let r=`claude mcp add ${e} ${n} --scope user --transport http --header "Authorization: Bearer ${u.apiKey}"`;await N(r),h.succeed(`Installed to Claude (global)`),y.success(`Global setup complete!`),console.log(t.default.white(`Config location:`),t.default.cyan(`~/.claude.json`)),console.log(t.default.blue(`
8
8
  Verify:`),t.default.cyan(`claude mcp list`)),console.log(t.default.dim(`
9
9
  💡 Tip: Run Claude without permission prompts:`),t.default.cyan(`claude --dangerously-skip-permissions`)),console.log(t.default.dim(`
10
- To setup for a specific project, run:`),t.default.cyan(`stackone agent setup --local`)),console.log(``)}catch(e){h.fail(`Installation to Claude failed`),e instanceof Error&&(y.error(e.message),console.error(t.default.dim(`You can manually add the server later with:`)),console.error(t.default.cyan(` claude mcp add ${E()} ${T()} --scope user --transport http --header "Authorization: Bearer ${u.apiKey}"`)))}process.exit(0)}catch(e){e instanceof Error?y.error(e.message):y.error(`Unknown error occurred`),process.exit(1)}}};const I=(0,o.promisify)(r.exec),L=(0,m.fileURLToPath)(require(`url`).pathToFileURL(__filename).href),R=(0,a.dirname)(L);async function z(){let e=(0,a.join)(R,`..`,`..`,`..`,`CLAUDE_TEMPLATE.md`);try{return await(0,i.readFile)(e,`utf-8`)}catch{return`# 🚀 STACKONE API CONFIG BUILDER
10
+ To setup for a specific project, run:`),t.default.cyan(`stackone agent setup --local`)),console.log(``)}catch(e){h.fail(`Installation to Claude failed`),e instanceof Error&&(y.error(e.message),console.error(t.default.dim(`You can manually add the server later with:`)),console.error(t.default.cyan(` claude mcp add ${E()} ${T()} --scope user --transport http --header "Authorization: Bearer ${u.apiKey}"`)))}process.exit(0)}catch(e){e instanceof Error?y.error(e.message):y.error(`Unknown error occurred`),process.exit(1)}}};const I=(0,o.promisify)(r.exec),L=(0,m.fileURLToPath)(require(`url`).pathToFileURL(__filename).href),R=(0,a.dirname)(L);async function z(){let e=(0,a.join)(R,`..`,`CLAUDE_TEMPLATE.md`);try{return await(0,i.readFile)(e,`utf-8`)}catch{return`# 🚀 STACKONE API CONFIG BUILDER
11
11
 
12
12
  This document provides the complete methodology for building StackOne API configurations with Claude. Follow this strict workflow to ensure comprehensive, tested, and customer-valuable integrations.
13
13
 
@@ -7,7 +7,7 @@ Setup cancelled.`)),process.exit(0)),console.log()}let i=await P(),o;if(i?.email
7
7
  `)),process.exit(1)),c.succeed(`Login successful!`);let u=new Date(Date.now()+1440*60*1e3).toISOString();await N({apiKey:l.apiKey,userId:o,email:o,expiresAt:u,serverUrl:F()}),A.success(`API key saved to ~/.stackone/agent-config.json`),console.log(t.white(`✓ Key expires at`),t.cyan(W(u)));let f=d(`Setting up global MCP configuration...`).start();try{let e=I(),n=F();try{await U(`claude mcp remove ${e} 2>/dev/null`)}catch{}let r=`claude mcp add ${e} ${n} --scope user --transport http --header "Authorization: Bearer ${l.apiKey}"`;await U(r),f.succeed(`Installed to Claude (global)`),A.success(`Global setup complete!`),console.log(t.white(`Config location:`),t.cyan(`~/.claude.json`)),console.log(t.blue(`
8
8
  Verify:`),t.cyan(`claude mcp list`)),console.log(t.dim(`
9
9
  💡 Tip: Run Claude without permission prompts:`),t.cyan(`claude --dangerously-skip-permissions`)),console.log(t.dim(`
10
- To setup for a specific project, run:`),t.cyan(`stackone agent setup --local`)),console.log(``)}catch(e){f.fail(`Installation to Claude failed`),e instanceof Error&&(A.error(e.message),console.error(t.dim(`You can manually add the server later with:`)),console.error(t.cyan(` claude mcp add ${I()} ${F()} --scope user --transport http --header "Authorization: Bearer ${l.apiKey}"`)))}process.exit(0)}catch(e){e instanceof Error?A.error(e.message):A.error(`Unknown error occurred`),process.exit(1)}}};const G=u(i),ue=ne(import.meta.url),de=c(ue);async function fe(){let e=l(de,`..`,`..`,`..`,`CLAUDE_TEMPLATE.md`);try{return await o(e,`utf-8`)}catch{return`# 🚀 STACKONE API CONFIG BUILDER
10
+ To setup for a specific project, run:`),t.cyan(`stackone agent setup --local`)),console.log(``)}catch(e){f.fail(`Installation to Claude failed`),e instanceof Error&&(A.error(e.message),console.error(t.dim(`You can manually add the server later with:`)),console.error(t.cyan(` claude mcp add ${I()} ${F()} --scope user --transport http --header "Authorization: Bearer ${l.apiKey}"`)))}process.exit(0)}catch(e){e instanceof Error?A.error(e.message):A.error(`Unknown error occurred`),process.exit(1)}}};const G=u(i),ue=ne(import.meta.url),de=c(ue);async function fe(){let e=l(de,`..`,`CLAUDE_TEMPLATE.md`);try{return await o(e,`utf-8`)}catch{return`# 🚀 STACKONE API CONFIG BUILDER
11
11
 
12
12
  This document provides the complete methodology for building StackOne API configurations with Claude. Follow this strict workflow to ensure comprehensive, tested, and customer-valuable integrations.
13
13
 
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./cliCore-xqwgmaz9.cjs`);exports.CLI=e.CLI;
1
+ const e=require(`./cliCore-DVRzfEhV.cjs`);exports.CLI=e.CLI;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{CLI as e}from"./cliCore-BFE-6X6w.js";export{e as CLI};
1
+ import{CLI as e}from"./cliCore-_ngOl27x.js";export{e as CLI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/cli",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "StackOne Connect CLI tool",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",