flowviant 0.13.0 → 0.14.0
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/bin/lib/config.mjs +1 -1
- package/bin/lib/preview.mjs +10 -4
- package/package.json +1 -1
package/bin/lib/config.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { readFileSync } from 'node:fs';
|
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
import { homedir } from 'node:os';
|
|
6
6
|
|
|
7
|
-
export const VERSION = '0.
|
|
7
|
+
export const VERSION = '0.14.0';
|
|
8
8
|
|
|
9
9
|
// Credential stored by `flowviant login` (device auth) — the no-token,
|
|
10
10
|
// no-env-var path. An explicit --fleet flag or FLOWVIANT_FLEET env still wins.
|
package/bin/lib/preview.mjs
CHANGED
|
@@ -274,10 +274,16 @@ export async function startPreview({ worktree, kind, cmd, port, log, timeoutMs =
|
|
|
274
274
|
tunnelStarted = true;
|
|
275
275
|
clearTimeout(bindTimer);
|
|
276
276
|
log?.(`preview: dev server on :${p} — opening the tunnel…`);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
// --http-host-header localhost: send the origin the Host it expects. Vite
|
|
278
|
+
// (5+) rejects any Host it doesn't recognize (server.allowedHosts), and the
|
|
279
|
+
// tunnel's public hostname isn't in that list → "Blocked request". Rewriting
|
|
280
|
+
// the Host to localhost — what a local browser sends anyway — passes the
|
|
281
|
+
// check with zero repo config, and is harmless to servers that don't check.
|
|
282
|
+
tunnel = spawn(
|
|
283
|
+
cf,
|
|
284
|
+
['tunnel', '--url', `http://localhost:${p}`, '--http-host-header', 'localhost'],
|
|
285
|
+
{ detached: true, stdio: ['ignore', 'pipe', 'pipe'] },
|
|
286
|
+
);
|
|
281
287
|
const onTunnel = (d) => {
|
|
282
288
|
const m = TUNNEL_RE.exec(d.toString());
|
|
283
289
|
if (m) finish({ url: m[0], kind, stop });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowviant",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Run your own Claude Code as headless build agents for Flowviant — on your own credentials. Claims dispatched work, opens PRs, captures review evidence, and routes questions back to you.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|