@iamoberlin/chorus 1.2.1 → 1.2.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.
Files changed (2) hide show
  1. package/index.ts +5 -10
  2. 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.1"; // Bug fixes: error handling, async safety
41
+ const VERSION = "1.2.2"; // Fix vision command CLI args
42
42
 
43
43
  const plugin = {
44
44
  id: "chorus",
@@ -315,21 +315,16 @@ const plugin = {
315
315
  process.stdout.write(` ${choir.emoji} ${choir.name}...`);
316
316
 
317
317
  try {
318
- // Build a simplified prompt for vision mode
319
- const visionPrompt = `You are running as ${choir.name} in VISION MODE (day ${day}/${days}).
320
- Your role: ${choir.function}
321
- Output: ${choir.output}
318
+ // Build a simplified prompt for vision mode (short enough for CLI args)
319
+ const visionPrompt = `You are ${choir.name} in VISION MODE (day ${day}/${days}). Role: ${choir.function}. Output: ${choir.output}. Provide a brief summary of what you would do. Keep response under 300 words.`;
322
320
 
323
- This is a simulated cognitive cycle. Provide a brief summary of what you would do/output.
324
- Keep response under 500 words.`;
325
-
326
- // Use spawnSync with stdin to avoid arg length limits
321
+ // Vision prompts are short - safe to use --message
327
322
  const result = spawnSync('openclaw', [
328
323
  'agent',
329
324
  '--session-id', `chorus:vision:${choirId}:d${day}`,
325
+ '--message', visionPrompt,
330
326
  '--json',
331
327
  ], {
332
- input: visionPrompt,
333
328
  encoding: 'utf-8',
334
329
  timeout: 120000, // 2 min timeout per choir
335
330
  maxBuffer: 1024 * 1024, // 1MB buffer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamoberlin/chorus",
3
- "version": "1.2.1",
3
+ "version": "1.2.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",