create-prisma-php-app 5.0.0-alpha.33 → 5.0.0-alpha.34
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.
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
- Use `npm run create-swagger-docs` only when Swagger or OpenAPI output must be intentionally generated or refreshed.
|
|
38
38
|
- When package-script behavior matters, read `dist/docs/commands.md` first and inspect the actual `package.json` in the target project before assuming which scripts exist.
|
|
39
39
|
|
|
40
|
+
## BrowserSync URL Source Of Truth
|
|
41
|
+
|
|
42
|
+
- When AI needs to test or confirm whether a route, server response, or proxy-backed request is working, use `./settings/bs-config.json` as the source of truth for the current BrowserSync URLs.
|
|
43
|
+
- Do not assume the proxy stays on the default `http://localhost:5090`; if that port is busy, the active BrowserSync ports may change.
|
|
44
|
+
- Prefer confirming the current `local`, `external`, `ui`, and `uiExternal` values in `./settings/bs-config.json` before suggesting a test URL or opening the app in the browser.
|
|
45
|
+
- Use this file when frontend console errors or terminal output suggest the wrong local URL, proxy port, or BrowserSync UI port is being used during debugging.
|
|
46
|
+
|
|
40
47
|
## CLI Command Alignment
|
|
41
48
|
|
|
42
49
|
- For new apps, prefer `npx create-prisma-php-app <project-name>` as the default recommended create command.
|
package/dist/AGENTS.md
CHANGED
|
@@ -233,6 +233,17 @@ AI agents should follow this default rule:
|
|
|
233
233
|
|
|
234
234
|
When a task involves package scripts, read `commands.md` first and inspect the current `package.json` before assuming which feature scripts exist.
|
|
235
235
|
|
|
236
|
+
## BrowserSync URL source of truth
|
|
237
|
+
|
|
238
|
+
When AI needs to test or confirm whether a page route, exposed function request, proxy-backed response, or local server workflow is working, check `./settings/bs-config.json` first.
|
|
239
|
+
|
|
240
|
+
Important rules:
|
|
241
|
+
|
|
242
|
+
- use `./settings/bs-config.json` as the source of truth for the active BrowserSync URLs in this app
|
|
243
|
+
- do **not** assume the proxy remains on the default `http://localhost:5090`; if that port is already in use, Prisma PHP may use a different port
|
|
244
|
+
- confirm the current `local`, `external`, `ui`, and `uiExternal` values in `./settings/bs-config.json` before suggesting a browser URL, route test URL, or BrowserSync UI URL
|
|
245
|
+
- when frontend console logs, network errors, or terminal output suggest the app is being tested through the wrong URL or proxy port, re-check `./settings/bs-config.json` before changing app code
|
|
246
|
+
|
|
236
247
|
## CLI command alignment
|
|
237
248
|
|
|
238
249
|
When a task involves Prisma PHP CLI usage, keep the command guidance aligned with `commands.md`.
|