@iamoberlin/chorus 1.3.0 → 1.3.2

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/index.ts CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  import * as prayers from "./src/prayers/prayers.js";
39
39
  import * as prayerStore from "./src/prayers/store.js";
40
40
 
41
- const VERSION = "1.3.0"; // Async spawn: unblock gateway event loop during choir execution
41
+ const VERSION = "1.3.2"; // Fix: pass prompt via stdin not --message flag
42
42
 
43
43
  const plugin = {
44
44
  id: "chorus",
@@ -219,14 +219,14 @@ const plugin = {
219
219
  console.error(` ✗ ${choir.name} failed:`, err);
220
220
  }
221
221
  } else {
222
- // CLI context: use openclaw agent with stdin
222
+ // CLI context: use openclaw agent with --message flag
223
223
  try {
224
224
  const result = spawnSync('openclaw', [
225
225
  'agent',
226
226
  '--session-id', `chorus:${id}`,
227
+ '--message', choir.prompt,
227
228
  '--json',
228
229
  ], {
229
- input: choir.prompt,
230
230
  encoding: 'utf-8',
231
231
  timeout: 300000, // 5 min
232
232
  maxBuffer: 1024 * 1024, // 1MB
@@ -328,9 +328,9 @@ const plugin = {
328
328
  const result = spawnSync('openclaw', [
329
329
  'agent',
330
330
  '--session-id', `chorus:vision:dry:${choirId}:d${day}`,
331
+ '--message', dryPrompt,
331
332
  '--json',
332
333
  ], {
333
- input: dryPrompt,
334
334
  encoding: 'utf-8',
335
335
  timeout: 60000,
336
336
  maxBuffer: 1024 * 1024,
@@ -364,9 +364,9 @@ const plugin = {
364
364
  const result = spawnSync('openclaw', [
365
365
  'agent',
366
366
  '--session-id', `chorus:vision:${choirId}:d${day}`,
367
+ '--message', choir.prompt,
367
368
  '--json',
368
369
  ], {
369
- input: choir.prompt,
370
370
  encoding: 'utf-8',
371
371
  timeout: 300000, // 5 min timeout per choir (real work takes longer)
372
372
  maxBuffer: 10 * 1024 * 1024, // 10MB buffer for full output
@@ -2,7 +2,7 @@
2
2
  "id": "chorus",
3
3
  "name": "CHORUS",
4
4
  "description": "CHORUS: Hierarchy Of Recursive Unified Self-improvement",
5
- "version": "1.3.0",
5
+ "version": "1.3.2",
6
6
  "author": "Oberlin",
7
7
  "homepage": "https://chorus.oberlin.ai",
8
8
  "repository": "https://github.com/iamoberlin/chorus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamoberlin/chorus",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "CHORUS: Hierarchy Of Recursive Unified Self-improvement — with Prayer Requests social network",
5
5
  "author": "Oberlin <iam@oberlin.ai>",
6
6
  "license": "MIT",
package/src/scheduler.ts CHANGED
@@ -133,10 +133,13 @@ export function createChoirScheduler(
133
133
  const child = spawn('openclaw', [
134
134
  'agent',
135
135
  '--session-id', `chorus:${choir.id}`,
136
- '--message', prompt,
137
136
  '--json',
138
137
  ], { stdio: ['pipe', 'pipe', 'pipe'] });
139
138
 
139
+ // Pass prompt via stdin (--message flag doesn't work)
140
+ child.stdin.write(prompt);
141
+ child.stdin.end();
142
+
140
143
  let stdout = '';
141
144
  let stderr = '';
142
145
  const maxBuffer = 1024 * 1024;