@clawos-dev/clawd 0.2.80 → 0.2.81

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.
Files changed (2) hide show
  1. package/dist/cli.cjs +8 -3
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -27132,7 +27132,9 @@ function createHttpRouter(deps) {
27132
27132
  return true;
27133
27133
  }
27134
27134
  if (url.pathname === "/healthz" && req.method === "GET") {
27135
- sendJson(res, 200, { ok: true, version: deps.daemonVersion });
27135
+ sendJson(res, 200, { ok: true, version: deps.daemonVersion }, {
27136
+ "Access-Control-Allow-Origin": "*"
27137
+ });
27136
27138
  return true;
27137
27139
  }
27138
27140
  if (!url.pathname.startsWith("/session/") && !url.pathname.startsWith("/files/")) {
@@ -27212,8 +27214,11 @@ function parseUrl(rawUrl) {
27212
27214
  return null;
27213
27215
  }
27214
27216
  }
27215
- function sendJson(res, status, body) {
27216
- res.writeHead(status, { "Content-Type": "application/json; charset=utf-8" });
27217
+ function sendJson(res, status, body, extraHeaders) {
27218
+ res.writeHead(status, {
27219
+ "Content-Type": "application/json; charset=utf-8",
27220
+ ...extraHeaders ?? {}
27221
+ });
27217
27222
  res.end(JSON.stringify(body));
27218
27223
  }
27219
27224
  function withCtx(ctx, body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",