Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2840fdc

Browse files
authored
feat(agent): add agent socket API (#20717)
relates to:coder/internal#1094This is number 2 of 5 pull requests in an effort to add agent scriptordering. It adds a drpc API that is exposed via a local socket. ThisAPI serves access to a lightweight DAG based dependency manager that wasinspired by systemd.In follow-up PRs:* This unit manager will be plumbed into the workspace agent struct.* CLI commands will use this agentsocket api to express dependenciesbetween coder scriptsI used an LLM to produce some of these changes, but I have conductedthorough self review and consider this contribution to be ready for anexternal reviewer.
1 parent5a7d4f6 commit2840fdc

File tree

13 files changed

+2568
-60
lines changed

13 files changed

+2568
-60
lines changed

‎Makefile‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ AIBRIDGED_MOCKS := \
642642
GEN_FILES :=\
643643
tailnet/proto/tailnet.pb.go\
644644
agent/proto/agent.pb.go\
645+
agent/agentsocket/proto/agentsocket.pb.go\
645646
provisionersdk/proto/provisioner.pb.go\
646647
provisionerd/proto/provisionerd.pb.go\
647648
vpn/vpn.pb.go\
@@ -696,6 +697,7 @@ gen/mark-fresh:
696697
agent/proto/agent.pb.go\
697698
provisionersdk/proto/provisioner.pb.go\
698699
provisionerd/proto/provisionerd.pb.go\
700+
agent/agentsocket/proto/agentsocket.pb.go\
699701
vpn/vpn.pb.go\
700702
enterprise/aibridged/proto/aibridged.pb.go\
701703
coderd/database/dump.sql\
@@ -800,6 +802,14 @@ agent/proto/agent.pb.go: agent/proto/agent.proto
800802
--go-drpc_opt=paths=source_relative\
801803
./agent/proto/agent.proto
802804

805+
agent/agentsocket/proto/agentsocket.pb.go: agent/agentsocket/proto/agentsocket.proto
806+
protoc\
807+
--go_out=.\
808+
--go_opt=paths=source_relative\
809+
--go-drpc_out=.\
810+
--go-drpc_opt=paths=source_relative\
811+
./agent/agentsocket/proto/agentsocket.proto
812+
803813
provisionersdk/proto/provisioner.pb.go: provisionersdk/proto/provisioner.proto
804814
protoc\
805815
--go_out=.\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp