@iamoberlin/chorus 1.2.5 → 1.2.6
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 +4 -5
- package/package.json +1 -1
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.2.
|
|
41
|
+
const VERSION = "1.2.6"; // Fixed: use --message flag instead of nonexistent stdin support
|
|
42
42
|
|
|
43
43
|
const plugin = {
|
|
44
44
|
id: "chorus",
|
|
@@ -213,14 +213,14 @@ const plugin = {
|
|
|
213
213
|
console.error(` ✗ ${choir.name} failed:`, err);
|
|
214
214
|
}
|
|
215
215
|
} else {
|
|
216
|
-
// CLI context: use openclaw agent
|
|
216
|
+
// CLI context: use openclaw agent with --message flag
|
|
217
217
|
try {
|
|
218
218
|
const result = spawnSync('openclaw', [
|
|
219
219
|
'agent',
|
|
220
220
|
'--session-id', `chorus:${id}`,
|
|
221
|
+
'--message', choir.prompt,
|
|
221
222
|
'--json',
|
|
222
223
|
], {
|
|
223
|
-
input: choir.prompt,
|
|
224
224
|
encoding: 'utf-8',
|
|
225
225
|
timeout: 300000, // 5 min
|
|
226
226
|
maxBuffer: 1024 * 1024, // 1MB
|
|
@@ -348,13 +348,12 @@ const plugin = {
|
|
|
348
348
|
|
|
349
349
|
try {
|
|
350
350
|
// Run the REAL choir with full tool access via direct agent call
|
|
351
|
-
// Pass the choir prompt via stdin to avoid arg length limits
|
|
352
351
|
const result = spawnSync('openclaw', [
|
|
353
352
|
'agent',
|
|
354
353
|
'--session-id', `chorus:vision:${choirId}:d${day}`,
|
|
354
|
+
'--message', choir.prompt,
|
|
355
355
|
'--json',
|
|
356
356
|
], {
|
|
357
|
-
input: choir.prompt, // Pass the full choir prompt via stdin
|
|
358
357
|
encoding: 'utf-8',
|
|
359
358
|
timeout: 300000, // 5 min timeout per choir (real work takes longer)
|
|
360
359
|
maxBuffer: 10 * 1024 * 1024, // 10MB buffer for full output
|
package/package.json
CHANGED