Skip to content

Add people and local server commands to the CLI - #256

Closed
JustKira wants to merge 10 commits into
feat/tkm-169-plugin-logfrom
feat/tkm-171-people-server-commands
Closed

JustKira wants to merge 10 commits into
feat/tkm-169-plugin-logfrom
feat/tkm-171-people-server-commands

Conversation

@JustKira

@JustKira JustKira commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #259.

Summary

Linear: TKM-171

invite / members / revoke -> owner-only HTTP routes on local and shared servers
server start / stop -> desktop lifecycle lock -> authenticated local discovery and shutdown
server status -> authenticated discovery, with a distinct result for an unresponsive process

Shared server invites keep the join link format; local invites return a member token. The JSON invite stays on stdout. Local server children never inherit shared server credentials. The server executable no longer dispatches people commands, so owners use the CLI. The root server scripts use the same launcher.

Evidence

  • Before: Review reproduced invites on stderr, stop returning offline during startup, and an unbuilt plugin producing a stop suggestion.
  • After: Tests check both output modes, inspect the probe and detached process environments with planted values, overlap two starts and a start with a stop, and verify the exact recovery hint for an unbuilt plugin. The people test holds an open WebSocket through revocation and checks that a fresh authenticated request gets 401.
Local command Result
proto run bun -- test packages/cli/tests 24 passed on the pushed commit.
cargo test -p server --no-fail-fast -- --test-threads=2 166 passed; 2 real-adapter tests ignored.
cargo test -p tokamak-app 5 passed, including discovery and reuse.
bash .ci/check.sh lint Passed.
bash .ci/check.sh ts Passed.
bash .ci/check.sh rust 15 passed.
proto run bun -- e2e/run.ts Passed.
cargo build --locked -p server --bin tokamak-server Passed.

Merge Danger

Door: Two-way. The CLI and desktop continue to share the existing discovery files and lock. Local member records are separate from shared server membership.

Blast Radius: CLI, local server lifecycle, and member management. Automation using the removed server subcommands needs to call the CLI.

@JustKira
JustKira marked this pull request as draft November 20, 2026 14:08
@JustKira
JustKira changed the base branch from feat/tkm-167-cli to feat/tkm-169-plugin-log November 20, 2026 15:20
@JustKira

Copy link
Copy Markdown
Contributor Author

Closing without merging. The plugin shape, the server engine and sign-in are being decided again (Linear TKM-194 and TKM-195), and this work sits on top of them. Nothing is lost: the head commit is 2f2fdc1, and git fetch origin pull/256/head brings it back.

@JustKira JustKira closed this Nov 21, 2026
@JustKira
JustKira deleted the feat/tkm-171-people-server-commands branch November 21, 2026 18:09
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