storyboard-bridge 0.3.5 → 0.3.7

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/index.mjs +8 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -31,8 +31,11 @@ import { join, resolve, dirname, sep } from 'node:path';
31
31
  import { fileURLToPath } from 'node:url';
32
32
  import { tmpdir } from 'node:os';
33
33
  import { WebSocket } from 'ws';
34
+ import { createRequire } from 'node:module';
34
35
 
35
- const VERSION = '0.3.5';
36
+ // read from package.json so the printed version can NEVER drift from the published one (the bug where 0.3.6
37
+ // still announced v0.3.5 + nagged forever). package.json ships in the npm tarball next to this file.
38
+ const VERSION = createRequire(import.meta.url)('./package.json').version;
36
39
 
37
40
  // in-flight Higgsfield render children, keyed by job id — so a `higgsfield-cancel` can kill the right one
38
41
  // (the backend sends it when the user cancels, freeing the single render slot instead of leaving it running).
@@ -55,9 +58,10 @@ const IS_WIN = process.platform === 'win32';
55
58
  // debug tab + python + the Higgsfield login). Opt in with --higgsfield; the backend routes everyone's
56
59
  // Higgsfield jobs to a bridge that advertises this.
57
60
  const HIGGSFIELD = process.argv.includes('--higgsfield') || process.env.STORYBOARD_HIGGSFIELD === '1';
58
- // Auto-confirm Higgsfield's copyright/likeness "rights verification" gate on a rendered clip (a gated clip
59
- // otherwise stalls until timeout). Asserts you own the rights — explicit opt-in only.
60
- const OWN_RIGHTS = process.argv.includes('--own-rights') || process.env.STORYBOARD_OWN_RIGHTS === '1';
61
+ // Auto-confirm Higgsfield's copyright/likeness "rights verification" gate on a rendered clip (otherwise a
62
+ // gated clip stalls until timeout). ON by default — it asserts you own the rights to YOUR generated content.
63
+ // Opt out with --no-own-rights or STORYBOARD_OWN_RIGHTS=0.
64
+ const OWN_RIGHTS = !(process.argv.includes('--no-own-rights') || process.env.STORYBOARD_OWN_RIGHTS === '0');
61
65
  const PYTHON_BIN = arg('python-bin', process.env.PYTHON_BIN || (IS_WIN ? 'python.exe' : 'python3'));
62
66
  const CDP_HTTP = arg('cdp', process.env.CDP_HTTP || 'http://localhost:9222'); // the debug Chrome endpoint
63
67
  const HF_SCRIPT = join(dirname(fileURLToPath(import.meta.url)), 'higgsfield_client.py');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyboard-bridge",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Desktop bridge that powers a hosted Storyboard AI webapp with your own local Claude Code / Gemini CLI login (no API key).",
5
5
  "type": "module",
6
6
  "bin": {