workos 0.12.2 → 0.13.0
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 +16 -12
- package/dist/bin.js +5 -0
- package/dist/bin.js.map +1 -1
- package/dist/commands/auth-status.js +2 -1
- package/dist/commands/auth-status.js.map +1 -1
- package/dist/commands/claim.js +4 -3
- package/dist/commands/claim.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/doctor.js +1 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/install-skill.d.ts +64 -3
- package/dist/commands/install-skill.js +213 -27
- package/dist/commands/install-skill.js.map +1 -1
- package/dist/commands/install.js +5 -1
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/login.d.ts +13 -0
- package/dist/commands/login.js +43 -2
- package/dist/commands/login.js.map +1 -1
- package/dist/doctor/checks/ai-analysis.js +4 -3
- package/dist/doctor/checks/ai-analysis.js.map +1 -1
- package/dist/doctor/checks/skills.d.ts +9 -0
- package/dist/doctor/checks/skills.js +84 -0
- package/dist/doctor/checks/skills.js.map +1 -0
- package/dist/doctor/index.d.ts +21 -1
- package/dist/doctor/index.js +52 -1
- package/dist/doctor/index.js.map +1 -1
- package/dist/doctor/issues.js +15 -0
- package/dist/doctor/issues.js.map +1 -1
- package/dist/doctor/output.js +16 -0
- package/dist/doctor/output.js.map +1 -1
- package/dist/doctor/types.d.ts +27 -0
- package/dist/doctor/types.js.map +1 -1
- package/dist/lib/adapters/cli-adapter.js +2 -1
- package/dist/lib/adapters/cli-adapter.js.map +1 -1
- package/dist/lib/agent-interface.js +38 -14
- package/dist/lib/agent-interface.js.map +1 -1
- package/dist/lib/credential-proxy.js +2 -1
- package/dist/lib/credential-proxy.js.map +1 -1
- package/dist/lib/device-auth.js +26 -10
- package/dist/lib/device-auth.js.map +1 -1
- package/dist/lib/ensure-auth.js +4 -3
- package/dist/lib/ensure-auth.js.map +1 -1
- package/dist/lib/installer-core.d.ts +3 -3
- package/dist/lib/resolve-install-credentials.js +4 -4
- package/dist/lib/resolve-install-credentials.js.map +1 -1
- package/dist/lib/run-with-core.js +3 -1
- package/dist/lib/run-with-core.js.map +1 -1
- package/dist/lib/token-refresh-client.js +2 -1
- package/dist/lib/token-refresh-client.js.map +1 -1
- package/dist/lib/token-refresh.d.ts +1 -1
- package/dist/lib/token-refresh.js +3 -2
- package/dist/lib/token-refresh.js.map +1 -1
- package/dist/utils/command-invocation.d.ts +8 -0
- package/dist/utils/command-invocation.js +17 -0
- package/dist/utils/command-invocation.js.map +1 -0
- package/dist/utils/exit-codes.js +3 -1
- package/dist/utils/exit-codes.js.map +1 -1
- package/dist/utils/help-json.js +8 -0
- package/dist/utils/help-json.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,14 +5,18 @@ WorkOS CLI for installing AuthKit integrations and managing WorkOS resources.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
# Run directly with npx (recommended)
|
|
9
|
-
npx workos
|
|
8
|
+
# Run the installer directly with npx (recommended)
|
|
9
|
+
npx workos@latest install
|
|
10
10
|
|
|
11
11
|
# Or install globally
|
|
12
12
|
npm install -g workos
|
|
13
|
-
workos
|
|
13
|
+
workos install
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
+
`npx workos@latest install` is recommended because it bypasses stale global shims and older shell-resolved binaries.
|
|
17
|
+
If a global install reports `unknown command "install"`, run the npx command above or reinstall globally and clear your
|
|
18
|
+
shell command cache.
|
|
19
|
+
|
|
16
20
|
## Features
|
|
17
21
|
|
|
18
22
|
- **15 Framework Support:** Next.js, React Router, TanStack Start, React SPA, Vanilla JS, SvelteKit, Node.js (Express), Python (Django), Ruby (Rails), Go, .NET (ASP.NET Core), Kotlin (Spring Boot), Elixir (Phoenix), PHP (Laravel), PHP
|
|
@@ -55,7 +59,7 @@ Commands:
|
|
|
55
59
|
doctor Diagnose WorkOS integration issues
|
|
56
60
|
skills Manage WorkOS skills for coding agents (install, uninstall, list)
|
|
57
61
|
|
|
58
|
-
Skills
|
|
62
|
+
Skills auto-install to detected coding agents on `workos install` and `workos auth login`. Use `workos skills list` to check status, `workos doctor` to detect stale skills, or `workos doctor --fix` to refresh them in place (constrained to `workos/` and `workos-widgets/`).
|
|
59
63
|
|
|
60
64
|
Resource Management:
|
|
61
65
|
organization (org) Manage organizations
|
|
@@ -93,7 +97,7 @@ When you run `workos install` without credentials, the CLI automatically provisi
|
|
|
93
97
|
|
|
94
98
|
```bash
|
|
95
99
|
# Install with zero setup — environment provisioned automatically
|
|
96
|
-
workos install
|
|
100
|
+
npx workos@latest install
|
|
97
101
|
|
|
98
102
|
# Check your environment
|
|
99
103
|
workos env list
|
|
@@ -560,13 +564,13 @@ workos install [options]
|
|
|
560
564
|
|
|
561
565
|
```bash
|
|
562
566
|
# Interactive (recommended)
|
|
563
|
-
npx workos
|
|
567
|
+
npx workos@latest install
|
|
564
568
|
|
|
565
569
|
# Specify framework
|
|
566
|
-
npx workos install --integration react-router
|
|
570
|
+
npx workos@latest install --integration react-router
|
|
567
571
|
|
|
568
572
|
# With visual dashboard (experimental)
|
|
569
|
-
npx workos dashboard
|
|
573
|
+
npx workos@latest dashboard
|
|
570
574
|
|
|
571
575
|
# JSON output (explicit)
|
|
572
576
|
workos org list --json --api-key sk_test_xxx
|
|
@@ -648,13 +652,13 @@ The CLI uses WorkOS Connect OAuth device flow for authentication:
|
|
|
648
652
|
|
|
649
653
|
```bash
|
|
650
654
|
# Login (opens browser for authentication)
|
|
651
|
-
workos auth login
|
|
655
|
+
npx workos@latest auth login
|
|
652
656
|
|
|
653
657
|
# Check current auth status
|
|
654
|
-
workos auth status
|
|
658
|
+
npx workos@latest auth status
|
|
655
659
|
|
|
656
660
|
# Logout (clears stored credentials)
|
|
657
|
-
workos auth logout
|
|
661
|
+
npx workos@latest auth logout
|
|
658
662
|
```
|
|
659
663
|
|
|
660
664
|
OAuth credentials are stored in the system keychain (with `~/.workos/credentials.json` fallback). Access tokens are not persisted long-term for security - users re-authenticate when tokens expire.
|
|
@@ -682,7 +686,7 @@ The installer collects anonymous usage telemetry to help improve the product:
|
|
|
682
686
|
No code, credentials, or personal data is collected. Disable with:
|
|
683
687
|
|
|
684
688
|
```bash
|
|
685
|
-
WORKOS_TELEMETRY=false npx workos
|
|
689
|
+
WORKOS_TELEMETRY=false npx workos@latest install
|
|
686
690
|
```
|
|
687
691
|
|
|
688
692
|
## Logs
|
package/dist/bin.js
CHANGED
|
@@ -280,6 +280,11 @@ yargs(rawArgs)
|
|
|
280
280
|
default: false,
|
|
281
281
|
description: 'Copy report to clipboard',
|
|
282
282
|
},
|
|
283
|
+
fix: {
|
|
284
|
+
type: 'boolean',
|
|
285
|
+
default: false,
|
|
286
|
+
description: 'Auto-update stale WorkOS skills (writes to <agent>/skills/workos/ and workos-widgets/ only)',
|
|
287
|
+
},
|
|
283
288
|
}), async (argv) => {
|
|
284
289
|
const { handleDoctor } = await import('./commands/doctor.js');
|
|
285
290
|
await handleDoctor(argv);
|