Skip to content

[Draft] feat(package): add standalone local server package for DeepCode runtime#195

Open
Ri0n72Y wants to merge 15 commits into
lessweb:mainfrom
Ri0n72Y:server-package
Open

[Draft] feat(package): add standalone local server package for DeepCode runtime#195
Ri0n72Y wants to merge 15 commits into
lessweb:mainfrom
Ri0n72Y:server-package

Conversation

@Ri0n72Y

@Ri0n72Y Ri0n72Y commented Jun 24, 2026

Copy link
Copy Markdown

Summary

This is a draft PR for early architecture feedback.

It adds a standalone local HTTP/SSE server package for the existing DeepCode runtime:

  • New package: @vegamo/deepcode-server
  • New binary: deepcode-server
  • Compatibility alias: deepcode-server
  • Runtime dependency: @vegamo/deepcode-core

The goal is to make DeepCode usable by non-terminal clients, such as a local desktop client, without coupling those clients to the interactive CLI/TUI package.

Motivation

DeepCode already has a reusable runtime layer in @vegamo/deepcode-core, and both the CLI and VSCode companion build UI-specific entrypoints on top of it.

This PR adds a third entrypoint at the same level:

  • deepcode-server: local HTTP/SSE runtime host

The server is intended for local clients that need a stable process boundary and a simple frontend contract.

What changed

  • Added packages/server

  • Added deepcode-server binary entrypoint

  • Added local token authentication by default

  • Added local-only binding by default, with explicit --unsafe-bind required for non-local binds

  • Added HTTP/SSE server services for current exist cli commands

  • Added concise Chinese and English server API docs:

    • docs/server-api.md
    • docs/server-api_en.md

Scope

This server exposes existing DeepCode runtime / CLI-TUI capabilities as local HTTP APIs.

It intentionally does not add new product features beyond the current runtime surface.

Validation

Local validation has passed:

  • typecheck
  • tests
  • build

Current status

This PR is intentionally kept as a draft for now.

I am using it to validate the server package with a local deepcode-desktop MVP before marking it ready for final review.

Feedback on the package boundary, entrypoint naming, and server scope would be useful before I mark this PR ready.

@Ri0n72Y Ri0n72Y changed the title [Draft] add standalone local server package for DeepCode runtime [Draft] feat(package): add standalone local server package for DeepCode runtime Jun 24, 2026
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.

1 participant