Repository navigation
cq-viewer 1.4.0: white-model render, conversation folders, orbit around the pressed point - #59
Merged
Merged
Conversation
…nd the pressed point CadQuery Viewer - White-model render: capture the visible models as a clay-white picture cropped to the model; a background Agent turn renders it with MiniMax image generation (image-to-image). Styles, aspect ratio, part colours, the user's own description; progress, approvals relayed to the page (never auto-allowed), compare / copy / download / retry. - Conversation folders: the page reads the conversation it is open in (agent.session(), agentAccess "session.read") and lists every model in that folder, grouped by folder with the extra folders and ~/.cqview/scene; nothing opens until ticked; nothing is listed outside a conversation. Annotations, renders, and AI open requests are kept per conversation folder; MCP tools take a `workspace` argument. - Navigation: pressing on the model makes that point the orbit centre without moving the picture; trackpad (two-finger pan, pinch zoom) and mouse (wheel zoom, right/middle pan) mappings, detected per scroll or fixed in the new 操作方式 popover. - The page shows the plugin icon instead of the old cube logo. - Tests: render.test.mjs (10), workspace.test.mjs (6); 35 in total. Repository contract - agentAccess may also contain "session.read" (MiniMax Code 3.1.4 or later, observed on 3.1.4-preview): validator, minimum-version table, docs/agent.md, docs/package-contract.md, and the test updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CadQuery Viewer 1.4.0
White-model render
Conversation folders
agent.session()(agentAccess: "session.read").~/.cqview/scene. Each group folds, and nothing opens until a model is ticked. Outside a conversation nothing is listed.workspaceargument, so an AI opens models only in its own conversation's viewer. The bundled skill now passes it.Navigation
Other
Repository contract
agentAccessmay now also contain"session.read", with minimum MiniMax Code 3.1.4. This covers the validator, the minimum-version table,docs/agent.md,docs/package-contract.md, and the corresponding test.The capability is not documented yet. It was observed on
3.1.4-preview.4773: with the grant, the page'sagent.session()returns the current conversation, includingworkspaceDir.Checks
npm run check: no errors;plugins/hanzijie/cq-viewer: OKwith no warnings; 69/69 tests pass.node --test plugins/hanzijie/cq-viewer/tests/*.test.mjs: 35/35 pass, includingrender.test.mjs(10 tests) andworkspace.test.mjs(6 tests).viewer_connected: true. A cold Agent session ran the exact render instructions end to end and produced a 2048² PNG that passed the Viewer's own checks.Not verified
workspaceargument through the Host from a new conversation.Need help on this PR? Tag
@codesmith-botwith what you need.