viagen 0.0.30 → 0.0.32

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
@@ -122,7 +122,7 @@ viagen({
122
122
  })
123
123
  ```
124
124
 
125
- Paths can be files or directories (directories include all files within). The editor appears as a "Files" tab in the chat panel.
125
+ Paths can be files or directories (directories include all files within). The editor appears as a "Files" tab in the chat panel with a collapsible directory tree, syntax highlighting (TypeScript, JavaScript, CSS, HTML, JSON, Markdown), and image preview.
126
126
 
127
127
  The default system prompt tells Claude it's embedded in a Vite dev server, that file edits trigger HMR, and how to check server logs. Recent build errors are automatically appended to give Claude context about what went wrong.
128
128
 
@@ -154,8 +154,10 @@ GET /via/iframe — split view (app + chat side by side)
154
154
  GET /via/files — list editable files (when configured)
155
155
  GET /via/file?path= — read file content
156
156
  POST /via/file — write file content { path, content }
157
+ GET /via/file/raw — serve raw file (images, etc.) with correct MIME type
157
158
  GET /via/git/status — list changed files (git status)
158
159
  GET /via/git/diff — full diff, or single file with ?path=
160
+ GET /via/git/branch — current branch, remote URL, open PR info
159
161
  GET /via/logs — dev server log entries, optional ?since=<timestamp>
160
162
  ```
161
163
 
package/dist/cli.js CHANGED
@@ -1453,6 +1453,9 @@ function help() {
1453
1453
  console.log(
1454
1454
  " VIAGEN_AUTH_TOKEN Protects all endpoints with token auth."
1455
1455
  );
1456
+ console.log(
1457
+ " VIAGEN_MODEL Override Claude model (e.g. sonnet, opus, haiku)."
1458
+ );
1456
1459
  console.log(
1457
1460
  " VERCEL_TOKEN Vercel access token (for sandbox)."
1458
1461
  );