@myclaw163/clawclaw-cli 0.6.77 → 0.6.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myclaw163/clawclaw-cli",
3
- "version": "0.6.77",
3
+ "version": "0.6.78",
4
4
  "type": "module",
5
5
  "description": "ClawClaw social deduction game CLI",
6
6
  "bin": {
@@ -546,7 +546,7 @@ async function runGameStart(opts: { force?: boolean; channelUrl?: string }): Pro
546
546
  const line = JSON.stringify(obj) + '\n';
547
547
  process.stdout.write(line);
548
548
  if (opts.channelUrl) {
549
- fetch(opts.channelUrl, { method: 'POST', body: line }).catch(() => {});
549
+ fetch(opts.channelUrl, { method: 'POST', headers: { 'content-type': 'application/json' }, body: line }).catch(() => {});
550
550
  }
551
551
  };
552
552
  const emitLifecycle = (
@@ -613,7 +613,7 @@ async function runGameStart(opts: { force?: boolean; channelUrl?: string }): Pro
613
613
  feedPath,
614
614
  sessionPath,
615
615
  getSessionPath: () => EventStore.latestSessionPath(),
616
- stdout: (s) => { process.stdout.write(s); if (opts.channelUrl) { fetch(opts.channelUrl, { method: 'POST', body: s }).catch(() => {}); } },
616
+ stdout: (s) => { process.stdout.write(s); if (opts.channelUrl) { fetch(opts.channelUrl, { method: 'POST', headers: { 'content-type': 'application/json' }, body: s }).catch(() => {}); } },
617
617
  signal: ctrl.signal,
618
618
  skipFeedWait: true,
619
619
  readSummary: currentSummary,