qualia-framework-v2 2.8.0 → 2.8.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/bin/install.js +21 -3
  2. package/package.json +3 -3
package/bin/install.js CHANGED
@@ -80,14 +80,32 @@ function askCode() {
80
80
  });
81
81
  }
82
82
 
83
+ // ─── Resolve team code (tolerates case + O/0 typo in suffix) ─
84
+ // Accepts "qs-fawzi-01", "QS-FAWZI-01", "QS-FAWZI-O1" (letter O in the
85
+ // numeric suffix), and returns the canonical key if found, else null.
86
+ // Only normalizes O→0 in the segment AFTER the last dash — "QS-MOAYAD-03"
87
+ // contains a real "O" in the name and must not be mangled.
88
+ function resolveTeamCode(input) {
89
+ const normalized = String(input || "").trim().toUpperCase();
90
+ if (TEAM[normalized]) return normalized;
91
+ const fuzzy = normalized.replace(
92
+ /-([^-]*)$/,
93
+ (_, suffix) => `-${suffix.replace(/O/g, "0")}`
94
+ );
95
+ if (TEAM[fuzzy]) return fuzzy;
96
+ return null;
97
+ }
98
+
83
99
  // ─── Main ────────────────────────────────────────────────
84
100
  async function main() {
85
- const code = await askCode();
86
- const member = TEAM[code];
101
+ const rawCode = await askCode();
102
+ const code = resolveTeamCode(rawCode);
103
+ const member = code ? TEAM[code] : null;
87
104
 
88
105
  if (!member) {
89
106
  console.log("");
90
- log(`${RED}✗${RESET} Invalid code. Get your install code from Fawzi.`);
107
+ log(`${RED}✗${RESET} Invalid code: "${rawCode}". Get your install code from Fawzi.`);
108
+ log(`${DIM} Tip: codes use digit zero, not letter O. Format: QS-NAME-01${RESET}`);
91
109
  console.log("");
92
110
  process.exit(1);
93
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qualia-framework-v2",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Claude Code workflow framework by Qualia Solutions. Plan, build, verify, ship.",
5
5
  "bin": {
6
6
  "qualia-framework-v2": "./bin/cli.js"
@@ -19,9 +19,9 @@
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/qualia-solutions/qualia-framework-v2"
22
+ "url": "git+https://github.com/Qualiasolutions/qualia-framework-v2.git"
23
23
  },
24
- "homepage": "https://github.com/qualia-solutions/qualia-framework-v2#readme",
24
+ "homepage": "https://github.com/Qualiasolutions/qualia-framework-v2#readme",
25
25
  "scripts": {
26
26
  "test": "bash tests/hooks.test.sh && bash tests/state.test.sh"
27
27
  },