Add building the artifact graph in sketch mode, take 2 (#7557)

* Add building the artifact graph in mock execution

* Update output

* Add updating the artifact graph after mock execution

* Fix spelling

* Fix to return it all the way

* Fix to not make artifact fields undefined in TS
This commit is contained in:
Jonathan Tran
2025-06-23 11:34:14 -04:00
committed by GitHub
parent 7ce0ef770a
commit eabcf86436
11 changed files with 71 additions and 59 deletions

View File

@ -13,11 +13,7 @@ import type { Models } from '@kittycad/lib/dist/types/src'
import type { EngineCommandManager } from '@src/lang/std/engineConnection'
import { fileSystemManager } from '@src/lang/std/fileSystemManager'
import type { ExecState } from '@src/lang/wasm'
import {
errFromErrWithOutputs,
execStateFromRust,
mockExecStateFromRust,
} from '@src/lang/wasm'
import { errFromErrWithOutputs, execStateFromRust } from '@src/lang/wasm'
import { initPromise } from '@src/lang/wasmUtils'
import type ModelingAppFile from '@src/lib/modelingAppFile'
import type { DefaultPlaneStr } from '@src/lib/planes'
@ -120,7 +116,7 @@ export default class RustContext {
JSON.stringify(settings),
usePrevMemory
)
return mockExecStateFromRust(result)
return execStateFromRust(result)
} catch (e: any) {
return Promise.reject(errFromErrWithOutputs(e))
}