Documentation
¶
Index ¶
- Constants
- func ScanSSELines(r io.Reader, onData func([]byte) error) error
- type APIError
- type AgentDescriptor
- type AgentRun
- type Approval
- type BrowserCheckResult
- type BrowserLoginResult
- type BrowserProfile
- type BrowserRunResult
- type BrowserState
- type ChannelReportMessage
- type ChatEvent
- type ChatRequest
- type ChatResult
- type CleanupApplyResult
- type CleanupCandidate
- type CleanupPlan
- type Client
- func (c *Client) ActivateProject(ctx context.Context, projectID string, sessionID string) error
- func (c *Client) AdvanceProjectAutopilot(ctx context.Context, projectID string) (ProjectPhaseSnapshot, error)
- func (c *Client) ApplyCleanup(ctx context.Context, approvalID string) (CleanupApplyResult, error)
- func (c *Client) ApproveCleanup(ctx context.Context, approvalID string) error
- func (c *Client) ApproveTelegramPairing(ctx context.Context, code string) (TelegramPairingAllowed, error)
- func (c *Client) BrowserCheck(ctx context.Context, siteID string, profile string) (BrowserCheckResult, error)
- func (c *Client) BrowserLogin(ctx context.Context, siteID string, profile string) (BrowserLoginResult, error)
- func (c *Client) BrowserProfiles(ctx context.Context) ([]BrowserProfile, error)
- func (c *Client) BrowserRun(ctx context.Context, siteID string, flowAction string, profile string) (BrowserRunResult, error)
- func (c *Client) BrowserStatus(ctx context.Context) (BrowserState, error)
- func (c *Client) CancelRun(ctx context.Context, runID string) (AgentRun, error)
- func (c *Client) Compact(ctx context.Context, sessionID string) (CompactInfo, error)
- func (c *Client) CompactWithOptions(ctx context.Context, req CompactRequest) (CompactInfo, error)
- func (c *Client) CreateCleanupPlan(ctx context.Context) (CleanupPlan, error)
- func (c *Client) CreateCronJob(ctx context.Context, schedule, prompt string) (CronJob, error)
- func (c *Client) CreateProject(ctx context.Context, req ProjectCreateRequest) (Project, error)
- func (c *Client) CreateSchedule(ctx context.Context, req ScheduleCreateRequest) (ScheduleItem, error)
- func (c *Client) CreateSession(ctx context.Context, title string) (SessionSummary, error)
- func (c *Client) DeleteCronJob(ctx context.Context, jobID string) error
- func (c *Client) DeleteProject(ctx context.Context, projectID string) error
- func (c *Client) DeleteSchedule(ctx context.Context, id string) error
- func (c *Client) DispatchProject(ctx context.Context, projectID string, stage string) (ProjectDispatchReport, error)
- func (c *Client) Do(ctx context.Context, method, path string, body any, out any) error
- func (c *Client) ExportSession(ctx context.Context, sessionID string) (string, error)
- func (c *Client) GatewayReload(ctx context.Context) (GatewayStatus, error)
- func (c *Client) GatewayReportChannels(ctx context.Context, limit int) (GatewayReportChannels, error)
- func (c *Client) GatewayReportRuns(ctx context.Context, limit int) (GatewayReportRuns, error)
- func (c *Client) GatewayReportSummary(ctx context.Context) (GatewayReportSummary, error)
- func (c *Client) GatewayRestart(ctx context.Context) (GatewayStatus, error)
- func (c *Client) GatewayStatus(ctx context.Context) (GatewayStatus, error)
- func (c *Client) GetCronJob(ctx context.Context, jobID string) (CronJob, error)
- func (c *Client) GetEventHistory(ctx context.Context, limit int) (EventsHistoryInfo, error)
- func (c *Client) GetHistory(ctx context.Context, sessionID string) ([]SessionMessage, error)
- func (c *Client) GetProject(ctx context.Context, projectID string) (Project, error)
- func (c *Client) GetProjectAutopilot(ctx context.Context, projectID string) (ProjectAutopilotRun, error)
- func (c *Client) GetProjectBoard(ctx context.Context, projectID string) (ProjectBoard, error)
- func (c *Client) GetRun(ctx context.Context, runID string) (AgentRun, error)
- func (c *Client) GetUsageLimits(ctx context.Context) (UsageLimits, error)
- func (c *Client) GetUsageSummary(ctx context.Context, period string, groupBy string) (UsageSummary, UsageLimits, UsageLimitStatus, error)
- func (c *Client) Healthz(ctx context.Context) (HealthInfo, error)
- func (c *Client) HeartbeatRunOnce(ctx context.Context) (HeartbeatInfo, error)
- func (c *Client) ListAgents(ctx context.Context) ([]AgentDescriptor, error)
- func (c *Client) ListApprovals(ctx context.Context) ([]Approval, error)
- func (c *Client) ListCronJobs(ctx context.Context) ([]CronJob, error)
- func (c *Client) ListCronRuns(ctx context.Context, jobID string, limit int) ([]CronRunRecord, error)
- func (c *Client) ListMCPServers(ctx context.Context) ([]MCPServerInfo, error)
- func (c *Client) ListMCPTools(ctx context.Context) ([]MCPToolInfo, error)
- func (c *Client) ListPlugins(ctx context.Context) ([]PluginDef, error)
- func (c *Client) ListProjectActivity(ctx context.Context, projectID string, limit int) ([]ProjectActivity, error)
- func (c *Client) ListProjects(ctx context.Context) ([]Project, error)
- func (c *Client) ListRuns(ctx context.Context, limit int) ([]AgentRun, error)
- func (c *Client) ListSchedules(ctx context.Context) ([]ScheduleItem, error)
- func (c *Client) ListSessions(ctx context.Context) ([]SessionSummary, error)
- func (c *Client) ListSkills(ctx context.Context) ([]SkillDef, error)
- func (c *Client) MarkEventsRead(ctx context.Context, lastID int64) (EventsReadInfo, error)
- func (c *Client) Models(ctx context.Context) (ModelsInfo, error)
- func (c *Client) OpsStatus(ctx context.Context) (OpsStatus, error)
- func (c *Client) Providers(ctx context.Context) (ProvidersInfo, error)
- func (c *Client) RejectCleanup(ctx context.Context, approvalID string) error
- func (c *Client) ReloadExtensions(ctx context.Context) (ExtensionsReloadInfo, error)
- func (c *Client) RunCronJob(ctx context.Context, jobID string) (string, error)
- func (c *Client) SearchSessions(ctx context.Context, keyword string) ([]SessionSummary, error)
- func (c *Client) SpawnRun(ctx context.Context, req SpawnRequest) (AgentRun, error)
- func (c *Client) StartProjectAutopilot(ctx context.Context, projectID string) (ProjectAutopilotRun, error)
- func (c *Client) Status(ctx context.Context) (StatusInfo, error)
- func (c *Client) StreamChat(ctx context.Context, req ChatRequest, onStatus func(ChatEvent), ...) (ChatResult, error)
- func (c *Client) StreamEvents(ctx context.Context, onEvent func(NotificationMessage), onError func(error))
- func (c *Client) StreamSSE(ctx context.Context, method, path string, body any, onData func([]byte) error) error
- func (c *Client) TelegramPairings(ctx context.Context) (TelegramPairingsInfo, error)
- func (c *Client) UpdateCronJobEnabled(ctx context.Context, jobID string, enabled bool) (CronJob, error)
- func (c *Client) UpdateProject(ctx context.Context, projectID string, req ProjectUpdateRequest) (Project, error)
- func (c *Client) UpdateSchedule(ctx context.Context, id string, req ScheduleUpdateRequest) (ScheduleItem, error)
- func (c *Client) UpdateUsageLimits(ctx context.Context, req UsageLimits) (UsageLimits, error)
- func (c *Client) VaultStatus(ctx context.Context) (VaultStatusInfo, error)
- func (c *Client) Whoami(ctx context.Context) (WhoamiInfo, error)
- type CompactInfo
- type CompactRequest
- type Config
- type CronJob
- type CronRunRecord
- type EventsHistoryInfo
- type EventsReadInfo
- type ExtensionsReloadInfo
- type GatewayReportChannels
- type GatewayReportRuns
- type GatewayReportSummary
- type GatewayStatus
- type HealthInfo
- type HeartbeatInfo
- type MCPServerInfo
- type MCPToolInfo
- type ModelsInfo
- type NotificationMessage
- type OpsStatus
- type PluginDef
- type PluginPolicies
- type PluginRequires
- type Project
- type ProjectActivity
- type ProjectActivityList
- type ProjectAutopilotRun
- type ProjectBoard
- type ProjectBoardTask
- type ProjectCreateRequest
- type ProjectDispatchReport
- type ProjectPhaseSnapshot
- type ProjectTaskRun
- type ProjectUpdateRequest
- type ProviderInfo
- type ProvidersInfo
- type ScheduleCreateRequest
- type ScheduleItem
- type ScheduleUpdateRequest
- type SessionMessage
- type SessionSummary
- type SkillDef
- type SpawnRequest
- type StatusInfo
- type TelegramPairingAllowed
- type TelegramPairingPending
- type TelegramPairingsInfo
- type UsageLimitStatus
- type UsageLimits
- type UsageSummary
- type UsageSummaryRow
- type VaultStatusInfo
- type WhoamiInfo
Constants ¶
View Source
const DefaultServerURL = "http://127.0.0.1:43180"
DefaultServerURL is the fallback API base URL when Config.ServerURL is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type AgentDescriptor ¶
type AgentDescriptor struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Enabled bool `json:"enabled,omitempty"`
Kind string `json:"kind,omitempty"`
Source string `json:"source,omitempty"`
Entry string `json:"entry,omitempty"`
Default bool `json:"default,omitempty"`
PolicyMode string `json:"policy_mode,omitempty"`
ToolsAllow []string `json:"tools_allow,omitempty"`
ToolsAllowCount int `json:"tools_allow_count,omitempty"`
ToolsDeny []string `json:"tools_deny,omitempty"`
ToolsDenyCount int `json:"tools_deny_count,omitempty"`
ToolsRiskMax string `json:"tools_risk_max,omitempty"`
ToolsAllowGroups []string `json:"tools_allow_groups,omitempty"`
ToolsAllowPatterns []string `json:"tools_allow_patterns,omitempty"`
SessionRoutingMode string `json:"session_routing_mode,omitempty"`
SessionFixedID string `json:"session_fixed_id,omitempty"`
}
type AgentRun ¶
type AgentRun struct {
RunID string `json:"run_id"`
SessionID string `json:"session_id,omitempty"`
ProjectID string `json:"project_id,omitempty"`
Agent string `json:"agent,omitempty"`
Status string `json:"status"`
Accepted bool `json:"accepted"`
Response string `json:"response,omitempty"`
Error string `json:"error,omitempty"`
DiagnosticCode string `json:"diagnostic_code,omitempty"`
DiagnosticReason string `json:"diagnostic_reason,omitempty"`
PolicyBlockedTool string `json:"policy_blocked_tool,omitempty"`
PolicyAllowedTools []string `json:"policy_allowed_tools,omitempty"`
PolicyDeniedTools []string `json:"policy_denied_tools,omitempty"`
PolicyRiskMax string `json:"policy_risk_max,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
StartedAt string `json:"started_at,omitempty"`
CompletedAt string `json:"completed_at,omitempty"`
}
type Approval ¶
type Approval struct {
ID string `json:"id"`
Type string `json:"type"`
Status string `json:"status"`
RequestedAt string `json:"requested_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
ReviewedAt string `json:"reviewed_at,omitempty"`
Plan CleanupPlan `json:"plan"`
Note string `json:"note,omitempty"`
}
type BrowserCheckResult ¶
type BrowserLoginResult ¶
type BrowserProfile ¶
type BrowserRunResult ¶
type BrowserState ¶
type BrowserState struct {
Running bool `json:"running"`
Profile string `json:"profile,omitempty"`
Driver string `json:"driver,omitempty"`
CurrentURL string `json:"current_url,omitempty"`
LastSnapshot string `json:"last_snapshot,omitempty"`
LastAction string `json:"last_action,omitempty"`
LastScreenshot string `json:"last_screenshot,omitempty"`
ExtensionConnected bool `json:"extension_connected,omitempty"`
AttachedTabs int `json:"attached_tabs,omitempty"`
LastError string `json:"last_error,omitempty"`
}
type ChannelReportMessage ¶
type ChatEvent ¶
type ChatEvent struct {
Type string `json:"type"`
Text string `json:"text"`
Error string `json:"error"`
SessionID string `json:"session_id"`
Message string `json:"message"`
Phase string `json:"phase"`
ToolName string `json:"tool_name"`
ToolCallID string `json:"tool_call_id"`
ToolArgsPreview string `json:"tool_args_preview"`
ToolResultPreview string `json:"tool_result_preview"`
SkillName string `json:"skill_name"`
SkillReason string `json:"skill_reason"`
}
type ChatRequest ¶
type ChatResult ¶
type CleanupApplyResult ¶
type CleanupCandidate ¶
type CleanupPlan ¶
type CleanupPlan struct {
ApprovalID string `json:"approval_id"`
CreatedAt string `json:"created_at,omitempty"`
TotalBytes int64 `json:"total_bytes"`
Candidates []CleanupCandidate `json:"candidates"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ActivateProject ¶
func (*Client) AdvanceProjectAutopilot ¶ added in v0.12.0
func (*Client) ApplyCleanup ¶
func (*Client) ApproveCleanup ¶
func (*Client) ApproveTelegramPairing ¶
func (*Client) BrowserCheck ¶
func (*Client) BrowserLogin ¶
func (*Client) BrowserProfiles ¶
func (c *Client) BrowserProfiles(ctx context.Context) ([]BrowserProfile, error)
func (*Client) BrowserRun ¶
func (*Client) BrowserStatus ¶
func (c *Client) BrowserStatus(ctx context.Context) (BrowserState, error)
func (*Client) CompactWithOptions ¶ added in v0.10.2
func (c *Client) CompactWithOptions(ctx context.Context, req CompactRequest) (CompactInfo, error)
func (*Client) CreateCleanupPlan ¶
func (c *Client) CreateCleanupPlan(ctx context.Context) (CleanupPlan, error)
func (*Client) CreateCronJob ¶
func (*Client) CreateProject ¶
func (*Client) CreateSchedule ¶
func (c *Client) CreateSchedule(ctx context.Context, req ScheduleCreateRequest) (ScheduleItem, error)
func (*Client) CreateSession ¶
func (*Client) DeleteCronJob ¶
func (*Client) DeleteProject ¶
func (*Client) DeleteSchedule ¶
func (*Client) DispatchProject ¶ added in v0.5.1
func (*Client) ExportSession ¶
func (*Client) GatewayReload ¶
func (c *Client) GatewayReload(ctx context.Context) (GatewayStatus, error)
func (*Client) GatewayReportChannels ¶
func (*Client) GatewayReportRuns ¶
func (*Client) GatewayReportSummary ¶
func (c *Client) GatewayReportSummary(ctx context.Context) (GatewayReportSummary, error)
func (*Client) GatewayRestart ¶
func (c *Client) GatewayRestart(ctx context.Context) (GatewayStatus, error)
func (*Client) GatewayStatus ¶
func (c *Client) GatewayStatus(ctx context.Context) (GatewayStatus, error)
func (*Client) GetCronJob ¶
func (*Client) GetEventHistory ¶
func (*Client) GetHistory ¶
func (*Client) GetProject ¶
func (*Client) GetProjectAutopilot ¶ added in v0.5.1
func (*Client) GetProjectBoard ¶ added in v0.5.1
func (*Client) GetUsageLimits ¶
func (c *Client) GetUsageLimits(ctx context.Context) (UsageLimits, error)
func (*Client) GetUsageSummary ¶
func (c *Client) GetUsageSummary(ctx context.Context, period string, groupBy string) (UsageSummary, UsageLimits, UsageLimitStatus, error)
func (*Client) HeartbeatRunOnce ¶
func (c *Client) HeartbeatRunOnce(ctx context.Context) (HeartbeatInfo, error)
func (*Client) ListAgents ¶
func (c *Client) ListAgents(ctx context.Context) ([]AgentDescriptor, error)
func (*Client) ListApprovals ¶
func (*Client) ListCronRuns ¶
func (*Client) ListMCPServers ¶
func (c *Client) ListMCPServers(ctx context.Context) ([]MCPServerInfo, error)
func (*Client) ListMCPTools ¶
func (c *Client) ListMCPTools(ctx context.Context) ([]MCPToolInfo, error)
func (*Client) ListProjectActivity ¶ added in v0.5.1
func (*Client) ListSchedules ¶
func (c *Client) ListSchedules(ctx context.Context) ([]ScheduleItem, error)
func (*Client) ListSessions ¶
func (c *Client) ListSessions(ctx context.Context) ([]SessionSummary, error)
func (*Client) MarkEventsRead ¶
func (*Client) RejectCleanup ¶
func (*Client) ReloadExtensions ¶
func (c *Client) ReloadExtensions(ctx context.Context) (ExtensionsReloadInfo, error)
func (*Client) RunCronJob ¶
func (*Client) SearchSessions ¶
func (*Client) StartProjectAutopilot ¶ added in v0.5.1
func (*Client) StreamChat ¶
func (c *Client) StreamChat(ctx context.Context, req ChatRequest, onStatus func(ChatEvent), onDelta func(string)) (ChatResult, error)
func (*Client) StreamEvents ¶
func (c *Client) StreamEvents(ctx context.Context, onEvent func(NotificationMessage), onError func(error))
func (*Client) TelegramPairings ¶
func (c *Client) TelegramPairings(ctx context.Context) (TelegramPairingsInfo, error)
func (*Client) UpdateCronJobEnabled ¶
func (*Client) UpdateProject ¶
func (*Client) UpdateSchedule ¶
func (c *Client) UpdateSchedule(ctx context.Context, id string, req ScheduleUpdateRequest) (ScheduleItem, error)
func (*Client) UpdateUsageLimits ¶
func (c *Client) UpdateUsageLimits(ctx context.Context, req UsageLimits) (UsageLimits, error)
func (*Client) VaultStatus ¶
func (c *Client) VaultStatus(ctx context.Context) (VaultStatusInfo, error)
type CompactInfo ¶
type CompactInfo struct {
Message string `json:"message"`
}
type CompactRequest ¶ added in v0.10.2
type CronJob ¶
type CronJob struct {
ID string `json:"id"`
Name string `json:"name"`
Prompt string `json:"prompt"`
Schedule string `json:"schedule"`
Enabled bool `json:"enabled"`
DeleteAfterRun bool `json:"delete_after_run,omitempty"`
SessionTarget string `json:"session_target,omitempty"`
ProjectID string `json:"project_id,omitempty"`
WakeMode string `json:"wake_mode,omitempty"`
DeliveryMode string `json:"delivery_mode,omitempty"`
LastRunAt string `json:"last_run_at,omitempty"`
LastRunError string `json:"last_run_error,omitempty"`
}
type CronRunRecord ¶
type EventsHistoryInfo ¶
type EventsHistoryInfo struct {
Items []NotificationMessage `json:"items"`
// UnreadCount is based on all retained notification history on server side,
// not only on this paged Items slice.
UnreadCount int `json:"unread_count"`
ReadCursor int64 `json:"read_cursor"`
LastID int64 `json:"last_id"`
}
type EventsReadInfo ¶
type ExtensionsReloadInfo ¶
type ExtensionsReloadInfo struct {
Reloaded bool `json:"reloaded"`
Version int64 `json:"version,omitempty"`
Skills int `json:"skills,omitempty"`
Plugins int `json:"plugins,omitempty"`
MCPCount int `json:"mcp_count,omitempty"`
GatewayRefreshed bool `json:"gateway_refreshed,omitempty"`
GatewayAgents int `json:"gateway_agents,omitempty"`
}
type GatewayReportChannels ¶
type GatewayReportChannels struct {
GeneratedAt string `json:"generated_at"`
ArchiveEnabled bool `json:"archive_enabled"`
Count int `json:"count"`
Messages map[string][]ChannelReportMessage `json:"messages"`
}
type GatewayReportRuns ¶
type GatewayReportSummary ¶
type GatewayReportSummary struct {
GeneratedAt string `json:"generated_at"`
SummaryEnabled bool `json:"summary_enabled"`
ArchiveEnabled bool `json:"archive_enabled"`
RunsTotal int `json:"runs_total"`
RunsActive int `json:"runs_active"`
RunsByStatus map[string]int `json:"runs_by_status"`
ChannelsTotal int `json:"channels_total"`
MessagesTotal int `json:"messages_total"`
MessagesBySource map[string]int `json:"messages_by_source"`
}
type GatewayStatus ¶
type GatewayStatus struct {
Enabled bool `json:"enabled"`
Version int64 `json:"version"`
RunsTotal int `json:"runs_total"`
RunsActive int `json:"runs_active"`
AgentsCount int `json:"agents_count"`
AgentsWatchEnabled bool `json:"agents_watch_enabled"`
AgentsReloadVersion int64 `json:"agents_reload_version"`
ChannelsLocalEnabled bool `json:"channels_local_enabled"`
ChannelsWebhookEnabled bool `json:"channels_webhook_enabled"`
ChannelsTelegramEnabled bool `json:"channels_telegram_enabled"`
PersistenceEnabled bool `json:"persistence_enabled"`
RunsPersistenceEnabled bool `json:"runs_persistence_enabled"`
ChannelsPersistenceEnabled bool `json:"channels_persistence_enabled"`
RestoreOnStartup bool `json:"restore_on_startup"`
PersistenceDir string `json:"persistence_dir,omitempty"`
RunsRestored int `json:"runs_restored"`
ChannelsRestored int `json:"channels_restored"`
LastPersistAt string `json:"last_persist_at,omitempty"`
LastRestoreAt string `json:"last_restore_at,omitempty"`
LastRestoreError string `json:"last_restore_error,omitempty"`
AgentsLastReloadAt string `json:"agents_last_reload_at,omitempty"`
}
type HealthInfo ¶
type HeartbeatInfo ¶
type MCPServerInfo ¶
type MCPServerInfo struct {
Name string `json:"name"`
Command string `json:"command,omitempty"`
URL string `json:"url,omitempty"`
Transport string `json:"transport,omitempty"`
Source string `json:"source,omitempty"`
AuthMode string `json:"auth_mode,omitempty"`
Connected bool `json:"connected"`
ToolCount int `json:"tool_count"`
Error string `json:"error,omitempty"`
}
type MCPToolInfo ¶
type ModelsInfo ¶
type ModelsInfo struct {
Provider string `json:"provider"`
CurrentModel string `json:"current_model"`
Source string `json:"source"`
Stale bool `json:"stale"`
FetchedAt string `json:"fetched_at,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
Models []string `json:"models"`
Warning string `json:"warning,omitempty"`
}
type NotificationMessage ¶
type NotificationMessage struct {
ID int64 `json:"id,omitempty"`
Type string `json:"type"`
Category string `json:"category"`
Severity string `json:"severity"`
Title string `json:"title"`
Message string `json:"message"`
Timestamp string `json:"timestamp"`
JobID string `json:"job_id,omitempty"`
SessionID string `json:"session_id,omitempty"`
OpenPath string `json:"open_path,omitempty"`
}
type PluginDef ¶
type PluginDef struct {
SchemaVersion int `json:"schema_version,omitempty"`
ID string `json:"id"`
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
Source string `json:"source,omitempty"`
RootDir string `json:"root_dir,omitempty"`
DefaultProjectProfile string `json:"default_project_profile,omitempty"`
SupportedOS []string `json:"supported_os,omitempty"`
SupportedArch []string `json:"supported_arch,omitempty"`
Requires PluginRequires `json:"requires,omitempty"`
Policies PluginPolicies `json:"policies,omitempty"`
}
type PluginPolicies ¶ added in v0.11.0
type PluginRequires ¶ added in v0.11.0
type Project ¶
type Project struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Status string `json:"status"`
GitRepo string `json:"git_repo,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Objective string `json:"objective,omitempty"`
ToolsAllow []string `json:"tools_allow,omitempty"`
ToolsAllowGroups []string `json:"tools_allow_groups,omitempty"`
ToolsAllowPatterns []string `json:"tools_allow_patterns,omitempty"`
ToolsDeny []string `json:"tools_deny,omitempty"`
ToolsRiskMax string `json:"tools_risk_max,omitempty"`
SkillsAllow []string `json:"skills_allow,omitempty"`
MCPServers []string `json:"mcp_servers,omitempty"`
SecretsRefs []string `json:"secrets_refs,omitempty"`
Body string `json:"body,omitempty"`
Path string `json:"path,omitempty"`
}
type ProjectActivity ¶ added in v0.5.1
type ProjectActivity struct {
ID string `json:"id"`
ProjectID string `json:"project_id"`
TaskID string `json:"task_id,omitempty"`
Source string `json:"source"`
Agent string `json:"agent,omitempty"`
Kind string `json:"kind"`
Status string `json:"status,omitempty"`
Message string `json:"message,omitempty"`
Timestamp string `json:"timestamp"`
Meta map[string]string `json:"meta,omitempty"`
}
type ProjectActivityList ¶ added in v0.5.1
type ProjectActivityList struct {
Count int `json:"count"`
Items []ProjectActivity `json:"items"`
}
type ProjectAutopilotRun ¶ added in v0.5.1
type ProjectAutopilotRun struct {
ProjectID string `json:"project_id"`
RunID string `json:"run_id"`
Status string `json:"status"`
Message string `json:"message,omitempty"`
Iterations int `json:"iterations"`
StartedAt string `json:"started_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
FinishedAt string `json:"finished_at,omitempty"`
Phase string `json:"phase,omitempty"`
PhaseStatus string `json:"phase_status,omitempty"`
NextAction string `json:"next_action,omitempty"`
Summary string `json:"summary,omitempty"`
}
type ProjectBoard ¶ added in v0.5.1
type ProjectBoard struct {
ProjectID string `json:"project_id"`
UpdatedAt string `json:"updated_at,omitempty"`
Columns []string `json:"columns"`
Tasks []ProjectBoardTask `json:"tasks,omitempty"`
Path string `json:"path,omitempty"`
}
type ProjectBoardTask ¶ added in v0.5.1
type ProjectBoardTask struct {
ID string `json:"id"`
Title string `json:"title"`
Status string `json:"status"`
Assignee string `json:"assignee,omitempty"`
Role string `json:"role,omitempty"`
WorkerKind string `json:"worker_kind,omitempty"`
Issue string `json:"issue,omitempty"`
Branch string `json:"branch,omitempty"`
PR string `json:"pr,omitempty"`
ReviewApprovedBy string `json:"review_approved_by,omitempty"`
ReviewRequired bool `json:"review_required,omitempty"`
TestCommand string `json:"test_command,omitempty"`
BuildCommand string `json:"build_command,omitempty"`
}
type ProjectCreateRequest ¶
type ProjectDispatchReport ¶ added in v0.5.1
type ProjectDispatchReport struct {
ProjectID string `json:"project_id"`
Runs []ProjectTaskRun `json:"runs"`
}
type ProjectPhaseSnapshot ¶ added in v0.12.0
type ProjectPhaseSnapshot struct {
ProjectID string `json:"project_id"`
Name string `json:"name"`
Status string `json:"status"`
NextAction string `json:"next_action,omitempty"`
Summary string `json:"summary,omitempty"`
Message string `json:"message,omitempty"`
RunStatus string `json:"run_status,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type ProjectTaskRun ¶ added in v0.5.1
type ProjectUpdateRequest ¶
type ProjectUpdateRequest struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Status *string `json:"status,omitempty"`
GitRepo *string `json:"git_repo,omitempty"`
Objective *string `json:"objective,omitempty"`
Instructions *string `json:"instructions,omitempty"`
ToolsAllow []string `json:"tools_allow,omitempty"`
ToolsAllowGroups []string `json:"tools_allow_groups,omitempty"`
ToolsAllowPatterns []string `json:"tools_allow_patterns,omitempty"`
ToolsDeny []string `json:"tools_deny,omitempty"`
ToolsRiskMax *string `json:"tools_risk_max,omitempty"`
SkillsAllow []string `json:"skills_allow,omitempty"`
MCPServers []string `json:"mcp_servers,omitempty"`
SecretsRefs []string `json:"secrets_refs,omitempty"`
}
type ProviderInfo ¶
type ProvidersInfo ¶
type ProvidersInfo struct {
CurrentProvider string `json:"current_provider"`
CurrentModel string `json:"current_model"`
AuthMode string `json:"auth_mode"`
Providers []ProviderInfo `json:"providers"`
}
type ScheduleCreateRequest ¶
type ScheduleItem ¶
type ScheduleItem struct {
ID string `json:"id"`
Title string `json:"title"`
Prompt string `json:"prompt,omitempty"`
Natural string `json:"natural,omitempty"`
Schedule string `json:"schedule"`
Status string `json:"status"`
ProjectID string `json:"project_id,omitempty"`
CronJobID string `json:"cron_job_id,omitempty"`
Timezone string `json:"timezone,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
type ScheduleUpdateRequest ¶
type SessionMessage ¶
type SessionSummary ¶
type SpawnRequest ¶
type SpawnRequest struct {
SessionID string `json:"session_id,omitempty"`
ProjectID string `json:"project_id,omitempty"`
Title string `json:"title,omitempty"`
Message string `json:"message"`
Agent string `json:"agent,omitempty"`
}
SpawnRequest is the API payload for POST /v1/agent/runs. CLI parsing types (for example, spawnCommand) stay in internal/tarsclient.
type StatusInfo ¶
type TelegramPairingAllowed ¶
type TelegramPairingPending ¶
type TelegramPairingsInfo ¶
type TelegramPairingsInfo struct {
DMPolicy string `json:"dm_policy"`
PollingEnabled bool `json:"polling_enabled"`
Pending []TelegramPairingPending `json:"pending"`
Allowed []TelegramPairingAllowed `json:"allowed"`
}
type UsageLimitStatus ¶
type UsageLimits ¶
type UsageSummary ¶
type UsageSummary struct {
Period string `json:"period"`
GroupBy string `json:"group_by"`
TotalCalls int `json:"total_calls"`
TotalCostUSD float64 `json:"total_cost_usd"`
TotalInput int `json:"total_input_tokens"`
TotalOutput int `json:"total_output_tokens"`
TotalCached int `json:"total_cached_tokens"`
TotalCacheRead int `json:"total_cache_read_tokens"`
TotalCacheWrite int `json:"total_cache_write_tokens"`
Rows []UsageSummaryRow `json:"rows"`
}
type UsageSummaryRow ¶
type UsageSummaryRow struct {
Key string `json:"key"`
Calls int `json:"calls"`
CostUSD float64 `json:"cost_usd"`
InputTokens int `json:"input_tokens"`
OutputTokens int `json:"output_tokens"`
CachedTokens int `json:"cached_tokens"`
CacheReadTokens int `json:"cache_read_tokens"`
CacheWriteTokens int `json:"cache_write_tokens"`
}
type VaultStatusInfo ¶
type VaultStatusInfo struct {
Enabled bool `json:"enabled"`
Ready bool `json:"ready,omitempty"`
AuthMode string `json:"auth_mode,omitempty"`
Addr string `json:"addr,omitempty"`
Namespace string `json:"namespace,omitempty"`
AllowlistCount int `json:"allowlist_count,omitempty"`
LastError string `json:"last_error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.