Skip to content

Conversation

@patelspratik
Copy link
Contributor

No description provided.

return &Client{}
}

baseURL := config.GlobalConfig.GetDevplaneAPIURL()

Choose a reason for hiding this comment

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

pass this in as an arg instead of having a dep on the global config?

Labels map[string]string
}

func (c *Client) ListCloudCredID(ctx context.Context, orgID string) (string, error) {

Choose a reason for hiding this comment

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

this signature is fine for now, but the longer term access model includes user private, cloud private, etc.

}

func (c *Client) ListCloudCredID(ctx context.Context, orgID string) (string, error) {
resp, err := c.cloudCreds.ListCloudCred(ctx, connect.NewRequest(&devplaneapiv1.ListCloudCredRequest{

Choose a reason for hiding this comment

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

instead of exposing the inner label structure, should we add a operator API that returns the relevant CloudCreds for brevcloud?

Choose a reason for hiding this comment

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

since agent has been coopted by agentic AI we should use daemon or some other term that is not overloaded


code, runErr := run(ctx)
if runErr != nil {
zap.L().Error("brev-agent exited with error", zap.Error(runErr))

Choose a reason for hiding this comment

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

s/brev\-agent/brevd/

RegistrationToken: msg.GetRegistrationToken(),
}
if ts := msg.GetExpiresAt(); ts != nil {
out.ExpiresAt = ts.AsTime().UTC().Format(time.RFC3339)

Choose a reason for hiding this comment

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

because the time format conversion is used across many places, let's normalize it into a helper so that it does not drift

@patelspratik patelspratik changed the title Byon add in brevd logic Jan 9, 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.

4 participants