@nex-ai/nex 0.2.1 → 0.2.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/README.md +29 -17
- package/bin/nex-mcp.js +1 -1
- package/bin/nex.js +2 -2
- package/package.json +11 -9
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Nex:
|
|
1
|
+
# Nex: Intelligence Layer for AI Agents
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@nex-ai/nex)
|
|
4
4
|
[](https://discord.gg/gjSySC3PzV)
|
|
@@ -16,13 +16,10 @@ Talk to the team, share feedback, and connect with other developers building AI
|
|
|
16
16
|
### Install
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
# Option A:
|
|
19
|
+
# Option A: install the nex-cli binary (no Node.js required)
|
|
20
20
|
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-as-a-skill/main/install.sh | sh
|
|
21
21
|
|
|
22
|
-
# Option B: install
|
|
23
|
-
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-cli/main/install.sh | sh
|
|
24
|
-
|
|
25
|
-
# Option C: install via npm (or bun/pnpm)
|
|
22
|
+
# Option B: install via npm (or bun/pnpm) — thin shim that delegates to nex-cli
|
|
26
23
|
npm install -g @nex-ai/nex
|
|
27
24
|
```
|
|
28
25
|
|
|
@@ -165,6 +162,25 @@ Or without a global install:
|
|
|
165
162
|
}
|
|
166
163
|
```
|
|
167
164
|
|
|
165
|
+
### Remote MCP Server (no install required)
|
|
166
|
+
|
|
167
|
+
Connect directly to the hosted Nex MCP server. No local installation needed — works with any MCP client that supports Streamable HTTP transport.
|
|
168
|
+
|
|
169
|
+
```json
|
|
170
|
+
{
|
|
171
|
+
"mcpServers": {
|
|
172
|
+
"nex": {
|
|
173
|
+
"url": "https://mcp.nex.ai/mcp",
|
|
174
|
+
"headers": {
|
|
175
|
+
"Authorization": "Bearer sk-your_key_here"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Get an API key at [app.nex.ai/settings/developers](https://app.nex.ai/settings/developers).
|
|
183
|
+
|
|
168
184
|
### Shell-only Agents (no Node.js)
|
|
169
185
|
|
|
170
186
|
Bash scripts for agents that can only run shell commands. Requires `curl` and `jq`.
|
|
@@ -204,9 +220,7 @@ Do not stop after partial setup. Only pause if you need my email for registratio
|
|
|
204
220
|
### Repo structure
|
|
205
221
|
|
|
206
222
|
```text
|
|
207
|
-
|
|
208
|
-
bin/ # Thin Node.js shims that delegate to nex-cli (npm fallback)
|
|
209
|
-
install.sh # curl-pipe installer for the standalone binary
|
|
223
|
+
bin/ # Thin Node.js shims that delegate to nex-cli
|
|
210
224
|
claude-code-plugin/ # Claude Code hooks (auto-recall, auto-capture)
|
|
211
225
|
openclaw-plugin/ # OpenClaw plugin (15+ tools, auto-recall, auto-capture)
|
|
212
226
|
plugin-commands/ # Slash command definitions (.md files)
|
|
@@ -219,10 +233,6 @@ server.json # MCP Registry manifest
|
|
|
219
233
|
### Build and test
|
|
220
234
|
|
|
221
235
|
```bash
|
|
222
|
-
# Standalone binary (compiles via Bun)
|
|
223
|
-
bun run build:binary # native platform
|
|
224
|
-
bun run build:all # all 4 targets (darwin/linux × arm64/x64)
|
|
225
|
-
|
|
226
236
|
# Shims (syntax check only)
|
|
227
237
|
npm test
|
|
228
238
|
|
|
@@ -235,14 +245,16 @@ cd openclaw-plugin && bun install && bun run build && bun test
|
|
|
235
245
|
|
|
236
246
|
### How it works
|
|
237
247
|
|
|
238
|
-
**
|
|
248
|
+
**npm package** (`bin/nex.js`, `bin/nex-mcp.js`): Thin Node.js shims that find `nex-cli` on PATH or common install locations and delegate all commands. For `npx @nex-ai/nex` and MCP Registry compatibility.
|
|
239
249
|
|
|
240
|
-
|
|
250
|
+
The `nex-cli` binary is built and released from [nex-crm/nex-cli](https://github.com/nex-crm/nex-cli). Install it with:
|
|
251
|
+
```bash
|
|
252
|
+
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-as-a-skill/main/install.sh | sh
|
|
253
|
+
```
|
|
241
254
|
|
|
242
255
|
### CI/CD
|
|
243
256
|
|
|
244
|
-
- **CI** (`ci.yml`): Validates shims, builds + tests both plugins
|
|
245
|
-
- **Release** (`release.yml`): Cross-compiles 4 binary targets on `v*` tags, creates GitHub Release with checksums
|
|
257
|
+
- **CI** (`ci.yml`): Validates shims, builds + tests both plugins
|
|
246
258
|
- **Publish** (`publish-cli.yml`): Auto-publishes to npm on push to main
|
|
247
259
|
- **MCP Registry** (`publish-mcp.yml`): Publishes `server.json` to the MCP Registry on version tags
|
|
248
260
|
|
package/bin/nex-mcp.js
CHANGED
|
@@ -43,7 +43,7 @@ console.error(`
|
|
|
43
43
|
nex-cli binary not found.
|
|
44
44
|
|
|
45
45
|
Install it with:
|
|
46
|
-
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-
|
|
46
|
+
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-as-a-skill/main/install.sh | sh
|
|
47
47
|
|
|
48
48
|
Then run your command again.
|
|
49
49
|
`);
|
package/bin/nex.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Thin shim for @nex-ai/nex — delegates all commands to the nex-cli binary.
|
|
5
5
|
*
|
|
6
|
-
* Install the binary: curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-
|
|
6
|
+
* Install the binary: curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-as-a-skill/main/install.sh | sh
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { execFileSync } from "node:child_process";
|
|
@@ -46,7 +46,7 @@ console.error(`
|
|
|
46
46
|
nex-cli binary not found.
|
|
47
47
|
|
|
48
48
|
Install it with:
|
|
49
|
-
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-
|
|
49
|
+
curl -fsSL https://raw.githubusercontent.com/nex-crm/nex-as-a-skill/main/install.sh | sh
|
|
50
50
|
|
|
51
51
|
Then run your command again.
|
|
52
52
|
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nex-ai/nex",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Nex CLI provides organizational context & memory to AI agents. Connect email, CRM, Slack, meetings, and 100+ tools into one knowledge graph. Delegates to the nex-cli binary.",
|
|
5
5
|
"mcpName": "io.github.nex-crm/nex",
|
|
6
6
|
"type": "module",
|
|
@@ -32,13 +32,7 @@
|
|
|
32
32
|
"integrations"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
-
"test": "node --check bin/nex.js && node --check bin/nex-mcp.js"
|
|
36
|
-
"build:binary": "bun build --compile --minify src/nex.ts --outfile dist/nex",
|
|
37
|
-
"build:all": "bun run build:darwin-arm64 && bun run build:darwin-x64 && bun run build:linux-arm64 && bun run build:linux-x64",
|
|
38
|
-
"build:darwin-arm64": "bun build --compile --minify --target=bun-darwin-arm64 src/nex.ts --outfile dist/nex-darwin-arm64",
|
|
39
|
-
"build:darwin-x64": "bun build --compile --minify --target=bun-darwin-x64 src/nex.ts --outfile dist/nex-darwin-x64",
|
|
40
|
-
"build:linux-arm64": "bun build --compile --minify --target=bun-linux-arm64 src/nex.ts --outfile dist/nex-linux-arm64",
|
|
41
|
-
"build:linux-x64": "bun build --compile --minify --target=bun-linux-x64 src/nex.ts --outfile dist/nex-linux-x64"
|
|
35
|
+
"test": "node --check bin/nex.js && node --check bin/nex-mcp.js"
|
|
42
36
|
},
|
|
43
37
|
"repository": {
|
|
44
38
|
"type": "git",
|
|
@@ -54,5 +48,13 @@
|
|
|
54
48
|
"publishConfig": {
|
|
55
49
|
"access": "public"
|
|
56
50
|
},
|
|
57
|
-
"license": "MIT"
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@biomejs/biome": "^2.4.9",
|
|
54
|
+
"@commitlint/cli": "^19.0.0",
|
|
55
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
56
|
+
"@secretlint/secretlint-rule-preset-recommend": "^11.4.0",
|
|
57
|
+
"lefthook": "^1.11.0",
|
|
58
|
+
"secretlint": "^11.4.0"
|
|
59
|
+
}
|
|
58
60
|
}
|