@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 +1 -1
- package/src/commands/game.ts +2 -2
package/package.json
CHANGED
package/src/commands/game.ts
CHANGED
|
@@ -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,
|