@codeam/shared 2.76.31 → 2.76.33

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/dist/index.mjs CHANGED
@@ -3165,14 +3165,23 @@ Rules:
3165
3165
  otherwise "python3".
3166
3166
  - Prefer binding to 0.0.0.0 \u2014 most frameworks default to localhost which the tunnel cannot reach.
3167
3167
  - For Expo: framework="Expo", command="npx", args=["expo","start","--tunnel"], port=8081, notes="Scan QR with Expo Go".
3168
+ - For PHP (composer.json / index.php): use PHP's built-in server bound to 0.0.0.0 with the
3169
+ web root as docroot \u2014 command="php", args=["-S","0.0.0.0:8080","-t","public"] (Yii3,
3170
+ Symfony, Slim, Mezzio; use the real docroot, e.g. "web" for Yii2, "." for plain PHP),
3171
+ port=8080, ready_pattern="Development Server". Laravel: command="php",
3172
+ args=["artisan","serve","--host=0.0.0.0","--port=8000"], port=8000,
3173
+ ready_pattern="Server running". Do NOT use "composer serve", "symfony serve" or a
3174
+ "./yii serve" wrapper \u2014 call php directly.
3168
3175
  - If no dev server applies (CLI library, lambda, batch script): {"framework":"unsupported","notes":"<reason>"}.
3169
3176
 
3170
3177
  CRITICAL \u2014 setup_commands:
3171
3178
  - DO NOT include an install command (npm install, pnpm install, yarn install,
3172
- yarn, bun install) in setup_commands. A lockfile-aware pre-flight installer
3173
- runs BEFORE setup_commands and picks the correct package manager from the
3174
- lockfile present (pnpm-lock.yaml -> pnpm, yarn.lock -> yarn, bun.lockb -> bun,
3175
- else npm). Emitting an install here either duplicates that work or, worse,
3179
+ yarn, bun install, composer install) in setup_commands. Pre-flight installers
3180
+ run BEFORE setup_commands: composer install whenever composer.json exists and
3181
+ vendor/ is missing, and a lockfile-aware Node installer that picks the
3182
+ correct package manager from the lockfile present (pnpm-lock.yaml -> pnpm,
3183
+ yarn.lock -> yarn, bun.lockb -> bun, else npm). Emitting an install here
3184
+ either duplicates that work or, worse,
3176
3185
  uses the WRONG package manager on top of node_modules just populated by the
3177
3186
  pre-flight, which crashes (e.g. npm errors with "Cannot read properties of
3178
3187
  null (reading 'matches')" when run over pnpm's .pnpm/ layout).