[taskboard] add direct host dispatch targets
This commit is contained in:
39
lib/types.ts
39
lib/types.ts
@@ -1,8 +1,8 @@
|
||||
export type TaskStatus = "Backlog" | "Todo" | "In Progress" | "Review" | "Done";
|
||||
export type TaskPriority = "Low" | "Medium" | "High" | "Critical";
|
||||
export type AgentFamily = "openclaw" | "zeroclaw";
|
||||
export type AgentFamily = "openclaw" | "zeroclaw" | "direct";
|
||||
export type AgentStatus = "active" | "busy" | "idle";
|
||||
export type DispatchMethod = "openclaw-swarm" | "zeroclaw-webhook" | "manual";
|
||||
export type DispatchMethod = "openclaw-swarm" | "zeroclaw-webhook" | "direct-ssh" | "manual";
|
||||
export type DispatchState =
|
||||
| "planned"
|
||||
| "assigned"
|
||||
@@ -88,6 +88,7 @@ export type TaskCallbackPayload = {
|
||||
detail?: string | null;
|
||||
completed_by?: string | null;
|
||||
last_error?: string | null;
|
||||
last_dispatch_at?: string | null;
|
||||
};
|
||||
|
||||
export type WikiPageSummary = {
|
||||
@@ -184,10 +185,44 @@ export type ZeroClawAgentDefinition = {
|
||||
};
|
||||
};
|
||||
|
||||
export type DirectAgentActionDefinition = {
|
||||
key: string;
|
||||
title: string;
|
||||
description: string;
|
||||
command: string;
|
||||
successSummary: string;
|
||||
};
|
||||
|
||||
export type DirectAgentDefinition = {
|
||||
slug: string;
|
||||
assignmentKey: string;
|
||||
aliases: string[];
|
||||
name: string;
|
||||
host: string;
|
||||
role: string;
|
||||
runtimePath: string;
|
||||
configPath: string | null;
|
||||
emoji: string;
|
||||
channels: AgentRouteSummary[];
|
||||
tools: string[];
|
||||
capabilities: string[];
|
||||
files: string[];
|
||||
notes: string[];
|
||||
dispatch: {
|
||||
method: "direct-ssh";
|
||||
hostname: string;
|
||||
user: string;
|
||||
port: number;
|
||||
defaultAction: string;
|
||||
actions: DirectAgentActionDefinition[];
|
||||
};
|
||||
};
|
||||
|
||||
export type FleetConfig = {
|
||||
title: string;
|
||||
overview: string[];
|
||||
topologyDiagram: string;
|
||||
sections: FleetSection[];
|
||||
zeroclawAgents: ZeroClawAgentDefinition[];
|
||||
directAgents: DirectAgentDefinition[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user