@nyex/nyex 0.1.3-beta.1 → 1.0.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 +129 -54
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,80 +1,155 @@
|
|
|
1
|
-
# NYEX
|
|
1
|
+
# NYEX
|
|
2
2
|
|
|
3
|
-
NYEX is a
|
|
3
|
+
NYEX is a terminal-first AI workspace for real developer workflows: identity-gated access, deterministic multi-provider routing, and guardrails designed to keep teams shipping with confidence.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **Defaults (v1.0.2+)**
|
|
6
|
+
> - **Strict Cloud Mode: ON** (cloud failures do **not** silently fall back to local)
|
|
7
|
+
> - **Local Mode: OFF** (the local proxy never starts unless you explicitly enable it)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm i -g @nyex/nyex
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Verify:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
nyex --version
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Quick start
|
|
26
|
+
|
|
27
|
+
### 1) Login (NYEX account)
|
|
28
|
+
|
|
29
|
+
NYEX requires an account session before execution.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
nyex auth login
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This opens the device login page and binds your session locally.
|
|
36
|
+
|
|
37
|
+
### 2) Check status
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
nyex /status
|
|
41
|
+
nyex /doctor
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
What to look for:
|
|
45
|
+
- `strict_cloud_mode: true`
|
|
46
|
+
- `local_mode_enabled: false`
|
|
47
|
+
- `Proxy: disabled`
|
|
48
|
+
- Auth endpoint should be `https://auth.nyex.ai`
|
|
49
|
+
|
|
50
|
+
### 3) Ask something
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
nyex exec "what is 1+1?"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
8
57
|
|
|
9
|
-
|
|
58
|
+
## Providers and roles
|
|
10
59
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- **NYEX-first auth gate**
|
|
14
|
-
First run starts with NYEX sign-in, then provider setup.
|
|
15
|
-
- **Production auth default**
|
|
16
|
-
Device login and polling default to `https://auth.nyex.ai` out of the box.
|
|
17
|
-
- **NYEX auth-gate UX polish**
|
|
18
|
-
NYEX header/logo and polling spinner are shown during onboarding login.
|
|
19
|
-
- **Multi-provider, role-aware routing**
|
|
20
|
-
Assign provider+model per role (Primary, Planner, Tool Exec, Summarizer).
|
|
21
|
-
- **Memory OS (local-first, inspectable)**
|
|
22
|
-
Automatic memory preflight, pinned constraints, decisions, experiences, and active checkpoints.
|
|
23
|
-
- **Grounding + checkpoints workflow**
|
|
24
|
-
Store repo-aware grounding snapshots and checkpoint progress with deterministic state.
|
|
25
|
-
- **Memory inspection commands**
|
|
26
|
-
Use `nyex memory ...` and `nyex checkpoint ...` to inspect, search, pin/unpin, and resume context.
|
|
27
|
-
- **Doctor / status diagnostics**
|
|
28
|
-
Shows auth endpoint resolution, memory telemetry, and session health.
|
|
29
|
-
- **Security posture**
|
|
30
|
-
Rate-limited health endpoint, minimized public metadata, no secret leaks in logs, bypass hardened (release ignores bypass).
|
|
60
|
+
NYEX routes work across **roles** (primary, planner, tool_exec, summarizer, validator, etc.). Each role can use its own provider/model, deterministically.
|
|
31
61
|
|
|
32
|
-
|
|
62
|
+
Common providers:
|
|
63
|
+
- OpenAI (ChatGPT / API)
|
|
64
|
+
- Gemini (API key)
|
|
65
|
+
- Claude (API key)
|
|
66
|
+
- Ollama (Local Mode)
|
|
33
67
|
|
|
34
|
-
You
|
|
68
|
+
You can change models/providers via:
|
|
69
|
+
- **TUI**: `/settings` and `/models`
|
|
70
|
+
- **CLI config overrides** (examples below)
|
|
35
71
|
|
|
36
|
-
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Strict Cloud Mode and Local Mode
|
|
75
|
+
|
|
76
|
+
### Strict Cloud Mode (default)
|
|
77
|
+
|
|
78
|
+
If your **primary** is a cloud provider and it fails (auth/rate limit/network), NYEX will **not** fall back to local models.
|
|
79
|
+
|
|
80
|
+
This prevents surprise calls to localhost and keeps routing predictable.
|
|
37
81
|
|
|
38
|
-
|
|
82
|
+
### Local Mode (opt-in)
|
|
39
83
|
|
|
40
|
-
|
|
41
|
-
2. **Provider access** (ChatGPT / API keys / Claude / Gemini) for the model provider you choose
|
|
42
|
-
|
|
43
|
-
NYEX will first ask you to **sign in / create a NYEX account**, then guide you to provider setup and role mapping.
|
|
84
|
+
Local Mode enables the local bridge + responses proxy (used for Ollama translations). It is OFF by default.
|
|
44
85
|
|
|
45
|
-
|
|
86
|
+
Enable Local Mode in `/settings` (recommended), or via CLI config override:
|
|
46
87
|
|
|
47
|
-
|
|
88
|
+
```bash
|
|
89
|
+
nyex -c runtime_modes.local_mode_enabled=true exec "hello"
|
|
90
|
+
```
|
|
48
91
|
|
|
49
|
-
|
|
50
|
-
- You can override via env: `NYEX_HOME=E:\Nyex\_home`
|
|
92
|
+
When Local Mode is enabled, you may see:
|
|
51
93
|
|
|
52
|
-
|
|
94
|
+
```
|
|
95
|
+
responses-api-proxy listening on 127.0.0.1:8788
|
|
96
|
+
```
|
|
53
97
|
|
|
54
|
-
|
|
55
|
-
2. `NYEX_AUTH_URL` env var
|
|
56
|
-
3. `NYEX_HOME\config.toml` (`[nyex_auth].url`)
|
|
57
|
-
4. Build-time default (`NYEX_DEFAULT_AUTH_URL`)
|
|
58
|
-
5. Fallback: `https://auth.nyex.ai`
|
|
98
|
+
That should **only** appear when you opt in.
|
|
59
99
|
|
|
60
|
-
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Useful commands
|
|
61
103
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
104
|
+
- `/settings` — configure strict/local modes, defaults, role mappings
|
|
105
|
+
- `/models` — explore models, refresh cache, set primary, set per-role
|
|
106
|
+
- `/status` — auth + routing + strict/local/proxy visibility
|
|
107
|
+
- `/doctor` — diagnostics: home dir, endpoints, reachability
|
|
108
|
+
- `/signals explain` — why NYEX routed a role/model a certain way
|
|
64
109
|
|
|
65
|
-
|
|
110
|
+
---
|
|
66
111
|
|
|
67
|
-
|
|
112
|
+
## Troubleshooting
|
|
68
113
|
|
|
69
|
-
|
|
114
|
+
### I see localhost/127.0.0.1 being called
|
|
115
|
+
- Ensure `local_mode_enabled` is **false**
|
|
116
|
+
- Verify `/status` shows `Proxy: disabled`
|
|
117
|
+
- If Local Mode is enabled, disable it via `/settings`
|
|
70
118
|
|
|
71
|
-
|
|
72
|
-
|
|
119
|
+
### I’m blocked by “NYEX login required”
|
|
120
|
+
Run:
|
|
73
121
|
|
|
74
|
-
|
|
122
|
+
```bash
|
|
123
|
+
nyex auth login
|
|
124
|
+
```
|
|
75
125
|
|
|
76
|
-
|
|
126
|
+
Then retry.
|
|
127
|
+
|
|
128
|
+
### Auth endpoint shows unreachable
|
|
129
|
+
Check `/doctor` and confirm:
|
|
130
|
+
- `Auth endpoint reachable`
|
|
131
|
+
- Your network allows `https://auth.nyex.ai`
|
|
77
132
|
|
|
78
133
|
---
|
|
79
134
|
|
|
80
|
-
|
|
135
|
+
## Security and guardrails
|
|
136
|
+
|
|
137
|
+
NYEX is built with “keep main green” discipline:
|
|
138
|
+
- leak-scan strict mode
|
|
139
|
+
- deterministic routing traces
|
|
140
|
+
- clear status/doctor reporting
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Links
|
|
145
|
+
|
|
146
|
+
- Install: https://www.npmjs.com/package/@nyex/nyex
|
|
147
|
+
- Auth: https://auth.nyex.ai
|
|
148
|
+
- Status: https://auth.nyex.ai/health
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
See repository license.
|
|
155
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyex/nyex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Nyex CLI (private beta)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://nyex.ai",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"nyex": "bin/nyex.js"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@nyex/nyex-win32-x64-msvc": "0.
|
|
21
|
+
"@nyex/nyex-win32-x64-msvc": "1.0.3"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=18"
|