@userreason/wizard 0.3.1 → 0.3.2

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
@@ -36,7 +36,7 @@ terminal. The [first survey guide](https://docs.userreason.com/get-started/first
36
36
  walks through creating and publishing a survey. Installing the SDK does not
37
37
  publish a survey.
38
38
 
39
- In development mode (`--dev`), onboarding opens in the browser by default.
39
+ Onboarding opens in the browser by default in production and development (`--dev`).
40
40
  Survey suggestions and the Agent test step are paused in production and development.
41
41
  Setup does not prepare or upload application source for recommendations, and it
42
42
  neither offers nor creates suggested drafts. The terminal flow skips the
@@ -178,7 +178,8 @@ package builds. With a published package, select the development API:
178
178
  npx -y @userreason/wizard@latest --dev
179
179
  ```
180
180
 
181
- Production still requires `--browser-setup`. Compatible builds also support:
181
+ Production and development both use browser setup by default. `--browser-setup`
182
+ remains an optional explicit alias. Compatible builds also support:
182
183
 
183
184
  ```sh
184
185
  npx -y @userreason/wizard@latest --browser-setup
@@ -220,11 +221,11 @@ skill never grants ongoing CLI access. Authorize continuing access separately
220
221
  with `userreason login --open` when wanted. Standalone CLI survey tools remain
221
222
  available outside onboarding.
222
223
 
223
- The production profile for wizard 0.3.1 selects `@userreason/js@0.5.3` and
224
+ The production profile for wizard 0.3.2 selects `@userreason/js@0.5.3` and
224
225
  `@userreason/cli@0.2.1`. New installs use those exact versions; an installed
225
226
  stable patch in the same release line is reused. Earlier SDK 0.4 and CLI 0.1
226
- releases are upgraded when installation is selected. Browser setup still
227
- requires explicit `--browser-setup` and a server advertising the capability.
227
+ releases are upgraded when installation is selected. Browser setup is the default and requires a server advertising the capability.
228
+ Use `--terminal-setup` for the terminal flow.
228
229
 
229
230
  Browser-guided installation prints package-manager failures in the connected
230
231
  terminal, including failed registry requests when npm provides them. Diagnostic
package/dist/bin.js CHANGED
@@ -97,7 +97,7 @@ var help = `UserReason installation wizard
97
97
 
98
98
  userreason-wizard [--directory PATH] [--origin URL]
99
99
 
100
- --browser-setup (browser-guided setup; default for development onboarding)
100
+ --browser-setup (browser-guided setup; default for onboarding)
101
101
  --terminal-setup (use terminal onboarding instead)
102
102
  --resume-setup UUID (resume this project's saved browser setup)
103
103
  --browser-origin ORIGIN (trusted dashboard origin for a custom API)
@@ -214,7 +214,7 @@ async function main() {
214
214
  if (values["resume-setup"]) uuid(values["resume-setup"], "Setup ID");
215
215
  const terminalFlags = ["refresh", "dry-run", "install", "skip-install", "integrate", "skip-integrate", "agent-note", "skip-agent-note", "agent-skill", "skip-agent-skill", "global-cli", "skip-global-cli", "cli-access", "skip-cli-access", "workspace", "workspace-name", "site", "site-name", "origin", "environment", "force", "diff", "session-only", "client-id", "credential-store"];
216
216
  const hasTerminalFlags = terminalFlags.some((key) => values[key] !== void 0 && values[key] !== false);
217
- const browserMode = explicitBrowserMode || developmentApi && !values["terminal-setup"] && !hasTerminalFlags && !values.yes && !values.json;
217
+ const browserMode = explicitBrowserMode || !values["terminal-setup"] && !hasTerminalFlags && !values.yes && !values.json;
218
218
  if (values["browser-origin"]) {
219
219
  if (!browserMode) throw new Error("--browser-origin requires browser setup");
220
220
  apiUrl(values["browser-origin"], "Browser origin");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@userreason/wizard",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Authenticated UserReason SDK installation wizard",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",