2.0 KiB
2.0 KiB
Web CommandDoc implementation handoff
Batch: eb895feded9fb25649b8a702
Status: implementation_ready / 待用户验证
Std_ProjectUtil: mounted file/folder task → Part family facade/worker → desktopfreecad.project_utilityin the live PartBox runtime. Extraction preserves paths in OPFS; creation uses Document.xml and referenced project files, writes the actual FCStd to OPFS, and optionally opens it in the native document owner. The desktop extraction helper now handles repeated subdirectories and directory entries.Std_Properties: mounted Property view → current document/selection → native property metadata and values. Editable scalar, quantity, vector, placement, list and link properties use native setters inside a document transaction and recompute; geometry refresh uses the existing scene path. Native read-only/hidden flags are respected. Specialized unsupported property types remain visible as read-only values.Std_Quit: mounted document decisions → native save preparation → actual FCStd persistence in OPFS → native close after a revision/token check → workspace unmount. Cancel or persistence failure keeps the workspace open. The headless host requests a decision for every open document because GUI dirty-state tracking is not present.Std_Redo: mounted transaction-count input → native owner view facade/worker → real document redo stack → structured transaction result and scene refresh. This path serves the native document stack; text-control editing keeps its own browser undo/redo behavior.
Outer pipeline handoff: rebuild/link the changed FreeCADWebPartBoxProbe owner and sync its resources; its CMake options now embed the desktop project utility and Python standard library dependencies. The selected Web facade must continue routing these document operations to PartBox, not create a separate document in FreeCADWebWebRuntimeProbe. The shared NativeDocumentView header also carries the Redo response for DocumentProbe. Generate route receipts in the outer pipeline.