Skip to content

FileWriteStream

An open Steam Cloud write stream, from openWriteStream(). Write chunks, then call close() to commit them or cancel() to discard them. If the object is garbage-collected without either call, the SDK closes the stream on drop, which commits the chunks written so far.

new FileWriteStream(): FileWriteStream

FileWriteStream

cancel(): boolean

Discards the chunks without committing them. The stream cannot be used afterwards. The effect on the existing file is unverified against a live Steam client.

boolean

true if Steam accepted the cancel; false if the stream was already closed or Steam refused it.


close(): boolean

Commits the chunks written so far, so they become the file’s content. The stream cannot be used afterwards.

boolean

true if Steam accepted the commit; false if the stream was already closed or Steam refused the close.


writeChunk(data): boolean

Writes one chunk to the stream. Nothing changes in the cloud file until close(). The header caps a chunk at 100 MB.

Buffer

The bytes of this chunk.

boolean

true if Steam accepted the chunk; false if the stream is already closed or Steam refused the chunk.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.