Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bun run test # bun test

These hold for every change. A change that breaks one needs an explicit discussion first.

- The agent never opens an inbound port. It only makes outbound connections.
- The agent never opens an inbound port, with one exception: the sleep listener (`src/sleep/listener.ts`). It listens only on the port and address of one of the agent's own servers, only while that server is stopped and the owner turned on "wake on join" with a signed command, and it speaks only the start of the Minecraft protocol (handshake, status, ping, login start). The only action it can cause is starting that server. Every other connection the agent makes is outbound.
- There is no remote shell and no arbitrary command execution. The agent exposes Minecraft operations only. Console input goes to the server process stdin; file operations are confined to the servers directory (resolve and check every path, including symlinks).
- The control server is never trusted to authorize actions. Every command that changes state must carry a signature that is verified against keys the agent already trusts.
- The agent runs without root. Servers run as a separate unprivileged user from the agent and cannot read the agent's keys.
Expand Down
39 changes: 34 additions & 5 deletions lib/chunks/index-b83z6s0k.js → lib/chunks/index-wprb9ke3.js

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion lib/protocol/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions lib/types/protocol/commands/agent.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/types/protocol/commands/host.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions lib/types/protocol/commands/server.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading