@venizia/vulcan 0.4.10-10 → 0.4.10-11

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": "@venizia/vulcan",
3
- "version": "0.4.10-10",
3
+ "version": "0.4.10-11",
4
4
  "description": "VULCAN - one setup, one workflow for every project: init, sync, doctor, upgrade, and `vulcan x` for the shipped tools. Bun-only.",
5
5
  "homepage": "https://github.com/VENIZIA-AI/vulcan/tree/main/packages/cli",
6
6
  "bugs": {
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@clack/prompts": "1.8.1",
48
- "@venizia/vulcan-atlas": "0.4.10-10",
49
- "@venizia/vulcan-okf": "0.4.10-10",
48
+ "@venizia/vulcan-atlas": "0.4.10-11",
49
+ "@venizia/vulcan-okf": "0.4.10-11",
50
50
  "zod": "^4.6.7"
51
51
  },
52
52
  "devDependencies": {
@@ -494,7 +494,7 @@ export class WriteCommands {
494
494
  rule: 'V-W-02',
495
495
  what: DATABASE,
496
496
  programs: [],
497
- pattern: String.raw`\b(?:psql|mysql|mariadb|mongosh|mongo|sqlite3)\b[^|]*?${SQL_START}(?:${SQL_WRITE})|\bmongo(?:sh)?\b[^|]*?\.(?:insert|update|delete|remove|replace|drop|bulkWrite|findOneAnd|findAndModify|createCollection|createIndex|renameCollection|runCommand|adminCommand)\w*\s*\(`,
497
+ pattern: String.raw`\b(?-i:psql|mysql|mariadb|mongosh|mongo|sqlite3)\b[^|]*?${SQL_START}(?:${SQL_WRITE})|\b(?-i:mongo(?:sh)?)\b[^|]*?\.(?:insert|update|delete|remove|replace|drop|bulkWrite|findOneAnd|findAndModify|createCollection|createIndex|renameCollection|runCommand|adminCommand)\w*\s*\(`,
498
498
  ignoreCase: true,
499
499
  },
500
500
  {
@@ -672,7 +672,8 @@ export class WriteCommands {
672
672
  private static compile(opts: { row: IWriteCommandRow }): ICommandCheck {
673
673
  const { row } = opts;
674
674
  const names = row.programs.map((name) => name.replace(/[.*+?^${}()|[\]\\/]/g, '\\$&'));
675
- const head = names.length === 0 ? '' : `${PROGRAM_START}(?:${names.join('|')})`;
675
+ // A program name is exact (`HTTP` in TypeScript is no `http`): `ignoreCase` covers the words after it.
676
+ const head = names.length === 0 ? '' : `${PROGRAM_START}(?-i:${names.join('|')})`;
676
677
  const verbs = (row.verbs ?? []).map((verb) => WriteCommands.wordsOf({ verb })).join('|');
677
678
  const reads = (row.reads ?? []).map((verb) => WriteCommands.wordsOf({ verb })).join('|');
678
679
  const notRead = reads === '' ? '' : `(?!(?:${reads})${VERB_END})`;