diff --git a/MANIFEST.in b/MANIFEST.in index 176d59d7b..41822fcb7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,4 @@ -include resources/graphpaper-inline.html \ No newline at end of file +include resources/graphpaper-inline.html +include resources/sample_audio.wav +include resources/sample_video.mp4 +include resources/sample_image.png diff --git a/client/graphpaper-inline/src/App.svelte b/client/graphpaper-inline/src/App.svelte index bcadf181b..102d0a2d2 100644 --- a/client/graphpaper-inline/src/App.svelte +++ b/client/graphpaper-inline/src/App.svelte @@ -11,9 +11,11 @@ For upcoming features, we won't be able to send all details over the wire, and w clientmsg, type GenTokenExtra, type GuidanceMessage, + isAudioOutput, isClientReadyAckMessage, isExecutionCompletedMessage, isExecutionStartedMessage, + isImageOutput, isMetricMessage, isResetDisplayMessage, isRoleCloserInput, @@ -21,6 +23,7 @@ For upcoming features, we won't be able to send all details over the wire, and w isTextOutput, isTokensMessage, isTraceMessage, + isVideoOutput, kernelmsg, type NodeAttr, state, @@ -75,6 +78,15 @@ For upcoming features, we won't be able to send all details over the wire, and w appState.textComponents.push(msg.node_attr); } else if (isRoleCloserInput(msg.node_attr)) { appState.textComponents.push(msg.node_attr); + } else if (isAudioOutput(msg.node_attr)) { + console.log("Audio available") + appState.textComponents.push(msg.node_attr); + } else if (isImageOutput(msg.node_attr)) { + console.log("Image available") + appState.textComponents.push(msg.node_attr); + } else if (isVideoOutput(msg.node_attr)) { + console.log("Video available") + appState.textComponents.push(msg.node_attr); } } else if (isExecutionStartedMessage(msg)) { appState.requireFullReplay = false; @@ -212,4 +224,4 @@ For upcoming features, we won't be able to send all details over the wire, and w isError={appState.status === Status.Error} bgField={bgField} underlineField={underlineField} requireFullReplay="{appState.requireFullReplay}" /> - \ No newline at end of file + diff --git a/client/graphpaper-inline/src/CustomAudio.svelte b/client/graphpaper-inline/src/CustomAudio.svelte new file mode 100644 index 000000000..baec2214d --- /dev/null +++ b/client/graphpaper-inline/src/CustomAudio.svelte @@ -0,0 +1,206 @@ + + + +