Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e089c85
feat(minimax): add native plugin setup and verification
Lkx-JY Oct 23, 2026
69acec1
fix(minimax): preserve configuration and native plugin state
Lkx-JY Oct 23, 2026
12c04b3
test(minimax): handle generated MCP JSON formatting
Lkx-JY Oct 23, 2026
33bceb7
docs(minimax): clarify protected server connection setup
Lkx-JY Oct 23, 2026
8bb095d
fix(desktop): qualify current Server contract
Lkx-JY Oct 23, 2026
1e131b3
merge: resolve desktop qualification conflicts with master
Lkx-JY Oct 25, 2026
1f634ff
merge: sync master and resolve desktop qualification conflicts
Lkx-JY Oct 26, 2026
b0db0f0
merge: sync master and resolve desktop qualification conflicts
Lkx-JY Oct 26, 2026
4fe953d
test(upgrade): isolate source revision environment
Lkx-JY Oct 27, 2026
bddfc91
ci(desktop): retain macOS packaging diagnostics
Lkx-JY Oct 27, 2026
b6f40f7
test(minimax): isolate native MCP acceptance routes
Lkx-JY Oct 28, 2026
dfa6d6a
merge: sync master and resolve MiniMax conflicts
Lkx-JY Oct 28, 2026
3f9b906
merge: sync master and preserve desktop qualification
Lkx-JY Oct 29, 2026
0b0498a
merge: sync patched upgrade CI
Lkx-JY Oct 29, 2026
83ad019
merge: sync master and resolve PR conflicts
Lkx-JY Oct 29, 2026
f4345d0
test(minimax): capture isolated native discovery evidence
Lkx-JY Oct 29, 2026
f38965e
docs(minimax): record discovery race and qualification limits
Lkx-JY Oct 29, 2026
9726162
merge: sync master and preserve desktop qualification
hidb4ai Oct 30, 2026
b985f44
fix(ci): align Code publication compatibility checks
hidb4ai Oct 30, 2026
319e389
test(minimax): verify the installed default MCP route
hidb4ai Oct 30, 2026
c88aca0
docs(minimax): publish verified upstream readiness fix
hidb4ai Oct 30, 2026
f7b7e2b
merge: sync master into MiniMax integration
hidb4ai Nov 1, 2026
803d773
fix(minimax): bind effective transport and launcher paths
hidb4ai Nov 1, 2026
5f84a07
merge: resolve desktop qualification conflicts
Lkx-JY Nov 1, 2026
4521248
merge: sync master and preserve desktop qualification
Lkx-JY Nov 2, 2026
e90aaae
fix(minimax): enforce consent and preserve user file ownership
Lkx-JY Nov 2, 2026
be37f1f
merge: sync master and preserve desktop qualification
Lkx-JY Nov 4, 2026
f437395
test(zcode): isolate bounded service-chain acceptance
Lkx-JY Nov 5, 2026
5ebed52
merge: sync master and reconcile native integrations
Lkx-JY Nov 5, 2026
2661179
fix(gateway): add missing lifecycle license header
Lkx-JY Nov 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ jobs:
tests/builtin/runtime/test_external_skills.py
tests/test_cli.py::test_remote_enroll_can_install_automatic_service_in_one_command
tests/test_openclaw_cli.py::test_build_openclaw_plugin_runs_pnpm_install_non_interactively
tests/test_cli_minimax.py
tests/test_opencode_cli.py
tests/test_service.py
tests/test_service_bootstrap.py
Expand Down
31 changes: 29 additions & 2 deletions desktop/VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cargo test --locked --manifest-path desktop/src-tauri/Cargo.toml

## Compatibility scope

[compatibility.json](src-tauri/src/connections/compatibility.json) preserves the recorded Server sources, normalized OpenAPI contract digests and qualification-wheel digests for the historical profiles below. The current contract has source-specific qualifications `sqlite-atomic-dd62723d-v1` and `sqlite-atomic-4ffdf4e9-v1` below. Ordinary builds require explicitly selecting the record whose tested Server source and wheel match the deployment, then checking the connection before business operations become available. The `dd62723d` record covers the migration-framework sources; the `4ffdf4e9` record covers the earlier release-preparation sources. The `sqlite-atomic-98275dbb-v1`, `sqlite-atomic-1da99747-v1`, `sqlite-atomic-8f10c560-v1`, `sqlite-atomic-d9a78567-v1`, `sqlite-atomic-caf2a35a-v1`, `sqlite-atomic-683e2db0-v1` and `sqlite-atomic-cab054db-v1` records qualify their corresponding Server source deployments and do not match this bundled contract. Historical records are disabled in the selector, and saved unavailable selections remain visible until explicitly replaced. CI builds have their own artifact identities and do not change product qualification.
[compatibility.json](src-tauri/src/connections/compatibility.json) preserves the recorded Server sources, normalized OpenAPI contract digests and qualification-wheel digests for the historical profiles below. The current contract has source-specific qualifications `sqlite-atomic-dd62723d-v1` and `sqlite-atomic-4ffdf4e9-v1` below. Ordinary builds require explicitly selecting the record whose tested Server source and wheel match the deployment, then checking the connection before business operations become available. The `dd62723d` record covers the migration-framework sources; the `4ffdf4e9` record covers the earlier release-preparation sources. The `sqlite-atomic-98275dbb-v1`, `sqlite-atomic-1da99747-v1`, `sqlite-atomic-1da99747-linux-v1`, `sqlite-atomic-8f10c560-v1`, `sqlite-atomic-d9a78567-v1`, `sqlite-atomic-caf2a35a-v1`, `sqlite-atomic-683e2db0-v1` and `sqlite-atomic-cab054db-v1` records qualify their corresponding Server source deployments and do not match this bundled contract. Historical records are disabled in the selector, and saved unavailable selections remain visible until explicitly replaced. CI builds have their own artifact identities and do not change product qualification.

The real Server harness covers SQLite with anonymous loopback, static Bearer, HTTPS with explicit CA/base path, and injected-provider/enforced access. It exercises save/search/exact reads, identity changes, binding revocation, ambiguous writes without replay and Scope pagination. Installed UI checks cover repeated launches preserving the existing editor, late committed-save responses preserving a new Scope draft, explicit connection/Scope selection, clipboard copies, connection isolation, draft cancellation, byte limits and independent Server survival after Desktop exit.

Expand Down Expand Up @@ -232,6 +232,34 @@ Repository hooks passed except the existing Windows Python type errors in unchan
see ignored `.artifacts/desktop-shell/current-contract-prek.log`.
仓库全量钩子仍有未修改代码的既存 Windows Python 类型错误,其余钩子通过。

#### Server 1da99747 Linux protocol qualification

`sqlite-atomic-1da99747-linux-v1` records a separate qualification wheel for the same Server
contract as `sqlite-atomic-1da99747-v1`. It identifies Server sources at
`1da997476651c2850ff7141e2b7cd512d0152a90` and normalized OpenAPI digest
`5878999ce9e239d6642e4da858074b281ed465629432c578b3584eec47cbce6c`.
The qualification wheel is `powercontext-1.4.1.dev139+g1da997476-py3-none-any.whl`,
SHA-256 `92c71e27f406df8663b6cac894ecef9fe8aff17454a5a0dda736b09624c305d9`.
All 540 packaged runtime files match the recorded Server commit byte for byte; the OpenAPI
contract, project configuration and lock also match. The sorted runtime source-manifest digest
is `da5b32b18298795299135c585c618d8238683eb596b2121f4904f61da23c3786`
(one `wheel/path sha256` entry per line, with a final newline).

The existing real-Server harness passed against this isolated wheel and SQLite in all four modes:
anonymous loopback, static Bearer, HTTPS with an explicit CA and base path, and an injected
provider with enforced access. The ten recorded operations cover Scope selection and pagination,
Atomic Memory save/search/exact revision reads, identity changes, same-identity revocation,
committed writes with lost responses without replay, and independent Server survival after the
client exits.

Qualification ran on Linux x86_64 with Python 3.12.3 and Rust 1.95.0. The standalone Rust client
compiled the unmodified product connection, transport, credential and error modules, plus
`server_probe.rs`, from Desktop merge commit `5bab8fc3720087e537a1a5cd1da613fd044780b7`.
Every client dependency version and checksum matches the product Cargo lock. The Tauri GUI shell
was excluded. This establishes Server protocol compatibility for the recorded sources and wheel;
it does not qualify Linux Desktop support, native macOS/Windows packaging, credential stores,
or installed UI workflows. Historical records retain their original identities and evidence.

#### Server d9a78567 protocol qualification

The corresponding historical preview contract is qualified by `sqlite-atomic-d9a78567-v1`. The record identifies Server
Expand Down Expand Up @@ -417,7 +445,6 @@ Headless Edge 155.0.4283.62 with synthetic IPC checked all five pages in 24 comb

无头 Edge 155.0.4283.62 使用合成 IPC 检查中英文、三种主题及上述四组 CSS 视口,共 24 种组合,五个页面没有横向溢出。在桌面宽度下,有无观察入口时“设置与诊断”的坐标一致;小窗口中它仍位于主导航下方。400×300 配合设备缩放因子 2 仅检查 800×600 在 200% 下的等效布局,不代表安装版 WebView 缩放。真实 Server、安装包、原生 IME、屏幕阅读器和 macOS 仍需实际验收。


## Shared feedback and global context (#2102)

On 2026-10-22, Windows x64 local checks used Node 24.14.1, pnpm 11.13.1 and Rust 1.95.0. Focused feedback/context tests and all 50 frontend tests passed, together with typecheck, lint (including generated contracts and icons in check mode) and production build. Coverage includes pending/failed/disconnected initialization, local-state recovery without readiness probes, same-name Scope IDs, latest matching connection facts, identity/health/compatibility separation, prerequisite recovery, Scope pagination recovery, failed exact-read retries retaining the original revision, preserved drafts, local diagnostics, keyboard menus and modal focus. Existing save, unknown-write and late-response protections remain covered.
Expand Down
19 changes: 19 additions & 0 deletions desktop/src-tauri/src/connections/compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,25 @@
],
"evidence": "desktop/VALIDATION.md#server-1da99747-protocol-qualification"
},
{
"id": "sqlite-atomic-1da99747-linux-v1",
"serverCommit": "1da997476651c2850ff7141e2b7cd512d0152a90",
"contractSha256": "5878999ce9e239d6642e4da858074b281ed465629432c578b3584eec47cbce6c",
"artifactSha256": "92c71e27f406df8663b6cac894ecef9fe8aff17454a5a0dda736b09624c305d9",
"operations": [
"get_access_principal",
"get_artifact_revision",
"get_capabilities",
"get_default_scope",
"get_liveness",
"get_readiness",
"get_scope",
"list_scopes",
"remember_memory",
"search_memory"
],
"evidence": "desktop/VALIDATION.md#server-1da99747-linux-protocol-qualification"
},
{
"id": "sqlite-atomic-8f10c560-v1",
"serverCommit": "8f10c560776b32b717c3511fad9da349982a5748",
Expand Down
1 change: 1 addition & 0 deletions docs/en/docs/integrations/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ candidate_review permits listing and reading candidates only; it never grants de
| bub | Evaluation harness | Master only | — | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint |
| dify | Framework adapter | Experimental | — | memory_read<br>memory_write<br>source_capture<br>context_injection<br>handoff<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review |
| kimi-code | Agent host | Experimental | minimal, recommended, full | memory_read<br>memory_write<br>source_capture<br>context_injection<br>persistent_scope_binding<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill |
| minimax | Agent host | Experimental | — | acknowledge<br>artifact_publication<br>candidate_review<br>experience_read_or_generate<br>external_skill<br>handoff<br>memory_read<br>memory_write<br>persistent_scope_binding<br>scope_organization<br>skill_read_or_generate<br>source_capture<br>task_outcome<br>work_contract |
1 change: 1 addition & 0 deletions docs/en/docs/integrations/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dsh",
"kimi-code",
"hermes",
"minimax",
"openclaw",
"opencode",
"pi",
Expand Down
79 changes: 79 additions & 0 deletions docs/en/docs/integrations/minimax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
status: community
title: MiniMax Code
description: Install the native MiniMax plugin and distinguish package discovery from Server access.
---

# MiniMax Code

`community` · experimental

PowerContext installs a native MiniMax plugin containing the `powercontext-project-context` Skill and a streamable HTTP MCP connection. MiniMax owns the MCP session. The plugin does not start the Server or automatically capture conversations.

## Prerequisites and versions

Use Python 3.11+, the PowerContext CLI, and a running PowerContext Server. Install the CLI, Server, and plugin from the same repository revision. For a pinned release, use its matching repository tag with `--ref`; the plugin manifest version is independent of the Python package version. Remote refs follow the existing branch/tag convention. To install a specific commit, check it out locally and use `--source`.

Native qualification uses the official npm CLI `@minimax-ai/code@0.6.9` on Linux x86_64 with Node.js 22.23.3. Desktop discovery and other platforms are not qualified by that CLI run. See the [acceptance record](https://github.com/oceanbase/powercontext/blob/master/integrations/minimax/acceptance.md) for the commands and evidence boundary.

## Install and select a target

```bash
powercontext setup minimax

# Repository root or the native plugin directory
powercontext setup minimax --source /path/to/powercontext

# A branch or tag containing the plugin, matched to your Server revision
powercontext setup minimax --source oceanbase/powercontext --ref <matching-tag>

# Explicit MiniMax data root and executable launcher
powercontext setup minimax --source /path/to/powercontext \
--minimax-data-dir "/path/to/MiniMax data" \
--minimax-command /path/to/mcode
```

The destination is `<data root>/plugins/powercontext`, including hidden files, Skill references, icon, and license. `--minimax-data-dir` takes precedence over nonempty `MINIMAX_DATA_DIR`, then `MAVIS_DATA_DIR`, then the saved installation target. Without these choices, the installer asks the selected CLI's `plugin marketplace list --json` for its local directory, including native profile/build selection. If the CLI is missing, the default is `~/.minimax`; a selected `MAVIS_PROFILE` requires an explicit data root in that case. Older or custom builds whose marketplace response cannot be interpreted require `--minimax-data-dir`.

The launcher comes from `--minimax-command`, the saved launcher for the same data root, or `mcode` on PATH. An invalid explicit or saved launcher fails before installation. Launch MiniMax with the selected data directory. Native discovery checks run against a disposable snapshot of that installation, with its local plugin enablement state. Setup saves the target for later `doctor minimax` and `config agent minimax` commands. Environment directory overrides still take precedence over that saved target.

Interactive `powercontext setup` includes MiniMax. Multiple agents share the same setup behavior:

```bash
powercontext setup codex minimax --source /path/to/powercontext --json
powercontext doctor minimax --json
```

## Configure a protected or remote Server

Setup defaults to the local Server or preserves an existing native MCP endpoint. To select a different endpoint:

```bash
powercontext setup minimax --source /path/to/powercontext \
--server-url https://memory.example
```

Supply credentials through `POWERCONTEXT_MINIMAX_AUTHORIZATION`, or the shared `POWERCONTEXT_CLIENT_API_TOKEN`, in the process environment or setup `--env-file`. The installer stores a literal Bearer header in `<data root>/mcp.json` and synchronizes enabled private connection settings into the installed `plugins/powercontext/powercontext.mcp.json`. The source/distributed package and installation record contain no credentials. Enter secrets without exposing them in shell history. On Linux/macOS, setup creates or updates these connection files with owner-only permissions; an unchanged disabled private configuration retains its existing permissions. Protect both installed connection files with appropriate ACLs on Windows.

Setup merges only the PowerContext server entry, preserving other MCP servers, unknown fields, headers, and an existing disabled preference. Existing credentials are retained. Upgrades also retain the installed plugin connection when the private entry is absent or disabled. A disabled private entry keeps its URL unless an endpoint is explicitly supplied through `--server-url` or the supported setup URL environment/file settings. With no entry changes, its entire private configuration file is left byte-for-byte unchanged. Supplying only a new credential rotates that entry’s credential at its existing URL without enabling it. The setup/config result reports `private_mcp_state`; a disabled entry remains inactive until the user enables it, and doctor continues to probe the effective bundled connection. Moving an authenticated entry to another endpoint requires an explicit replacement credential; setup will not silently forward the old credential. Malformed private configuration fails before package installation.

MiniMax exposes private and plugin MCP connections independently, potentially with names such as `powercontext` and `powercontext_2`. Setup/config synchronize their URLs and headers when the private entry is enabled, so both tool sets reach the selected Server. With a disabled private entry and no explicit endpoint, the plugin connection is preserved, and rotating a dormant private credential does not copy it into the active plugin connection. An explicit endpoint also configures the active plugin connection. Doctor reports mismatched enabled connections as a failure; rerun setup or `config agent minimax` to reconcile them. Configure literal URLs and headers; the supported private configuration does not expand `${TOKEN}` placeholders. Setup's remote HTTP consent governs PowerContext's own configuration and diagnostic requests; it does not bypass MiniMax's native HTTP/TLS restrictions. Prefer HTTPS. Doctor reads the native endpoint and headers, rather than treating a global PowerContext token as the host's credentials.

## Reinstall, upgrade, and recover

Repeat the setup command with the desired source/ref. The installer records its managed file hashes under the PowerContext data root, keyed by MiniMax data directory. It updates those files, removes unchanged obsolete managed files, and preserves user-created files and unrelated plugins. A modified managed file or a new package path colliding with user content, a directory, or a file used as its parent causes a conflict before replacement. The staged package is checked before publication; user-created files are not added to the managed inventory.

An identical manually copied package can be adopted while keeping extra user files. A different unmanaged package is rejected. Back it up outside the MiniMax `plugins` directory, preserve its private connection settings, and reconcile custom changes before retrying. Do not leave a second PowerContext package under another immediate plugin directory.

Package publication restores the prior package and ownership record on failure. Connection publication restores the prior private/shared configuration on failure. Setup reports a completed package installation separately if subsequent connection configuration fails. If interrupted publication leaves a recovery backup, restore the indicated backup before retrying.

## Understand verification results

- `package`: the native manifest and referenced local resources are present.
- `native`: MiniMax loads a disposable snapshot of the local `powercontext` plugin and its enablement state, checking the expected version and at least the required Skill/MCP counts. Counts do not establish resource names or an active MCP session. A successful command that omits the plugin fails this check.
- `server_liveness` / `server_readiness`: the selected Server responds and reports its readiness.
- `server_access`: the CLI accesses Server info with the effective native headers. It does not prove that MiniMax established a connection or invoked a tool.

Files copied with no CLI are reported as installed with degraded native verification and a nonzero overall exit. For a desktop installation, install the supported CLI or pass an existing executable launcher with `--minimax-command`; package copying alone is not desktop qualification. Doctor does not install, rewrite configuration, enable plugins, or initialize the real data directory. The CLI writes runtime records only inside a private temporary snapshot, which is removed afterward. Verification needs temporary space for the plugin and a copy of the native state database/WAL used to read enablement; unrelated sessions and provider state are not imported into the diagnostic runtime. Unsupported native state formats fail explicitly. Before the first setup, supply `--minimax-data-dir` or a directory environment override when using a native launcher; doctor does not start that launcher against the real home directory to discover a target.

Refresh the Local catalog with `Ctrl+R` in `/plugins`, or restart MiniMax, using the same data directory. Preserve user disablement during upgrades. To enable it deliberately, run the selected launcher's `plugin enable powercontext@local --json`, with the target data directory in `MINIMAX_DATA_DIR`, then rerun doctor. Restart after changing a connection that has already been used. Verify a real MCP tool result in MiniMax separately from the CLI checks.
2 changes: 1 addition & 1 deletion docs/en/docs/operate/connect-remote-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The CLI observes the selected configuration files and its own environment, not a
`--patch` arguments or environment; use `/pc doctor` inside that session. Doctor reports unsupported native
composition (including unsupported JSON5/includes in other hosts) as unknown/failed rather than claiming safety.

MiniMax and the generic Agent Plugin delegate MCP transport to the host and have no PowerContext setup subcommand
MiniMax and the generic Agent Plugin delegate MCP transport to the host. MiniMax supports `powercontext setup minimax` and `doctor minimax`; setup merges its private MCP configuration. The generic Agent Plugin has no PowerContext setup subcommand
or independent HTTP client. Their host may have its own restrictions; this flag cannot override host policy.
LangChain, LangGraph, Pydantic AI, and the Bub evaluation adapter expose client consent without adding a host installer.

Expand Down
Loading
Loading