mirror of
https://github.com/openai/codex.git
synced 2026-10-28 00:03:58 +00:00
feat: wire spreadsheet artifact (#13362)
This commit is contained in:
@@ -58,6 +58,9 @@ use chrono::Utc;
|
||||
use codex_artifact_presentation::PresentationArtifactError;
|
||||
use codex_artifact_presentation::PresentationArtifactExecutionRequest;
|
||||
use codex_artifact_presentation::PresentationArtifactResponse;
|
||||
use codex_artifact_spreadsheet::SpreadsheetArtifactError;
|
||||
use codex_artifact_spreadsheet::SpreadsheetArtifactRequest;
|
||||
use codex_artifact_spreadsheet::SpreadsheetArtifactResponse;
|
||||
use codex_hooks::HookEvent;
|
||||
use codex_hooks::HookEventAfterAgent;
|
||||
use codex_hooks::HookPayload;
|
||||
@@ -1786,7 +1789,16 @@ impl Session {
|
||||
cwd: &Path,
|
||||
) -> Result<PresentationArtifactResponse, PresentationArtifactError> {
|
||||
let mut state = self.state.lock().await;
|
||||
state.presentation_artifacts.execute_requests(request, cwd)
|
||||
state.artifacts.presentation.execute_requests(request, cwd)
|
||||
}
|
||||
|
||||
pub(crate) async fn execute_spreadsheet_artifact(
|
||||
&self,
|
||||
request: SpreadsheetArtifactRequest,
|
||||
cwd: &Path,
|
||||
) -> Result<SpreadsheetArtifactResponse, SpreadsheetArtifactError> {
|
||||
let mut state = self.state.lock().await;
|
||||
state.artifacts.spreadsheet.execute(request, cwd)
|
||||
}
|
||||
|
||||
async fn record_initial_history(&self, conversation_history: InitialHistory) {
|
||||
|
||||
Reference in New Issue
Block a user