@holdyourvoice/hyv 2.7.0 → 2.7.1

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/index.js +12 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5094,8 +5094,7 @@ async function request2(method, path15, body) {
5094
5094
  if (res.status === 403)
5095
5095
  throw new Error("you don't have access to this feature. check your plan at holdyourvoice.com/dashboard");
5096
5096
  if (!res.ok) {
5097
- const text = await res.text().catch(() => "");
5098
- throw new Error(`something went wrong (${res.status}). ${text.slice(0, 150)}`);
5097
+ throw new Error(`something went wrong (${res.status}). try again or contact support.`);
5099
5098
  }
5100
5099
  return res.json();
5101
5100
  }
@@ -11633,7 +11632,7 @@ async function authenticateWithLicense(licenseKey) {
11633
11632
  async function authenticateWithBrowser() {
11634
11633
  const server = http.createServer();
11635
11634
  const port = await new Promise((resolve8) => {
11636
- server.listen(0, "0.0.0.0", () => {
11635
+ server.listen(0, "127.0.0.1", () => {
11637
11636
  resolve8(server.address().port);
11638
11637
  });
11639
11638
  });
@@ -14542,6 +14541,12 @@ function registerRenameCommand(program3) {
14542
14541
  process.exit(1);
14543
14542
  return;
14544
14543
  }
14544
+ if (!/^[a-zA-Z0-9\s\-_'&.]+$/.test(trimmedName)) {
14545
+ console.log(import_chalk12.default.red("\nerror: name contains invalid characters\n"));
14546
+ console.log(import_chalk12.default.dim(" allowed: letters, numbers, spaces, hyphens, underscores, apostrophes\n"));
14547
+ process.exit(1);
14548
+ return;
14549
+ }
14545
14550
  const token = getToken();
14546
14551
  if (!token) {
14547
14552
  console.log(import_chalk12.default.red("\nerror: you're not signed in yet\n"));
@@ -15477,6 +15482,10 @@ async function toolScan(args) {
15477
15482
  const fs17 = await import("fs");
15478
15483
  const path15 = await import("path");
15479
15484
  const resolved = path15.resolve(filePath);
15485
+ const cwd = process.cwd();
15486
+ if (!resolved.startsWith(cwd + path15.sep) && resolved !== cwd) {
15487
+ return `Error: file must be in the current working directory (${cwd})`;
15488
+ }
15480
15489
  if (!fs17.existsSync(resolved))
15481
15490
  return `Error: file not found: ${filePath}`;
15482
15491
  scanText2 = fs17.readFileSync(resolved, "utf-8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holdyourvoice/hyv",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Hold Your Voice — voice gate layer for AI workflows. make your ai agent sound exactly like you! includes 220+ AI pattern detection engine.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {