@useorgx/wizard 0.1.10 → 0.1.12
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 +35 -11
- package/dist/cli.js +609 -96
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @useorgx/wizard
|
|
2
2
|
|
|
3
|
-
One-line CLI onboarding
|
|
3
|
+
One-line CLI onboarding that adds OrgX MCP configs, skills/rules, and companion plugins to your local AI tools.
|
|
4
4
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
@@ -12,24 +12,35 @@ node dist/cli.js --help
|
|
|
12
12
|
|
|
13
13
|
For local development, use `pnpm dev -- --help`.
|
|
14
14
|
|
|
15
|
+
## What It Changes
|
|
16
|
+
|
|
17
|
+
The wizard modifies local tool configuration only. Depending on the command, it can:
|
|
18
|
+
|
|
19
|
+
- add OrgX MCP server entries to Claude, Cursor, Codex, VS Code, Windsurf, and Zed;
|
|
20
|
+
- install standalone OrgX skills/rules into Cursor and Claude Code;
|
|
21
|
+
- install companion OrgX plugins for Cursor, Claude Code, Codex, and OpenClaw so those tools receive OrgX skills, rules, MCP config, commands, hooks, and agent prompts through their plugin systems.
|
|
22
|
+
|
|
15
23
|
## Commands
|
|
16
24
|
|
|
17
|
-
- `setup`
|
|
25
|
+
- `setup` adds OrgX MCP configs, standalone skills/rules, and companion plugins to detected AI tools. When OrgX auth is available in an interactive shell, it also guides workspace selection or creation, optional onboarding extras, and optional companion plugin installs for detected Cursor, Claude Code, Codex, and OpenClaw hosts. The founder preset preplans plugin installs before it writes standalone skills so plugin-backed hosts do not get duplicate standalone assets in the same run.
|
|
18
26
|
- `surface list` shows supported surfaces and current status.
|
|
19
27
|
- `surface add <name>` patches a specific surface.
|
|
20
28
|
- `surface remove <name>` removes OrgX-managed config from a specific surface.
|
|
21
|
-
- `mcp add [surface]` and `mcp remove [surface]` manage Claude, Cursor, Codex, VS Code, Windsurf, and Zed
|
|
22
|
-
- `plugins list` shows
|
|
23
|
-
- `plugins add [target...]` installs managed Cursor
|
|
24
|
-
- `plugins remove [target...]` uninstalls managed Cursor
|
|
25
|
-
- `uninstall` removes OrgX-managed
|
|
29
|
+
- `mcp add [surface]` and `mcp remove [surface]` manage OrgX MCP entries in Claude, Cursor, Codex, VS Code, Windsurf, and Zed tool configs.
|
|
30
|
+
- `plugins list` shows companion plugin availability and install status for Cursor, Claude Code, Codex, and OpenClaw.
|
|
31
|
+
- `plugins add [target...]` installs the managed Cursor plugin bundle and managed OrgX companion plugins into Claude Code, Codex, and/or OpenClaw. Cursor, Claude Code, and Codex companion plugins carry their own OrgX skills/rules/MCP config and become the source of truth for those hosts.
|
|
32
|
+
- `plugins remove [target...]` uninstalls the managed Cursor plugin bundle, legacy managed Cursor rules, and managed OrgX companion plugins from Claude Code, Codex, and/or OpenClaw.
|
|
33
|
+
- `uninstall` removes OrgX-managed tool config, companion plugins, legacy managed Cursor rules, wizard-local auth, and wizard-local setup state. Use `--keep-auth`, `--keep-state`, `--skip-plugins`, or `--skip-surfaces` to preserve specific pieces.
|
|
26
34
|
- `doctor` verifies local config, hosted MCP reachability, npm registry readiness, current-workspace connectivity, local OpenClaw health, and optionally the remote setup status API. Hosted MCP tools are OAuth-scoped inside the client connector, so the wizard does not preflight them with `oxk_` API keys. It exits non-zero when blocking connectivity issues remain.
|
|
27
35
|
- `auth status` shows the resolved OrgX API key source and verifies it against `POST /api/client/sync`.
|
|
28
36
|
- `auth login [--base-url <url>]` starts browser pairing against OrgX, waits for approval, saves the returned per-user key to the wizard auth store, and bootstraps OpenClaw auth if OpenClaw is detected. Use `--api-key <oxk_...>` for CI or blocked-browser fallback.
|
|
29
37
|
- `auth set-key <oxk_...> [--base-url <url>]` verifies a per-user OrgX key, saves it to the wizard auth store, and bootstraps OpenClaw auth if OpenClaw is detected.
|
|
30
38
|
- `auth clear` removes the wizard-local saved OrgX API key.
|
|
31
39
|
- `workspace current`, `workspace list`, `workspace create <name>`, and `workspace set-default <id>` inspect and manage OrgX workspaces.
|
|
32
|
-
- `skills add [pack...]` writes `.cursor/rules/orgx.md`,
|
|
40
|
+
- `skills add [pack...]` writes standalone OrgX skills/rules into supported local tools: `.cursor/rules/orgx.md`, `.claude/skills/orgx/SKILL.md`, and available OrgX Claude skill packs from `useorgx/skills`. If a companion plugin already owns a tool's OrgX skills/rules, the wizard skips those overlapping standalone assets and only installs the remaining standalone pieces.
|
|
41
|
+
- `skills sync [pack...]` recomposes generated skill/rule files from the OrgX-managed core plus any enabled local skill extensions.
|
|
42
|
+
- `skills status` shows local extension files and generated skill files tracked for drift protection.
|
|
43
|
+
- `skills extensions add|edit|enable|disable|list` manages user-editable skill extensions without changing the OrgX-managed core skill source.
|
|
33
44
|
|
|
34
45
|
## CI Mode
|
|
35
46
|
|
|
@@ -54,19 +65,32 @@ For local development, use `pnpm dev -- --help`.
|
|
|
54
65
|
- `wizard workspace create "Founders" --description "Initial OrgX workspace"` creates a new workspace through `POST /api/entities`.
|
|
55
66
|
- `wizard workspace set-default <id>` updates the default workspace through the generic entity API.
|
|
56
67
|
|
|
57
|
-
## Editor Rules And
|
|
68
|
+
## Editor Rules, Skills, And Plugins
|
|
58
69
|
|
|
59
70
|
- `wizard skills add` writes the OrgX Cursor rule file at `.cursor/rules/orgx.md`.
|
|
71
|
+
- `wizard plugins add cursor` installs the full Cursor local plugin bundle at `.cursor/plugins/local/cursor-plugin`; it includes OrgX skills, rules, MCP config, commands, hooks, and agent prompts.
|
|
60
72
|
- `wizard skills add` also generates a hosted OrgX Claude skill at `.claude/skills/orgx/SKILL.md`.
|
|
61
|
-
- The same command installs
|
|
73
|
+
- The same command installs available OrgX Claude skill packs by pulling their source files from `useorgx/skills`; pass specific pack names to limit what is installed.
|
|
74
|
+
- `wizard skills add` and `wizard skills sync` both compose generated outputs from OrgX-managed core skills plus any enabled extension files from the wizard skill-extension store.
|
|
75
|
+
- When the Cursor companion plugin is installed, that plugin owns Cursor-side OrgX skills, rules, MCP config, commands, hooks, and agent prompts. In that case `wizard skills add` remains the standalone rules fallback for Cursor installs that are not using the plugin.
|
|
62
76
|
- When the Claude Code companion plugin is installed, that plugin owns Claude-side OrgX skills and skill sync. In that case `wizard skills add` skips overlapping Claude assets instead of writing duplicate copies.
|
|
63
77
|
- The Codex companion plugin also bundles its own OrgX skills, so `wizard skills add` does not try to manage Codex skill files at all.
|
|
64
78
|
- Those generated rules expect artifact proof to use durable sources such as GitHub permalinks, public URLs, or absolute file paths / `file://...`, not OrgX wrapper routes like `/live/...`, `/artifacts/...`, or `/console/...`.
|
|
65
79
|
|
|
80
|
+
## Skill Extensions
|
|
81
|
+
|
|
82
|
+
OrgX core skills are treated as managed upstream content. User behavior lives in sidecar extension files so upgrades can refresh core skills without losing local preferences.
|
|
83
|
+
|
|
84
|
+
- `wizard skills extensions add orgx --content "- Prefer short status updates."` creates a user extension for the hosted OrgX base skill.
|
|
85
|
+
- `wizard skills extensions edit morning-briefing` creates the extension if needed and opens it in `$EDITOR`.
|
|
86
|
+
- `wizard skills sync` appends enabled extensions after the core skill content and writes the composed output into configured tools.
|
|
87
|
+
- Generated skill files are tracked in wizard state. If a generated file is edited by hand after sync, the next sync skips that file unless `--force` is passed. Move durable local behavior into `skills extensions` files instead of editing generated output directly.
|
|
88
|
+
- Extension scopes are `user`, `workspace`, and `project`. Today they are local sidecars; the same shape is intended to map to future OrgX account/workspace sync.
|
|
89
|
+
|
|
66
90
|
## Release Flow
|
|
67
91
|
|
|
68
92
|
- GitHub Actions publishes to npm on pushes of version tags matching `v*`.
|
|
69
|
-
- The publish workflow installs dependencies with pnpm, runs `pnpm typecheck`, `pnpm test`, and `pnpm build`, then runs `pnpm publish --no-git-checks
|
|
93
|
+
- The publish workflow installs dependencies with pnpm, runs `pnpm typecheck`, `pnpm test`, and `pnpm build`, then runs `pnpm publish --no-git-checks`.
|
|
70
94
|
- The workflow expects an `NPM_TOKEN` repository secret.
|
|
71
95
|
|
|
72
96
|
## Troubleshooting
|