@holdyourvoice/hyv 2.9.22 → 2.9.24

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@holdyourvoice/hyv",
3
- "version": "2.9.22",
3
+ "version": "2.9.24",
4
4
  "description": "Free local AI writing scan for cursor & claude. MCP server, 220+ pattern detection, voice profiles. npx @holdyourvoice/hyv welcome",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  "hyvoice": "dist/index.js"
9
9
  },
10
10
  "scripts": {
11
- "build": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --format=cjs --banner:js='#!/usr/bin/env node'",
11
+ "build": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --format=cjs --external:canvas --banner:js='#!/usr/bin/env node'",
12
12
  "build:debug": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --format=cjs --sourcemap --banner:js='#!/usr/bin/env node'",
13
13
  "dev": "npm run build && node dist/index.js",
14
14
  "validate:publish": "npm run build && node scripts/validate-publish.js",
@@ -41,6 +41,7 @@
41
41
  "license": "UNLICENSED",
42
42
  "private": false,
43
43
  "dependencies": {
44
+ "canvas": "^3.2.3",
44
45
  "chalk": "^4.1.2",
45
46
  "commander": "^12.1.0",
46
47
  "glob": "^13.0.6",
@@ -572,7 +572,7 @@ function setupAgents({
572
572
  const codexDir = path.join(home, '.codex');
573
573
  fs.mkdirSync(codexDir, { recursive: true });
574
574
  const agentsFile = path.join(codexDir, 'AGENTS.md');
575
- const src = path.join(pkgDir, 'agents', 'codex.md');
575
+ const src = path.join(pkgDir, 'agents', 'AGENTS.md');
576
576
  let existing = '';
577
577
  if (fs.existsSync(agentsFile)) existing = fs.readFileSync(agentsFile, 'utf-8');
578
578
  const addition = fs.existsSync(src) ? fs.readFileSync(src, 'utf-8') : '';
@@ -648,10 +648,10 @@ function setupAgents({
648
648
  if (!ocResult.ok) warnings.push(`opencode: could not update opencode.jsonc (${ocResult.reason})`);
649
649
 
650
650
  const agentsFile = path.join(ocDir, 'AGENTS.md');
651
- const genericSrc = path.join(pkgDir, 'agents', 'generic.md');
651
+ const agentsSrc = path.join(pkgDir, 'agents', 'AGENTS.md');
652
652
  let existing = '';
653
653
  if (fs.existsSync(agentsFile)) existing = fs.readFileSync(agentsFile, 'utf-8');
654
- const addition = fs.existsSync(genericSrc) ? fs.readFileSync(genericSrc, 'utf-8') : '';
654
+ const addition = fs.existsSync(agentsSrc) ? fs.readFileSync(agentsSrc, 'utf-8') : '';
655
655
  if (addition && shouldUpgradeAgent(agentsFile, agentsMarker, pkgVersion)) {
656
656
  const merged = mergeAgentsMd(existing, addition, 'hold-your-voice');
657
657
  fs.mkdirSync(ocDir, { recursive: true });
@@ -730,8 +730,8 @@ function setupAgents({
730
730
 
731
731
  // Generic reference copy (always when auto-configure runs)
732
732
  try {
733
- const genericSrc = path.join(pkgDir, 'agents', 'generic.md');
734
- const genericDest = path.join(hyvDir, 'agents', 'generic.md');
733
+ const genericSrc = path.join(pkgDir, 'agents', 'AGENTS.md');
734
+ const genericDest = path.join(hyvDir, 'agents', 'AGENTS.md');
735
735
  if (fs.existsSync(genericSrc)) installAgent(genericSrc, genericDest);
736
736
  } catch {
737
737
  // non-fatal