chore: switch mergemaster to opus and add cargo fmt guidance
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,18 @@ export interface JoinedAgent {
|
||||
label: string;
|
||||
address: string;
|
||||
registered_at: number;
|
||||
/// Project this agent is assigned to, if any.
|
||||
assigned_project?: string;
|
||||
}
|
||||
|
||||
export interface GatewayProject {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface GatewayInfo {
|
||||
active: string;
|
||||
projects: GatewayProject[];
|
||||
}
|
||||
|
||||
export interface GenerateTokenResponse {
|
||||
@@ -61,4 +73,17 @@ export const gatewayApi = {
|
||||
method: "DELETE",
|
||||
});
|
||||
},
|
||||
|
||||
/// Assign an agent to a project, or unassign it by passing null.
|
||||
assignAgent(id: string, project: string | null): Promise<JoinedAgent> {
|
||||
return gatewayRequest<JoinedAgent>(`/gateway/agents/${id}/assign`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ project }),
|
||||
});
|
||||
},
|
||||
|
||||
/// Get the list of registered projects from the gateway.
|
||||
getGatewayInfo(): Promise<GatewayInfo> {
|
||||
return gatewayRequest<GatewayInfo>("/api/gateway");
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user