@paradigma-inc/flywheel 0.1.104 → 0.1.107
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
CHANGED
|
@@ -14,6 +14,12 @@ One-shot installer (macOS and Linux):
|
|
|
14
14
|
curl -fsSL https://flywheel.paradigma.inc/install | sh
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
Windows users running their AI coding host from WSL should open the WSL distro,
|
|
18
|
+
install Node.js 20+ and npm inside WSL, and run the same installer there.
|
|
19
|
+
Flywheel then writes WSL-side config, so launch the host from that same WSL
|
|
20
|
+
environment. If browser auth does not open from WSL, copy the printed approval
|
|
21
|
+
URL and setup code into your Windows browser.
|
|
22
|
+
|
|
17
23
|
The script installs `@paradigma-inc/flywheel@latest` into the managed user
|
|
18
24
|
prefix `${FLYWHEEL_INSTALL_PREFIX:-$HOME/.local}`, adds a marked PATH block
|
|
19
25
|
when needed, and then runs guided `flywheel setup` through the installed binary.
|
|
@@ -47,9 +53,17 @@ if (($userPath -split ";") -notcontains $prefix) {
|
|
|
47
53
|
if (($env:Path -split ";") -notcontains $prefix) {
|
|
48
54
|
$env:Path = "$prefix;$env:Path"
|
|
49
55
|
}
|
|
50
|
-
|
|
56
|
+
|
|
57
|
+
# MCP host wiring for native Windows hosts
|
|
58
|
+
& "$prefix\flywheel.cmd" setup --mode mcp
|
|
51
59
|
```
|
|
52
60
|
|
|
61
|
+
Use the PowerShell path when Codex, Claude Code, Cursor, or another AI coding
|
|
62
|
+
host runs as a native Windows process. Use `--mode cli` instead when you only
|
|
63
|
+
want direct `flywheel` binary setup without MCP host wiring. Do not install in
|
|
64
|
+
both WSL and native Windows unless you intentionally want separate Flywheel
|
|
65
|
+
setups.
|
|
66
|
+
|
|
53
67
|
Configure your AI host (Claude Code, Codex, etc.) to call Flywheel over MCP:
|
|
54
68
|
|
|
55
69
|
```bash
|
|
@@ -57,6 +71,12 @@ Configure your AI host (Claude Code, Codex, etc.) to call Flywheel over MCP:
|
|
|
57
71
|
npx --yes @paradigma-inc/flywheel@latest setup --mode mcp --install-skill
|
|
58
72
|
```
|
|
59
73
|
|
|
74
|
+
In native PowerShell, the equivalent command is:
|
|
75
|
+
|
|
76
|
+
```powershell
|
|
77
|
+
npx --yes @paradigma-inc/flywheel@latest setup --mode mcp --install-skill
|
|
78
|
+
```
|
|
79
|
+
|
|
60
80
|
## Shell Completion
|
|
61
81
|
|
|
62
82
|
`flywheel completion <shell>` generates shell completion scripts from the public
|
|
@@ -200,12 +220,15 @@ npx --yes @paradigma-inc/flywheel setup --mode cli
|
|
|
200
220
|
|
|
201
221
|
## Auth Modes And Remote Shells
|
|
202
222
|
|
|
203
|
-
`setup --auth-mode
|
|
223
|
+
`setup --auth-mode <mode>` controls authentication behavior. Supported values
|
|
224
|
+
are:
|
|
204
225
|
|
|
205
|
-
- `
|
|
226
|
+
- `auto` (default): uses the active device approval flow.
|
|
206
227
|
- `device`: opens `/auth/mcp/setup/device`, confirms a setup code in browser,
|
|
207
228
|
and CLI polls for approval.
|
|
208
|
-
- `
|
|
229
|
+
- `loopback`: retired legacy mode. The parser still accepts it so explicit
|
|
230
|
+
requests receive the deterministic FLY-416 remediation, which tells users to
|
|
231
|
+
use `--auth-mode device` or `--auth-mode auto`.
|
|
209
232
|
|
|
210
233
|
Remote/headless example:
|
|
211
234
|
|
package/package.json
CHANGED
|
Binary file
|
package/src/cli.mjs
CHANGED
|
@@ -1369,7 +1369,8 @@ Configure the Flywheel CLI, MCP host entries, and bundled skills without changin
|
|
|
1369
1369
|
.optionsGroup("Advanced:")
|
|
1370
1370
|
.option(
|
|
1371
1371
|
"--auth-mode <mode>",
|
|
1372
|
-
"
|
|
1372
|
+
"Device approval flow; default auto. " +
|
|
1373
|
+
"Explicit loopback is retired and returns FLY-416 guidance",
|
|
1373
1374
|
normalizeAuthMode,
|
|
1374
1375
|
"auto",
|
|
1375
1376
|
)
|
|
@@ -296,7 +296,8 @@ export const USAGE_EXTRAS = [
|
|
|
296
296
|
name: "auth-mode",
|
|
297
297
|
type: "string",
|
|
298
298
|
usage: "--auth-mode <MODE>",
|
|
299
|
-
description:
|
|
299
|
+
description:
|
|
300
|
+
"Device approval flow; retired legacy mode returns FLY-416 guidance; default auto",
|
|
300
301
|
default: "auto",
|
|
301
302
|
choices: ["auto", "loopback", "device"],
|
|
302
303
|
},
|
package/src/setup-auth.mjs
CHANGED
|
@@ -358,7 +358,7 @@ export async function acquireApiKeyViaBrowserBridge(_args) {
|
|
|
358
358
|
throw new Error(
|
|
359
359
|
"FLY-416: loopback (browser-bridge) auth has been removed. " +
|
|
360
360
|
"Re-run with --auth-mode device (or --auth-mode auto) to use the " +
|
|
361
|
-
"RFC 8628 device flow.
|
|
361
|
+
"RFC 8628 device flow. Run flywheel setup --help for " +
|
|
362
362
|
"the full CLI auth contract.",
|
|
363
363
|
);
|
|
364
364
|
}
|