shraga 0.1.118 → 0.1.120
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 +12 -0
- package/dist/client/assets/{index-Cy5kfZ66.js → index-BpRE_FwV.js} +195 -195
- package/dist/client/assets/index-_XEpjgJO.css +10 -0
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/src/client/components/owner/BindingsTab.tsx +2 -2
- package/src/client/components/owner/shared.tsx +42 -0
- package/src/server/claude.ts +4 -2
- package/src/server/engine/claude-code.ts +2 -0
- package/src/server/hooks.ts +22 -1
- package/src/server/offload.ts +206 -0
- package/src/server/share-file.ts +14 -4
- package/src/server/shraga-config.ts +22 -0
- package/dist/client/assets/index-CFxKc8dH.css +0 -10
package/README.md
CHANGED
|
@@ -249,6 +249,18 @@ export default defineConfig({
|
|
|
249
249
|
Values in `env` resolve from `process.env` (your `.env` or system env) at startup. The legacy
|
|
250
250
|
filename `unclaw.config.ts` is also accepted.
|
|
251
251
|
|
|
252
|
+
Other keys: `publicOrigin` (absolute links in notifications), and `offload` for a low-resource box that
|
|
253
|
+
sends heavy work to an external pod:
|
|
254
|
+
|
|
255
|
+
```ts
|
|
256
|
+
offload: { gateway: 'http://pod.internal:4700', maxLocalFileMB: 25 /* default */ },
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
When set, the prompt tells the agent to use the gateway, `share_file` routes media and files over
|
|
260
|
+
`maxLocalFileMB` through it, heavy local Bash (ffmpeg encodes, remotion renders, starting mcp-video/mcp-audio)
|
|
261
|
+
is refused, and agent subprocesses get `SHRAGA_OFFLOAD=1` / `SHRAGA_OFFLOAD_GATEWAY`. The gateway's HTTP
|
|
262
|
+
contract is documented in `src/server/offload.ts`. Unset = none of this.
|
|
263
|
+
|
|
252
264
|
## Expose it (optional)
|
|
253
265
|
|
|
254
266
|
Running on a home machine? Set `CLOUDFLARE_TUNNEL_TOKEN` for a public URL via Cloudflare Tunnel, or
|