@stacksjs/defaults 0.70.251 → 0.70.253

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.
@@ -126,15 +126,26 @@ buddy dev -o/--docs # docs only
126
126
  buddy dev -s/--system-tray # system tray only
127
127
  buddy dev -i/--interactive # interactive server selection menu
128
128
  buddy dev -l/--with-localhost # include localhost URL in output
129
+ buddy dev --browser # open the browser app instead of a configured native window
130
+ buddy dev --site # open the marketing site instead of the detected app entry
129
131
  buddy dev -p/--project [name]
130
132
  buddy dev --verbose
131
133
  ```
132
134
 
135
+ When `config/app.ts` defines `appPath` (for example, `/dashboard`), plain
136
+ `buddy dev` treats it as the primary application URL. Set `devLaunch: 'native'`
137
+ for a desktop app to open that URL in a Craft window by default. Use
138
+ `buddy dev --browser` to open the application in a browser or `buddy dev --site`
139
+ to force the marketing homepage for that session. Without `appPath`, Buddy
140
+ detects common application views and falls back to `/` for site-only projects.
141
+ Set `STACKS_DEV_NO_OPEN=1` when the browser should remain closed.
142
+
133
143
  Sub-commands with aliases:
134
144
  ```bash
135
145
  buddy dev:components # component library dev server
136
146
  buddy dev:docs # documentation dev server
137
147
  buddy dev:desktop # desktop app dev server
148
+ buddy dev:native # equivalent native desktop app flow
138
149
  buddy dev:api # API dev server
139
150
  buddy dev:frontend # frontend dev server (aliases: dev:pages, dev:views)
140
151
  buddy dev:dashboard # dashboard dev server (alias: dev:admin)
@@ -79,6 +79,8 @@ buddy/src/commands/
79
79
  - `buddy dev` -- Start ALL dev servers in parallel (frontend, API, docs, dashboard + reverse proxy if custom domain)
80
80
  - `buddy dev [server]` -- Start a specific server: `frontend`, `api`, `components`, `dashboard`, `desktop`, `system-tray`, `docs`
81
81
  - `buddy dev -i` / `--interactive` -- Interactive prompt to choose which server to start
82
+ - `buddy dev --browser` -- Override a configured native launch and open the browser app
83
+ - `buddy dev --site` -- Open the marketing site instead of the app or native window
82
84
  - `buddy dev --verbose` -- Show detailed output including proxy info and dependency logs
83
85
  - `buddy dev:frontend` (aliases: `dev:pages`, `dev:views`) -- Frontend only
84
86
  - `buddy dev:api` -- API server only
@@ -86,6 +88,7 @@ buddy/src/commands/
86
88
  - `buddy dev:docs` -- Documentation server only
87
89
  - `buddy dev:components` -- Vue component library dev server
88
90
  - `buddy dev:desktop` -- Desktop app dev server
91
+ - `buddy dev:native` -- Equivalent native app development flow
89
92
  - `buddy dev:system-tray` (alias: `dev:tray`) -- System tray dev server
90
93
 
91
94
  ### Build Commands
@@ -111,17 +114,18 @@ buddy/src/commands/
111
114
 
112
115
  ### Unified Dev Server (`buddy dev` with no arguments)
113
116
  When `buddy dev` runs without a specific server flag, `startDevelopmentServer()` in `dev.ts`:
114
- 1. Reads port configuration from env vars (`PORT`, `PORT_API`, `PORT_DOCS`, `PORT_ADMIN`)
115
- 2. Detects custom domain from `APP_URL` (e.g., `stacks.localhost`)
116
- 3. Prints Vite-style banner with URLs for Frontend, API, Docs, Dashboard
117
- 4. Sets `STACKS_PROXY_MANAGED=1` to prevent subprocesses from starting their own proxies
118
- 5. Starts all servers in parallel via `Promise.all()`:
117
+ 1. Reads `config/app.ts` `devLaunch`; `native` opens `appPath` in Craft, while `browser` keeps the browser default
118
+ 2. Reads port configuration from env vars (`PORT`, `PORT_API`, `PORT_DOCS`, `PORT_ADMIN`)
119
+ 3. Detects custom domain from `APP_URL` (e.g., `stacks.localhost`)
120
+ 4. Prints Vite-style banner with URLs for Frontend, API, Docs, Dashboard
121
+ 5. Sets `STACKS_PROXY_MANAGED=1` to prevent subprocesses from starting their own proxies
122
+ 6. Starts all servers in parallel via `Promise.all()`:
119
123
  - `runFrontendDevServer()` -- STX template server on port 3000
120
124
  - `runApiDevServer()` -- bun-router API on port 3008
121
125
  - `runDocsDevServer()` -- bunpress docs on port 3006
122
126
  - `runDashboardDevServer()` -- STX + Craft native window on port 3002
123
127
  - `startReverseProxy()` -- rpx HTTPS proxy on port 443 (only if custom domain set)
124
- 6. Registers SIGINT/SIGTERM handlers that `SIGKILL` the entire process group
128
+ 7. Registers SIGINT/SIGTERM handlers that `SIGKILL` the entire process group
125
129
 
126
130
  ### Action Execution (`runAction` in helpers/utils.ts)
127
131
  - Dev actions (paths starting with `dev/`) automatically get `--watch` flag via `bun --watch`
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.70.251",
5
+ "version": "0.70.253",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.251",
5
+ "version": "0.70.253",
6
6
  "description": "The complete managed Stacks application scaffold, including runtime defaults, AI guidance, editor metadata, and npm-backed project support files.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",