Skip to content

Add optional bilingual CrystalPilot plugins for Argus 0.1.3 - #119

Draft
TopoSpace wants to merge 3 commits into
devfrom
codex/optional-crystalpilot-plugins-20260910
Draft

Add optional bilingual CrystalPilot plugins for Argus 0.1.3#119
TopoSpace wants to merge 3 commits into
devfrom
codex/optional-crystalpilot-plugins-20260910

Conversation

@TopoSpace

@TopoSpace TopoSpace commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Argus users can install CrystalPilot from a plugin center, open its separate workbench, or enable crystallography tools in a native conversation with /crystalpilot. The host follows the configured Codex, Copilot or Pi backend, including per-role choices. Unsupported backends block entry without changing provider or model configuration. A fresh Argus installation has no plugin enabled.

This branch is based on main 407ee917 (0.1.3), retaining its Windows/macOS desktop, trial onboarding, signed-runtime and updater fixes. The new command follows the existing everyday commands so keyboard completion keeps its original order.

The host downloads CrystalPilot 0.4.0 from https://crystalpilot-downloads.argusbot.cn/, verifies the catalog-pinned SHA-256, prepares an isolated scientific environment and activates a validated release. The plugin scientific core and workbench implementation are maintained separately; they are not in this public patch or the host wheel. Public builds and CI do not require private repository credentials. External scientific software and user credentials are not bundled.

CrystalPilot 0.4.0 includes offline Chinese/English UI catalogs. A compact sidebar language button and Settings → Appearance share a plugin-owned preference. Changing it preserves the mounted conversation, input draft and active task; subsequent replies, progress explanations, reports and automatic titles follow that language. Existing names, paths, scientific evidence and historical messages remain intact. The Argus plugin-center UI follows the host locale and shows a small catalog-provided rights notice.

Updates stage a new version before switching and keep the previous release on failure. Active plugin work blocks update, disable and uninstall. Data, conversation state and reusable scientific software are stored separately and retained on uninstall. Native Argus conversations and CrystalPilot workbench conversations have separate ownership. Authenticated plugin routes, CLI tool bindings, cancellation/events and accounting integrate with the host lifecycle. The environment UI exposes health/repair and licensed SHELX downloads without sending download credentials through a model.

The host includes general fixes discovered during plugin testing: legitimate uv cache hardlinks are detached before protected Playground skill snapshots without weakening execution-time checks; verified pre-execution Codex refusals are recorded without estimating model charges. Luna reference pricing is included. The published plugin also retains approval accept/reject/session-grant fixes, KIMI/auto defaults and closes pending approvals before exposing cancellation completion.

Build configuration preserves external catalog entries when no plugin source is in the checkout; only locally built packages get local artifact paths. The compatibility catalog remains curated with Argus releases, rather than automatically trusting a remote latest manifest. Documentation explains installation, language settings, licensing, data retention and publication. Web/TUI assets and the 0.1.3 source manifest are refreshed. A four-platform plugin CI example installs from public HTTPS. It is supplied under docs/ci-examples/ for maintainers to enable: the isolated submitting OAuth session lacks GitHub workflow scope, so no new workflow is activated by this PR. Existing repository CI remains unchanged.

Validation:

  • The front-door prompt retains execution-vs-reply guidance within the existing 3,000-character short-message budget (2,974 characters). All 147 related classification, routing, prompt-catalog and acceptance checks passed; the budget assertion remains unchanged.
  • On rebasing to 0.1.3, 177 focused host/backend/accounting/desktop checks passed; 5 platform/opt-in checks skipped on Linux. All 14 release checks passed with ARGUS_RELEASE_BUILD=1.
  • After the language/catalog update, 50 host plugin/release/Playground checks and host-wide Ruff passed; Web/TUI builds and artifact verification passed. Fifteen plugin-center/command-completion frontend checks passed; the earlier 19 command/theme/desktop-bridge checks also passed.
  • The separately maintained plugin passed 566 frontend tests, 78 interface/language/approval contracts and 11 worker tests. A real gpt-5.6-luna probe returned English to Chinese input using the stored English preference.
  • Browser checks covered the welcome page, all six Settings sections, scientific activity summaries and all six right-pane pages. Sidebar and Settings language switches stayed synchronized, retained an unsent Chinese draft and kept the same document; no page errors were recorded. Existing records were not translated or overwritten.
  • The packaged 0.1.3 host installed the final public 0.4.0 wheel through the management API. Scientific Python, DIALS, Systre/Java and PLATON health checks passed using the reusable software from the prior clean-install run; SHELX remained pending user authorization. Earlier acceptance verified native /crystalpilot on/off, cross-surface isolation and uninstall retention against this host baseline.
  • Public HTTPS checks verify artifact SHA-256 and licensing links; source archives exclude credentials, research data and downloaded scientific binaries. All real model calls for translation and language verification used gpt-5.6-luna. No new end-to-end crystal solve or full backend suite is claimed; Windows/macOS plugin installation checks still require running the supplied CI example.

This PR is for review and is not to be merged yet. The upstream host package version stays 0.1.3 for maintainers to coordinate the next release.

Argus CrystalPilot: © 2026 TopoSpace. All rights reserved. Unauthorized commercial use or derivative development is prohibited. Third-party components retain their respective licenses. These terms apply to the TopoSpace-owned plugin, not to Argus or this MIT-licensed host integration.

lbx154 added a commit that referenced this pull request Sep 11, 2026
Adapt the host integration from #119 without reverting current runtime or release changes. Keep the independently distributed scientific plugin optional and preserve its license and user-owned scientific data.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbx154 lbx154 closed this Sep 14, 2026
@lbx154
lbx154 deleted the codex/optional-crystalpilot-plugins-20260910 branch September 14, 2026 12:44
@lbx154
lbx154 restored the codex/optional-crystalpilot-plugins-20260910 branch September 14, 2026 12:45
@lbx154 lbx154 reopened this Sep 14, 2026
@lbx154
lbx154 changed the base branch from main to dev September 14, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants