gitnexushub 0.2.6 → 0.2.7

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 +9 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -88,12 +88,7 @@ program
88
88
  .name('gnx')
89
89
  .description('Connect your editor to GitNexus Hub')
90
90
  .version(PKG_VERSION);
91
- // ─── Default command: connect ─────────────────────────────────────
92
- const connectOpts = (cmd) => cmd
93
- .argument('[token]', 'gnx_ API token (optional if already saved)')
94
- .option('--editor <name>', 'Editor to configure: claude-code | cursor | windsurf | opencode')
95
- .option('--hub <url>', 'Hub URL', DEFAULT_HUB_URL)
96
- .option('--skip-project', 'Only configure MCP, skip project files');
91
+ // ─── connect command (also the default) ──────────────────────────
97
92
  const connectAction = async (tokenArg, opts) => {
98
93
  try {
99
94
  printBanner();
@@ -106,10 +101,14 @@ const connectAction = async (tokenArg, opts) => {
106
101
  process.exit(1);
107
102
  }
108
103
  };
109
- // `gnx <token>` (default)
110
- connectOpts(program).action(connectAction);
111
- // `gnx connect <token>` (explicit)
112
- connectOpts(program.command('connect').description('Register Hub MCP, install skills, and write project files')).action(connectAction);
104
+ program
105
+ .command('connect', { isDefault: true })
106
+ .description('Register Hub MCP, install skills, and write project files')
107
+ .argument('[token]', 'gnx_ API token (optional if already saved)')
108
+ .option('--editor <name>', 'Editor to configure: claude-code | cursor | windsurf | opencode')
109
+ .option('--hub <url>', 'Hub URL', DEFAULT_HUB_URL)
110
+ .option('--skip-project', 'Only configure MCP, skip project files')
111
+ .action(connectAction);
113
112
  // ─── disconnect command ───────────────────────────────────────────
114
113
  program
115
114
  .command('disconnect')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexushub",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Connect your editor to GitNexus Hub — one command MCP setup + project context",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",