Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(types): add artifact event payload types

Steven Enamakel4361160d1850
diff --git a/app/src/types/threadWire.generated.ts b/app/src/types/threadWire.generated.ts
index d1d41f4dcb..606aab438f 100644
--- a/app/src/types/threadWire.generated.ts
+++ b/app/src/types/threadWire.generated.ts
@@ -215,7 +215,10 @@ export interface ThreadWireTypes {
agentRun: AgentRun;
agentRunGet: RunLedgerGetWireResponse;
agentRunList: AgentRunListResponse;
+ artifactFailedPayload: ArtifactFailedPayload;
artifactKind: ArtifactKind;
+ artifactPendingPayload: ArtifactPendingPayload;
+ artifactReadyPayload: ArtifactReadyPayload;
clearTurnState: ClearTurnStateResponse;
getTurnState: GetTurnStateResponse;
listTurnStates: ListTurnStatesResponse;
@@ -361,6 +364,40 @@ export interface AgentRunListResponse {
count: number;
runs: AgentRun[];
}
+/**
+ * Artifact fields carried inside `WebChannelEvent.args` when generation
+ * failed. The producer truncates `error` before publishing this payload.
+ */
+export interface ArtifactFailedPayload {
+ artifact_id: string;
+ error: string;
+ kind: string;
+ title: string;
+ workspace_dir: string;
+}
+/**
+ * Artifact fields carried inside the generic `WebChannelEvent.args` payload
+ * when an artifact has been reserved and generation is in progress.
+ */
+export interface ArtifactPendingPayload {
+ artifact_id: string;
+ kind: string;
+ path: string;
+ title: string;
+ workspace_dir: string;
+}
+/**
+ * Artifact fields carried inside `WebChannelEvent.args` after a file is
+ * available for download.
+ */
+export interface ArtifactReadyPayload {
+ artifact_id: string;
+ kind: string;
+ path: string;
+ size_bytes: number;
+ title: string;
+ workspace_dir: string;
+}
/**
* Response payload for `openhuman.threads_turn_state_clear`.
*/