flowcollab 0.3.11 → 0.3.12

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/bin/decisions.mjs CHANGED
@@ -66,7 +66,14 @@ async function watch(rawId) {
66
66
  try {
67
67
  id = await resolveTaskId(rawId);
68
68
  } catch (e) {
69
- die(e.message || String(e), 4);
69
+ // B5: resolveTaskId only sees PENDING decisions, so a prefix for an ALREADY-RESOLVED
70
+ // decision wasn't found → exit 4 instead of its real status. Fall back to the server,
71
+ // which resolves a prefix among all the org's decisions regardless of status.
72
+ try {
73
+ const r = await flowFetch(`/api/flow/decisions/${encodeURIComponent(rawId.replace(/^#/, ''))}`);
74
+ id = r.decision?.id;
75
+ } catch { /* fall through to the original resolve error below */ }
76
+ if (!id) die(e.message || String(e), 4);
70
77
  }
71
78
 
72
79
  // No custom SIGINT handler: registering one and then calling process.exit()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowcollab",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Multi-Claude coordination layer — shared task board + CLI for teams running Claude Code",
5
5
  "type": "module",
6
6
  "files": [
@@ -42,7 +42,10 @@
42
42
  "build": "node scripts/build.mjs",
43
43
  "dev": "node scripts/build.mjs --watch",
44
44
  "start": "node scripts/build.mjs && node --use-system-ca server.js",
45
- "start:prod": "node scripts/build.mjs && node server.js"
45
+ "start:prod": "node scripts/build.mjs && node server.js",
46
+ "test": "node --test test/*.test.js",
47
+ "test:integration": "node --test test/*.integration.test.mjs",
48
+ "test:ui": "node --test test/*.browser.test.mjs"
46
49
  },
47
50
  "dependencies": {
48
51
  "dotenv": "^16.4.7"
@@ -53,6 +56,7 @@
53
56
  "express": "^4.0.0 || ^5.0.0",
54
57
  "express-rate-limit": "^7.5.0",
55
58
  "helmet": "^8.0.0",
59
+ "playwright": "^1.60.0",
56
60
  "stripe": "^22.2.0",
57
61
  "zod": "^3.24.1"
58
62
  },