@chorus-aidlc/chorus 0.6.6 → 0.6.7

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 (145) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +94 -94
  3. package/.next/standalone/.next/app-path-routes-manifest.json +20 -20
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/prerender-manifest.json +24 -24
  6. package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/[ideaUuid]/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/ideas/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  23. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  24. package/.next/standalone/.next/server/app/admin/companies/[uuid]/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/admin/companies/new/page_client-reference-manifest.js +1 -1
  26. package/.next/standalone/.next/server/app/admin/companies/new.html +1 -1
  27. package/.next/standalone/.next/server/app/admin/companies/new.rsc +1 -1
  28. package/.next/standalone/.next/server/app/admin/companies/page_client-reference-manifest.js +1 -1
  29. package/.next/standalone/.next/server/app/admin/companies.html +1 -1
  30. package/.next/standalone/.next/server/app/admin/companies.rsc +1 -1
  31. package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  32. package/.next/standalone/.next/server/app/admin.html +1 -1
  33. package/.next/standalone/.next/server/app/admin.rsc +1 -1
  34. package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route_client-reference-manifest.js +1 -1
  35. package/.next/standalone/.next/server/app/api/admin/companies/route_client-reference-manifest.js +1 -1
  36. package/.next/standalone/.next/server/app/api/admin/login/route_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/api/admin/session/route_client-reference-manifest.js +1 -1
  38. package/.next/standalone/.next/server/app/api/agents/[uuid]/route_client-reference-manifest.js +1 -1
  39. package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  41. package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route_client-reference-manifest.js +1 -1
  42. package/.next/standalone/.next/server/app/api/api-keys/route_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/app/api/auth/check-default/route_client-reference-manifest.js +1 -1
  45. package/.next/standalone/.next/server/app/api/auth/default-login/route_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/api/auth/identify/route_client-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  48. package/.next/standalone/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
  49. package/.next/standalone/.next/server/app/api/auth/refresh/route_client-reference-manifest.js +1 -1
  50. package/.next/standalone/.next/server/app/api/auth/session/route_client-reference-manifest.js +1 -1
  51. package/.next/standalone/.next/server/app/api/auth/sync-token/route_client-reference-manifest.js +1 -1
  52. package/.next/standalone/.next/server/app/api/comments/route_client-reference-manifest.js +1 -1
  53. package/.next/standalone/.next/server/app/api/documents/[uuid]/route_client-reference-manifest.js +1 -1
  54. package/.next/standalone/.next/server/app/api/events/notifications/route_client-reference-manifest.js +1 -1
  55. package/.next/standalone/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
  56. package/.next/standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  57. package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route_client-reference-manifest.js +1 -1
  58. package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route_client-reference-manifest.js +1 -1
  59. package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route_client-reference-manifest.js +1 -1
  60. package/.next/standalone/.next/server/app/api/ideas/[uuid]/route_client-reference-manifest.js +1 -1
  61. package/.next/standalone/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
  62. package/.next/standalone/.next/server/app/api/me/assignments/route_client-reference-manifest.js +1 -1
  63. package/.next/standalone/.next/server/app/api/mentionables/route_client-reference-manifest.js +1 -1
  64. package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route_client-reference-manifest.js +1 -1
  65. package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route_client-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/app/api/notifications/preferences/route_client-reference-manifest.js +1 -1
  67. package/.next/standalone/.next/server/app/api/notifications/read-all/route_client-reference-manifest.js +1 -1
  68. package/.next/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
  69. package/.next/standalone/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +1 -1
  70. package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route_client-reference-manifest.js +1 -1
  71. package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route_client-reference-manifest.js +1 -1
  72. package/.next/standalone/.next/server/app/api/project-groups/route_client-reference-manifest.js +1 -1
  73. package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route_client-reference-manifest.js +1 -1
  75. package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route_client-reference-manifest.js +1 -1
  76. package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route_client-reference-manifest.js +1 -1
  77. package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route_client-reference-manifest.js +1 -1
  78. package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route_client-reference-manifest.js +1 -1
  79. package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route_client-reference-manifest.js +1 -1
  80. package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route_client-reference-manifest.js +1 -1
  81. package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route_client-reference-manifest.js +1 -1
  82. package/.next/standalone/.next/server/app/api/projects/[uuid]/route_client-reference-manifest.js +1 -1
  83. package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route_client-reference-manifest.js +1 -1
  84. package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route_client-reference-manifest.js +1 -1
  85. package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route_client-reference-manifest.js +1 -1
  86. package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  87. package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route_client-reference-manifest.js +1 -1
  88. package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route_client-reference-manifest.js +1 -1
  89. package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route_client-reference-manifest.js +1 -1
  90. package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route_client-reference-manifest.js +1 -1
  91. package/.next/standalone/.next/server/app/api/proposals/[uuid]/route_client-reference-manifest.js +1 -1
  92. package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  93. package/.next/standalone/.next/server/app/api/sessions/[uuid]/route_client-reference-manifest.js +1 -1
  94. package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route_client-reference-manifest.js +1 -1
  95. package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route_client-reference-manifest.js +1 -1
  96. package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route_client-reference-manifest.js +1 -1
  97. package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route_client-reference-manifest.js +1 -1
  98. package/.next/standalone/.next/server/app/api/tasks/[uuid]/route_client-reference-manifest.js +1 -1
  99. package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route_client-reference-manifest.js +1 -1
  100. package/.next/standalone/.next/server/app/index.html +1 -1
  101. package/.next/standalone/.next/server/app/index.rsc +1 -1
  102. package/.next/standalone/.next/server/app/login/admin/page_client-reference-manifest.js +1 -1
  103. package/.next/standalone/.next/server/app/login/admin.html +1 -1
  104. package/.next/standalone/.next/server/app/login/admin.rsc +1 -1
  105. package/.next/standalone/.next/server/app/login/callback/page_client-reference-manifest.js +1 -1
  106. package/.next/standalone/.next/server/app/login/callback.html +1 -1
  107. package/.next/standalone/.next/server/app/login/callback.rsc +1 -1
  108. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  109. package/.next/standalone/.next/server/app/login/silent-refresh/page_client-reference-manifest.js +1 -1
  110. package/.next/standalone/.next/server/app/login/silent-refresh.html +1 -1
  111. package/.next/standalone/.next/server/app/login/silent-refresh.rsc +1 -1
  112. package/.next/standalone/.next/server/app/login.html +1 -1
  113. package/.next/standalone/.next/server/app/login.rsc +1 -1
  114. package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  115. package/.next/standalone/.next/server/app/onboarding.html +1 -1
  116. package/.next/standalone/.next/server/app/onboarding.rsc +1 -1
  117. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  118. package/.next/standalone/.next/server/app/projects.html +1 -1
  119. package/.next/standalone/.next/server/app/projects.rsc +1 -1
  120. package/.next/standalone/.next/server/app/settings.html +1 -1
  121. package/.next/standalone/.next/server/app/settings.rsc +1 -1
  122. package/.next/standalone/.next/server/app-paths-manifest.json +20 -20
  123. package/.next/standalone/.next/server/middleware-manifest.json +1 -1
  124. package/.next/standalone/.next/server/pages/404.html +1 -1
  125. package/.next/standalone/.next/server/pages/500.html +1 -1
  126. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  127. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  128. package/.next/standalone/package.json +2 -4
  129. package/.next/standalone/public/chorus-plugin/.claude-plugin/plugin.json +3 -3
  130. package/.next/standalone/public/chorus-plugin/bin/on-post-submit-for-verify.sh +7 -2
  131. package/.next/standalone/public/chorus-plugin/bin/on-post-submit-proposal.sh +7 -2
  132. package/.next/standalone/public/chorus-plugin/bin/on-subagent-start.sh +3 -2
  133. package/.next/standalone/public/chorus-plugin/skills/chorus/SKILL.md +3 -3
  134. package/.next/standalone/public/chorus-plugin/skills/develop/SKILL.md +17 -4
  135. package/.next/standalone/public/chorus-plugin/skills/idea/SKILL.md +1 -1
  136. package/.next/standalone/public/chorus-plugin/skills/proposal/SKILL.md +1 -1
  137. package/.next/standalone/public/chorus-plugin/skills/quick-dev/SKILL.md +1 -1
  138. package/.next/standalone/public/chorus-plugin/skills/review/SKILL.md +11 -5
  139. package/.next/standalone/public/chorus-plugin/skills/yolo/SKILL.md +23 -13
  140. package/README.md +2 -0
  141. package/README.zh.md +2 -0
  142. package/chorus.mjs +34 -12
  143. package/package.json +2 -4
  144. /package/.next/standalone/.next/static/{AwS4ZAKVr1i2FceZmqVhG → kc2HwRxZUiMeDzrPiJW6z}/_buildManifest.js +0 -0
  145. /package/.next/standalone/.next/static/{AwS4ZAKVr1i2FceZmqVhG → kc2HwRxZUiMeDzrPiJW6z}/_ssgManifest.js +0 -0
@@ -4,7 +4,7 @@ description: Full-auto AI-DLC pipeline — from prompt to done. Automates the en
4
4
  license: AGPL-3.0
5
5
  metadata:
6
6
  author: chorus
7
- version: "0.7.3"
7
+ version: "0.7.4"
8
8
  category: project-management
9
9
  mcp_server: chorus
10
10
  ---
@@ -242,13 +242,13 @@ In /yolo mode, the agent generates elaboration questions and answers them itself
242
242
  ```
243
243
  chorus_pm_submit_proposal({ proposalUuid: "<proposal-uuid>" })
244
244
  ```
245
- The PostToolUse hook will auto-spawn `chorus:proposal-reviewer`. Do NOT manually spawn it.
245
+ After this call, the PostToolUse hook injects context instructing you to spawn `chorus:proposal-reviewer`. You MUST spawn it yourself in **foreground** (do NOT set `run_in_background`) it is NOT auto-launched.
246
246
 
247
247
  ---
248
248
 
249
249
  ### Phase 2: Proposal Review Loop
250
250
 
251
- After `chorus_pm_submit_proposal`, the PostToolUse hook auto-spawns `chorus:proposal-reviewer` as a read-only sub-agent. Wait for it to complete, then:
251
+ After `chorus_pm_submit_proposal`, the PostToolUse hook injects context instructing you to spawn `chorus:proposal-reviewer`. You MUST manually spawn it as a read-only sub-agent in **foreground** (do NOT set `run_in_background`). Wait for it to complete, then:
252
252
 
253
253
  1. **Read the reviewer's VERDICT:**
254
254
  ```
@@ -279,7 +279,7 @@ After `chorus_pm_submit_proposal`, the PostToolUse hook auto-spawns `chorus:prop
279
279
  ```
280
280
  chorus_pm_submit_proposal({ proposalUuid: "<proposal-uuid>" })
281
281
  ```
282
- The hook spawns the reviewer again for Round 2.
282
+ After resubmission, the hook injects context again — spawn the reviewer yourself for Round 2.
283
283
 
284
284
  3. **Max rounds:** Loop up to `maxProposalReviewRounds` (from plugin config, default 3). If exhausted:
285
285
  ```
@@ -323,7 +323,7 @@ loop:
323
323
  # 4. Wait for all sub-agents to complete
324
324
  # Each sub-agent follows the /develop workflow:
325
325
  # claim -> in_progress -> develop -> report -> self-check AC -> submit_for_verify
326
- # PostToolUse hook auto-spawns task-reviewer after submit_for_verify
326
+ # PostToolUse hook injects context — main agent must spawn task-reviewer after submit_for_verify
327
327
 
328
328
  # 5. Proceed to Phase 4 (verification) for this wave
329
329
  wave += 1
@@ -350,11 +350,11 @@ for each task in unblocked:
350
350
  chorus_report_criteria_self_check({ taskUuid: "<task-uuid>", criteria: [...] })
351
351
  chorus_submit_for_verify({ taskUuid: "<task-uuid>", summary: "..." })
352
352
 
353
- # PostToolUse hook still triggers task-reviewer
353
+ # PostToolUse hook injects context — you must spawn task-reviewer yourself
354
354
  # Proceed to Phase 4 verification for this task before moving to next
355
355
  ```
356
356
 
357
- The fallback is slower (sequential, not parallel) but still completes the pipeline. All reviewer hooks and verification work the same way.
357
+ The fallback is slower (sequential, not parallel) but still completes the pipeline. The PostToolUse hook injects reviewer instructions the same way in both modes — you must always spawn the reviewer manually.
358
358
 
359
359
  ---
360
360
 
@@ -371,13 +371,17 @@ for each task in wave_tasks:
371
371
  # Sub-agent may have failed; skip or handle
372
372
  continue
373
373
 
374
- # 2. Read task-reviewer VERDICT
374
+ # 2. Spawn task-reviewer in FOREGROUND (hook injects context — you must spawn it yourself)
375
+ # Do NOT set run_in_background — you need the VERDICT before proceeding
376
+ Agent({ subagent_type: "chorus:task-reviewer", prompt: "Review task <task-uuid>..." })
377
+
378
+ # 3. Read task-reviewer VERDICT
375
379
  comments = chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
376
- # Find most recent VERDICT comment
380
+ # Find the most recent comment containing "VERDICT:"
377
381
 
378
- # 3. Act on VERDICT
379
- if VERDICT is PASS or PASS WITH NOTES:
380
- # Mark all AC as passed
382
+ # 4. Act on VERDICT — three possible outcomes:
383
+ if VERDICT is "PASS":
384
+ # All AC verified, no issues. Mark AC and verify.
381
385
  chorus_mark_acceptance_criteria({
382
386
  taskUuid: "<task-uuid>",
383
387
  criteria: [
@@ -388,7 +392,13 @@ for each task in wave_tasks:
388
392
  chorus_admin_verify_task({ taskUuid: "<task-uuid>" })
389
393
  # Task is now "done" -- unblocks dependents
390
394
 
391
- if VERDICT is FAIL:
395
+ if VERDICT is "PASS WITH NOTES":
396
+ # All AC verified, minor non-blocking notes. Still mark AC and verify.
397
+ chorus_mark_acceptance_criteria({ ... })
398
+ chorus_admin_verify_task({ taskUuid: "<task-uuid>" })
399
+
400
+ if VERDICT is "FAIL":
401
+ # BLOCKERs found. Do NOT verify. Reopen for rework.
392
402
  chorus_admin_reopen_task({ taskUuid: "<task-uuid>" })
393
403
  # Task returns to "open", will be picked up in next wave
394
404
  ```
package/README.md CHANGED
@@ -35,6 +35,8 @@ creates analyzes drafts PRD codes & reviews closes
35
35
 
36
36
  ## What's New
37
37
 
38
+ **[v0.6.6](https://chorus-ai.dev/blog/chorus-v0.6.6-release/)** — npm one-click install (`npx @chorus-aidlc/chorus`), document export (MD/PDF/Word), proposal revoke, faster agent checkin with work status at a glance.
39
+
38
40
  **[v0.6.2](https://chorus-ai.dev/blog/chorus-v0.6.2-release/)** — Embedded PGlite mode (zero-dependency deployment), structured logging with Pino, stateless MCP for horizontal scaling, default port changed to 8637.
39
41
 
40
42
  **[v0.6.1](https://chorus-ai.dev/blog/chorus-v0.6.1-release/)** — `/yolo` skill: full-auto AI-DLC pipeline (Idea → Proposal → Execute → Verify) with Agent Team parallel execution.
package/README.zh.md CHANGED
@@ -26,6 +26,8 @@ creates analyzes drafts PRD codes & reviews closes
26
26
 
27
27
  ## 最近更新
28
28
 
29
+ **[v0.6.6](https://chorus-ai.dev/zh/blog/chorus-v0.6.6-release/)** — npm 一键安装(`npx @chorus-aidlc/chorus`)、文档导出(MD/PDF/Word)、Proposal 撤回、优化 Agent Checkin 快速获取工作状态。
30
+
29
31
  **[v0.6.2](https://chorus-ai.dev/zh/blog/chorus-v0.6.2-release/)** — 嵌入式 PGlite 模式(零依赖部署)、Pino 结构化日志、无状态 MCP 支持水平扩展、默认端口改为 8637。
30
32
 
31
33
  **[v0.6.1](https://chorus-ai.dev/zh/blog/chorus-v0.6.1-release/)** — `/yolo` 技能:全自动 AI-DLC 流水线(Idea → Proposal → Execute → Verify),支持 Agent Team 并行执行。
package/chorus.mjs CHANGED
@@ -16,6 +16,25 @@ import { fileURLToPath } from "node:url";
16
16
 
17
17
  const __dirname = dirname(fileURLToPath(import.meta.url));
18
18
 
19
+ // ---------------------------------------------------------------------------
20
+ // Dependency resolution (hoist-safe — see issue #214)
21
+ // ---------------------------------------------------------------------------
22
+ // Use import.meta.resolve so the correct copy of each dependency is found
23
+ // regardless of how the user's package manager laid out node_modules
24
+ // (nested, hoisted to global root, yarn classic link, etc.).
25
+
26
+ function resolveOrDie(specifier) {
27
+ try {
28
+ return fileURLToPath(import.meta.resolve(specifier));
29
+ } catch {
30
+ console.error(`\nERROR: cannot resolve dependency "${specifier}".`);
31
+ console.error(`This usually means your package manager hoisted deps in an`);
32
+ console.error(`unexpected layout. Try reinstalling with npm, or see`);
33
+ console.error(`https://github.com/Chorus-AIDLC/Chorus/issues/214 for context.`);
34
+ process.exit(1);
35
+ }
36
+ }
37
+
19
38
  // ---------------------------------------------------------------------------
20
39
  // CLI argument parsing (zero dependencies)
21
40
  // ---------------------------------------------------------------------------
@@ -149,15 +168,12 @@ async function main() {
149
168
  // Start embedded PGlite
150
169
  console.log(`Starting embedded PostgreSQL (PGlite) on port ${PGLITE_PORT}...`);
151
170
 
152
- const serverScript = join(
153
- __dirname,
154
- "node_modules",
155
- "@electric-sql",
156
- "pglite-socket",
157
- "dist",
158
- "scripts",
159
- "server.js"
160
- );
171
+ // @electric-sql/pglite-socket does not expose `./dist/scripts/server.js`
172
+ // via the "exports" field, so we resolve the package entry (which IS
173
+ // exported) and derive the sibling server.js path. This remains
174
+ // hoist-safe — see issue #214.
175
+ const pgliteSocketEntry = resolveOrDie("@electric-sql/pglite-socket");
176
+ const serverScript = resolve(dirname(pgliteSocketEntry), "scripts", "server.js");
161
177
 
162
178
  pgliteProcess = fork(serverScript, [
163
179
  `--db=${join(dataDir, "pglite")}`,
@@ -166,7 +182,13 @@ async function main() {
166
182
  ], { stdio: "ignore", detached: false });
167
183
 
168
184
  pgliteProcess.on("error", (err) => {
169
- console.error("PGlite process error:", err.message);
185
+ // MODULE_NOT_FOUND is unreachable after the resolveOrDie fix above, but
186
+ // guard against regressions (see issue #214).
187
+ if (err.code === "MODULE_NOT_FOUND") {
188
+ console.error(`PGlite server script unreachable: ${err.message}`);
189
+ } else {
190
+ console.error("PGlite process error:", err.message);
191
+ }
170
192
  process.exit(1);
171
193
  });
172
194
 
@@ -191,9 +213,9 @@ async function main() {
191
213
 
192
214
  // 3. Run database migrations
193
215
  console.log("Running database migrations...");
194
- const prismaPath = join(__dirname, "node_modules", ".bin", "prisma");
216
+ const prismaBin = resolveOrDie("prisma/build/index.js");
195
217
  try {
196
- execSync(`"${prismaPath}" migrate deploy`, {
218
+ execSync(`"${process.execPath}" "${prismaBin}" migrate deploy`, {
197
219
  cwd: __dirname,
198
220
  stdio: "inherit",
199
221
  env: { ...process.env },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chorus-aidlc/chorus",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "The Agent Harness for AI-Human Collaboration — session lifecycle, task state, sub-agent orchestration, observability, and failure recovery",
5
5
  "homepage": "https://github.com/Chorus-AIDLC/Chorus",
6
6
  "repository": {
@@ -25,9 +25,7 @@
25
25
  ".next/standalone/",
26
26
  "prisma/schema.prisma",
27
27
  "prisma/migrations/",
28
- "prisma.config.ts",
29
- "node_modules/@electric-sql/",
30
- "node_modules/dotenv/"
28
+ "prisma.config.ts"
31
29
  ],
32
30
  "scripts": {
33
31
  "dev": "next dev --turbopack --port 8637",