Change to not expose exec artifacts (#5700)
Now that the artifact graph is built completely in Rust, these are an implementation detail that shouldn't be exposed to TS.
This commit is contained in:
@ -64,8 +64,6 @@ pub struct ExecOutcome {
|
|||||||
/// Operations that have been performed in execution order, for display in
|
/// Operations that have been performed in execution order, for display in
|
||||||
/// the Feature Tree.
|
/// the Feature Tree.
|
||||||
pub operations: Vec<Operation>,
|
pub operations: Vec<Operation>,
|
||||||
/// Output map of UUIDs to artifacts.
|
|
||||||
pub artifacts: IndexMap<ArtifactId, Artifact>,
|
|
||||||
/// Output commands to allow building the artifact graph by the caller.
|
/// Output commands to allow building the artifact graph by the caller.
|
||||||
pub artifact_commands: Vec<ArtifactCommand>,
|
pub artifact_commands: Vec<ArtifactCommand>,
|
||||||
/// Output artifact graph.
|
/// Output artifact graph.
|
||||||
|
@ -123,7 +123,6 @@ impl ExecState {
|
|||||||
.map(|(k, v)| (k.clone(), v.clone()))
|
.map(|(k, v)| (k.clone(), v.clone()))
|
||||||
.collect(),
|
.collect(),
|
||||||
operations: self.global.operations,
|
operations: self.global.operations,
|
||||||
artifacts: self.global.artifacts,
|
|
||||||
artifact_commands: self.global.artifact_commands,
|
artifact_commands: self.global.artifact_commands,
|
||||||
artifact_graph: self.global.artifact_graph,
|
artifact_graph: self.global.artifact_graph,
|
||||||
errors: self.global.errors,
|
errors: self.global.errors,
|
||||||
@ -146,7 +145,6 @@ impl ExecState {
|
|||||||
.map(|(k, v)| (k.clone(), v.clone()))
|
.map(|(k, v)| (k.clone(), v.clone()))
|
||||||
.collect(),
|
.collect(),
|
||||||
operations: Default::default(),
|
operations: Default::default(),
|
||||||
artifacts: Default::default(),
|
|
||||||
artifact_commands: Default::default(),
|
artifact_commands: Default::default(),
|
||||||
artifact_graph: Default::default(),
|
artifact_graph: Default::default(),
|
||||||
errors: self.global.errors,
|
errors: self.global.errors,
|
||||||
|
@ -295,7 +295,6 @@ export const isPathToNodeNumber = (
|
|||||||
export interface ExecState {
|
export interface ExecState {
|
||||||
variables: { [key in string]?: KclValue }
|
variables: { [key in string]?: KclValue }
|
||||||
operations: Operation[]
|
operations: Operation[]
|
||||||
artifacts: { [key in ArtifactId]?: RustArtifact }
|
|
||||||
artifactCommands: ArtifactCommand[]
|
artifactCommands: ArtifactCommand[]
|
||||||
artifactGraph: ArtifactGraph
|
artifactGraph: ArtifactGraph
|
||||||
errors: CompilationError[]
|
errors: CompilationError[]
|
||||||
@ -310,7 +309,6 @@ export function emptyExecState(): ExecState {
|
|||||||
return {
|
return {
|
||||||
variables: {},
|
variables: {},
|
||||||
operations: [],
|
operations: [],
|
||||||
artifacts: {},
|
|
||||||
artifactCommands: [],
|
artifactCommands: [],
|
||||||
artifactGraph: defaultArtifactGraph(),
|
artifactGraph: defaultArtifactGraph(),
|
||||||
errors: [],
|
errors: [],
|
||||||
@ -337,7 +335,6 @@ function execStateFromRust(
|
|||||||
return {
|
return {
|
||||||
variables: execOutcome.variables,
|
variables: execOutcome.variables,
|
||||||
operations: execOutcome.operations,
|
operations: execOutcome.operations,
|
||||||
artifacts: execOutcome.artifacts,
|
|
||||||
artifactCommands: execOutcome.artifactCommands,
|
artifactCommands: execOutcome.artifactCommands,
|
||||||
artifactGraph,
|
artifactGraph,
|
||||||
errors: execOutcome.errors,
|
errors: execOutcome.errors,
|
||||||
@ -349,7 +346,6 @@ function mockExecStateFromRust(execOutcome: RustExecOutcome): ExecState {
|
|||||||
return {
|
return {
|
||||||
variables: execOutcome.variables,
|
variables: execOutcome.variables,
|
||||||
operations: execOutcome.operations,
|
operations: execOutcome.operations,
|
||||||
artifacts: execOutcome.artifacts,
|
|
||||||
artifactCommands: execOutcome.artifactCommands,
|
artifactCommands: execOutcome.artifactCommands,
|
||||||
artifactGraph: new Map<ArtifactId, Artifact>(),
|
artifactGraph: new Map<ArtifactId, Artifact>(),
|
||||||
errors: execOutcome.errors,
|
errors: execOutcome.errors,
|
||||||
|
Reference in New Issue
Block a user