viagen 0.0.44 → 0.0.45
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 +0 -34
- package/dist/index.js +1472 -531
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@ A Vite dev server plugin and CLI tool that enables you to use Claude Code in a s
|
|
|
7
7
|
- [Claude](https://claude.ai/signup) — Max, Pro, or API plan. The setup wizard handles auth.
|
|
8
8
|
- [Vercel](https://vercel.com/signup) — Free plan works. Sandboxes last 45 min on Hobby, 5 hours on Pro.
|
|
9
9
|
- [GitHub CLI](https://cli.github.com) — Enables git clone and push from sandboxes.
|
|
10
|
-
- [Fling](https://flingit.io/) — Optional. Enables Claude to deploy previews from the sandbox.
|
|
11
10
|
|
|
12
11
|
## Quick Setup (Claude Code Plugin)
|
|
13
12
|
|
|
@@ -74,16 +73,6 @@ npx viagen sandbox --prompt "build me a landing page"
|
|
|
74
73
|
npx viagen sandbox stop <sandboxId>
|
|
75
74
|
```
|
|
76
75
|
|
|
77
|
-
## Fling
|
|
78
|
-
|
|
79
|
-
[Fling](https://flingit.io/) lets Claude deploy shareable previews directly from the sandbox. viagen automatically detects your Fling credentials — no extra config needed.
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
# Log in once with the Fling CLI
|
|
83
|
-
fling login
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
When `~/.fling/token` exists, viagen forwards the token into the sandbox so Claude can run `fling` to publish previews.
|
|
87
76
|
|
|
88
77
|
## Plugin Options
|
|
89
78
|
|
|
@@ -100,29 +89,6 @@ viagen({
|
|
|
100
89
|
})
|
|
101
90
|
```
|
|
102
91
|
|
|
103
|
-
### SSR Frameworks (React Router, Remix, SvelteKit, etc.)
|
|
104
|
-
|
|
105
|
-
For plain Vite apps, the chat panel is injected automatically. SSR frameworks render their own HTML, so you need to add one script tag to your root layout:
|
|
106
|
-
|
|
107
|
-
```html
|
|
108
|
-
<script src="/via/client.js" defer></script>
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
For React Router, add it to `app/root.tsx`:
|
|
112
|
-
|
|
113
|
-
```tsx
|
|
114
|
-
export default function Root() {
|
|
115
|
-
return (
|
|
116
|
-
<html>
|
|
117
|
-
<head>
|
|
118
|
-
<script src="/via/client.js" defer />
|
|
119
|
-
{/* ... */}
|
|
120
|
-
</head>
|
|
121
|
-
{/* ... */}
|
|
122
|
-
</html>
|
|
123
|
-
)
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
92
|
|
|
127
93
|
### Editable Files
|
|
128
94
|
|