Skip to content

feat(engines): discover installed engines and managed install (lifecycle P0+P1) - #604

Merged
gansx merged 5 commits into
mainfrom
gansx/engine-managed-lifecycle-p0-p1
Oct 27, 2026
Merged

gansx merged 5 commits into
mainfrom
gansx/engine-managed-lifecycle-p0-p1

Conversation

@gansx

@gansx gansx commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Implements P0+P1 of docs/design/execution-engine-managed-lifecycle.md: auto-discovery of existing engines and one-click managed installs.

Discovery (P0): opening engine settings runs a read-only scan (PATH + well-known locations + command names), probes what it finds through the existing fail-closed installation probe, and each engine card offers "使用检测到的 " to adopt the detected path into the profile draft. Nothing is written to the user's global environment.

Managed install (P1): for Codex and Claude Code, an Install button downloads the pinned platform package from npm, verifies the registry sha512 integrity, extracts atomically under ~/.ling-stack/engines/<engine>/<version>/ with a marker receipt, probes the binary, and opens the prefilled profile draft for confirmation. Kimi/OpenClaw keep manual guidance (their distribution channels are not npm-verified yet).

Surface: new daemon routes GET /execution-engines/discovery and POST|GET /execution-engines/<id>/install behind the existing management authority; shared through api-client and the desktop IPC bridge; 55 locales translated.

Evidence: 8 daemon unit/route tests; real-daemon Playwright spec with screenshot at docs/design/ui2.0升级/evidence/settings/execution-engines/1440x960-engine-discovery-en-US.png (all four engines detected on a machine that has them installed).

P2 (authorized in-place takeover) and P3 (update detection prompts) follow in later PRs per the plan.

…cle P0+P1)

Scan PATH and well-known locations for existing Codex/Claude/Kimi/OpenClaw
installations and surface them in engine settings with a one-click adopt
action. Add managed installs for Codex and Claude Code: download the pinned
platform package from npm, verify the registry integrity digest, extract
atomically under ~/.ling-stack/engines/<engine>/<version>/, and probe the
installed binary before offering it as a profile. Kimi and OpenClaw keep
manual guidance until their distribution channels are verified.

Web and desktop share the new /execution-engines/discovery and
/execution-engines/<id>/install routes through the api-client and the
desktop IPC bridge. Evidence: real-daemon e2e with screenshot.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T15:31:35.324474Z 8c9d8dc New commits
🔒 Security Review ✅ Completed 2026-10-27T15:38:07.942805Z 8c9d8dc New commits

Security findings

Advisory findings (1)

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a94f498123

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b43b37f83c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛡️ Codex Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 927a4dea7e

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@gansx
gansx merged commit 37413fe into main Oct 27, 2026
15 checks passed
@gansx
gansx deleted the gansx/engine-managed-lifecycle-p0-p1 branch October 27, 2026 16:20
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.

2 participants