@holdyourvoice/hyv 2.4.0 → 2.4.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.
package/package.json CHANGED
@@ -1,36 +1,56 @@
1
1
  {
2
2
  "name": "@holdyourvoice/hyv",
3
- "version": "2.4.0",
4
- "description": "Hold Your Voice engine portable voice profiling, AI pattern detection, and self-improving profiles. Works anywhere Python 3.10+ runs.",
3
+ "version": "2.4.1",
4
+ "description": "Hold Your Voice \u2014 voice gate layer for AI workflows. make your ai agent sound exactly like you! includes 220+ AI pattern detection engine.",
5
+ "main": "dist/index.js",
5
6
  "bin": {
7
+ "hyv": "dist/index.js",
8
+ "hyvoice": "dist/index.js",
6
9
  "hyv-voice": "scripts/hold_voice.py",
7
10
  "hyv-sync": "scripts/hold_voice_sync.py"
8
11
  },
9
- "files": [
10
- "scripts/hold_voice.py",
11
- "scripts/hold_voice_sync.py",
12
- "assets/",
13
- "skills/"
14
- ],
12
+ "scripts": {
13
+ "build": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --format=cjs --banner:js='#!/usr/bin/env node'",
14
+ "dev": "npm run build && node dist/index.js",
15
+ "prepublishOnly": "node scripts/check-no-duplicates.js && npm run build",
16
+ "postinstall": "node scripts/postinstall.js"
17
+ },
15
18
  "keywords": [
16
19
  "voice",
17
20
  "writing",
18
21
  "ai",
19
22
  "cli",
20
23
  "brand-voice",
21
- "hold-your-voice",
22
- "ai-detection",
23
24
  "content-gate",
24
25
  "hyv"
25
26
  ],
26
27
  "author": "Hold Your Voice",
27
- "license": "Apache-2.0",
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/holdyourvoice/hold-your-voice.git"
28
+ "license": "UNLICENSED",
29
+ "private": false,
30
+ "dependencies": {
31
+ "chalk": "^4.1.2",
32
+ "commander": "^12.1.0",
33
+ "open": "^8.4.2",
34
+ "glob": "^11.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "^20.11.0",
38
+ "esbuild": "^0.20.0",
39
+ "typescript": "^5.3.3"
31
40
  },
32
- "homepage": "https://holdyourvoice.com",
33
41
  "engines": {
34
- "node": ">=16"
42
+ "node": ">=18"
43
+ },
44
+ "files": [
45
+ "dist",
46
+ "scripts/",
47
+ "assets/",
48
+ "skills/",
49
+ "README.md",
50
+ "agents/"
51
+ ],
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/shashank-sn/hold-your-voice-app.git"
35
55
  }
36
56
  }
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * check-no-duplicates.js — fail publish if iCloud/OS duplicate files exist.
4
+ * Files with spaces like "foo 2.md" are iCloud sync artifacts.
5
+ */
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+
9
+ const ROOT = path.resolve(__dirname, '..');
10
+ let found = false;
11
+
12
+ function checkDir(dir) {
13
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
14
+ const full = path.join(dir, entry.name);
15
+ if (entry.name.includes(' 2') || entry.name.includes(' 3')) {
16
+ if (entry.isFile()) {
17
+ console.error(` DUPLICATE: ${path.relative(ROOT, full)}`);
18
+ found = true;
19
+ }
20
+ }
21
+ if (entry.isDirectory() && !entry.name.startsWith('.') && entry.name !== 'node_modules') {
22
+ checkDir(full);
23
+ }
24
+ }
25
+ }
26
+
27
+ checkDir(ROOT);
28
+ if (found) {
29
+ console.error('\nError: Duplicate files detected (iCloud sync artifacts).');
30
+ console.error('Remove them before publishing: rm -f <file>\n');
31
+ process.exit(1);
32
+ }