@codeam/shared 2.76.23 → 2.76.24

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
@@ -3135,13 +3135,16 @@ Analyze the project in the current working directory and return how to start
3135
3135
  its development server for in-app preview.
3136
3136
 
3137
3137
  Read package.json, Procfile, Dockerfile, docker-compose.yml, manage.py, app.json,
3138
- mix.exs, Cargo.toml, go.mod, requirements.txt, Gemfile, and any other framework
3139
- markers you find at depth <= 2.
3138
+ mix.exs, Cargo.toml, go.mod, requirements.txt, pyproject.toml, Gemfile, and any
3139
+ other framework markers you find at depth <= 2. The app may live in a subfolder
3140
+ (e.g. teleshop/requirements.txt with nothing runnable at the root) \u2014 look there
3141
+ too.
3140
3142
 
3141
3143
  Return ONLY a JSON object on stdout (no prose, no markdown fences):
3142
3144
 
3143
3145
  {
3144
3146
  "framework": "<name, or 'unsupported'>",
3147
+ "cwd": "<folder the dev server runs in, relative to the current directory; '.' for the root>",
3145
3148
  "command": "<executable>",
3146
3149
  "args": ["..."],
3147
3150
  "port": <number>,
@@ -3153,6 +3156,13 @@ Return ONLY a JSON object on stdout (no prose, no markdown fences):
3153
3156
 
3154
3157
  Rules:
3155
3158
  - Pick the script the developer would run locally to see the app (typically "dev", "start", "serve").
3159
+ - If the app lives in a subfolder, set "cwd" to that folder (e.g. "teleshop"). command,
3160
+ args and setup_commands then run INSIDE it: write paths relative to it
3161
+ (".venv/bin/python", not "teleshop/.venv/bin/python"), and never wrap the command
3162
+ in "cd \u2026 &&" or "sh -c" \u2014 it is executed directly, without a shell.
3163
+ - Python: use the project's virtualenv interpreter when one exists
3164
+ (".venv/bin/python" with args ["-m","uvicorn","main:app","--host","0.0.0.0","--port","8000"]),
3165
+ otherwise "python3".
3156
3166
  - Prefer binding to 0.0.0.0 \u2014 most frameworks default to localhost which the tunnel cannot reach.
3157
3167
  - For Expo: framework="Expo", command="npx", args=["expo","start","--tunnel"], port=8081, notes="Scan QR with Expo Go".
3158
3168
  - If no dev server applies (CLI library, lambda, batch script): {"framework":"unsupported","notes":"<reason>"}.