vibefortress 0.1.52 → 0.1.54

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.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "vibefortress",
3
- "version": "0.1.52"
3
+ "version": "0.1.54"
4
4
  }
@@ -1,7 +1,7 @@
1
1
  43acc2492adebae8e98d838a0f0b4b6e8e1d12073385b67306c123287a6051ad THIRD_PARTY_LICENSES.txt
2
- f1f23262dcf2fe49120dcc50d8d5c228d3c4ccd34976931c06bb9b1ec1ad44d2 cli.js
3
- b5647dd61e739195912a5132d55b671dba78e1a100de72af11951ba8a0983306 hook.js
4
- 501dc52451ad036d7345b1cdf152b0e9ab6ecaaee718b13459983356f97ce43f panel.html
5
- cb454e01aa8690db6a4589c97d9d683b866d93fae4163b516951ae1cc27774a8 rules/vibefort.yaml
2
+ b776555c47f536a28f2b7ed1e0794c0e9286020ebe7202bb55d8bbfa057a25f5 cli.js
3
+ 4eeb85a1259ab5d46edbbec33edf3e712b0d5426d5ce201eeead34ccfc2ae173 hook.js
4
+ 1139bc695cb606040ae3dca7d63fe4087de593c36a1c8a4683ec3b461b8cbbbb panel.html
5
+ cb454e01aa8690db6a4589c97d9d683b866d93fae4163b516951ae1cc27774a8 rules/vibefortress.yaml
6
6
  86821fb93d339d54a9a5a1488128ec2bb313d04ec0213a6b88a58f9d6e94068c scanners.lock.json
7
- 9d9301fe27919ce338c60d78568155888f305da98fa04b1e45ddb350426b36c6 server.js
7
+ 61ac3a9bc20cfe6d0d119cf715971eb683c44ad3ddeb389c2302c381275af2c7 server.js
package/dist/cli.js CHANGED
@@ -448,6 +448,37 @@ var init_run = __esm({
448
448
  }
449
449
  });
450
450
 
451
+ // src/legacy.ts
452
+ var OLD = "VIBEFORT_";
453
+ var NEW = "VIBEFORTRESS_";
454
+ var warned = /* @__PURE__ */ new Set();
455
+ var warn = (m) => {
456
+ if (!warned.has(m)) {
457
+ warned.add(m);
458
+ try {
459
+ process.stderr.write(`Vibe Fortress: ${m}
460
+ `);
461
+ } catch {
462
+ }
463
+ }
464
+ };
465
+ function applyLegacyEnv(env = process.env) {
466
+ const used = [];
467
+ for (const k of Object.keys(env)) {
468
+ if (!k.startsWith(OLD)) continue;
469
+ const next = NEW + k.slice(OLD.length);
470
+ if (env[next] === void 0 || env[next] === "") {
471
+ env[next] = env[k];
472
+ used.push(k);
473
+ warn(`${k} is deprecated and will stop working in the next release; rename it to ${next}.`);
474
+ }
475
+ }
476
+ return used;
477
+ }
478
+
479
+ // src/legacy-env.ts
480
+ applyLegacyEnv();
481
+
451
482
  // src/cli/index.ts
452
483
  import { spawnSync as spawnSync2 } from "node:child_process";
453
484
  import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
@@ -519,8 +550,8 @@ async function main(argv) {
519
550
  console.error("vibefortress: server.js is missing from this install.");
520
551
  return 1;
521
552
  }
522
- process.env.VIBEFORT_ENTRY = cmd;
523
- process.env.VIBEFORT_COLLECT_ARGS = JSON.stringify(rest);
553
+ process.env.VIBEFORTRESS_ENTRY = cmd;
554
+ process.env.VIBEFORTRESS_COLLECT_ARGS = JSON.stringify(rest);
524
555
  await import(pathToFileURL(entry).href);
525
556
  return -1;
526
557
  }