githits 0.1.1 → 0.1.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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  version
4
- } from "./shared/chunk-3ne7e7xh.js";
4
+ } from "./shared/chunk-8dn0z2ja.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import { Command } from "commander";
@@ -1189,6 +1189,8 @@ function requireAuth(deps, context) {
1189
1189
  console.log(` githits login
1190
1190
  `);
1191
1191
  console.log("Or set GITHITS_API_TOKEN environment variable.");
1192
+ console.log(`
1193
+ Need help? support@githits.com`);
1192
1194
  throw new AuthRequiredError(`Authentication required${suffix}`);
1193
1195
  }
1194
1196
 
@@ -1709,7 +1711,6 @@ function createMcpServer(deps) {
1709
1711
  return server;
1710
1712
  }
1711
1713
  async function startMcpServer(deps) {
1712
- requireAuth(deps, "to start MCP server");
1713
1714
  const server = createMcpServer(deps);
1714
1715
  const transport = new StdioServerTransport;
1715
1716
  await server.connect(transport);
@@ -1741,27 +1742,15 @@ Available tools: search, search_language, feedback`).action(async () => {
1741
1742
  showMcpSetupInstructions();
1742
1743
  return;
1743
1744
  }
1744
- try {
1745
- const deps = await createContainer();
1746
- await startMcpServer(deps);
1747
- } catch (error) {
1748
- if (error instanceof AuthRequiredError)
1749
- process.exit(1);
1750
- throw error;
1751
- }
1745
+ const deps = await createContainer();
1746
+ await startMcpServer(deps);
1752
1747
  });
1753
1748
  mcpCommand.command("start").summary("Start MCP server (stdio mode)").description(`Start the MCP server using STDIO transport.
1754
1749
 
1755
1750
  This command explicitly starts the server and is intended for use
1756
1751
  in MCP configuration files. Use 'githits mcp' for interactive setup.`).action(async () => {
1757
- try {
1758
- const deps = await createContainer();
1759
- await startMcpServer(deps);
1760
- } catch (error) {
1761
- if (error instanceof AuthRequiredError)
1762
- process.exit(1);
1763
- throw error;
1764
- }
1752
+ const deps = await createContainer();
1753
+ await startMcpServer(deps);
1765
1754
  });
1766
1755
  }
1767
1756
  // src/commands/search.ts
@@ -1820,7 +1809,9 @@ Getting started:
1820
1809
  githits mcp Start MCP server for your AI assistant
1821
1810
  githits search "query" --lang python Search for code examples
1822
1811
 
1823
- Learn more at https://githits.com`);
1812
+ Learn more at https://githits.com
1813
+ Docs: https://app.githits.com/docs/
1814
+ Support: support@githits.com`);
1824
1815
  registerLoginCommand(program);
1825
1816
  registerLogoutCommand(program);
1826
1817
  registerMcpCommand(program);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  version
3
- } from "./shared/chunk-3ne7e7xh.js";
3
+ } from "./shared/chunk-8dn0z2ja.js";
4
4
  export {
5
5
  version
6
6
  };
@@ -1,4 +1,4 @@
1
1
  // package.json
2
- var version = "0.1.1";
2
+ var version = "0.1.3";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "githits",
3
3
  "description": "CLI companion for GitHits - code examples from global open source for developers and AI assistants",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",