This commit is contained in:
ZacharyZhang-NY committed 2026-04-05 20:14:48 -04:00
1 parent 09971cabc2
commit 9145572422
163 files changed
+3348 -2874

No files matched your search

-7
View File
@@ -48,8 +48,6 @@ export type ConnectorStatus =
| "degraded"
| "error";
export type SenderKind = "agent" | "human" | "system";
export type TaskType = "code" | "research" | "content" | "management" | "general";
export type WorkspaceState = "ready" | "busy" | "blocked" | "missing" | "error";
@@ -110,8 +108,6 @@ export type DepartmentId =
| "research"
| "design";
export type BudgetAlertLevel = "warn" | "hard_stop";
export type SkillSourceType = "github" | "local_path" | "url" | "skills_sh" | "managed";
export type TrustLevel = "markdown_only" | "assets" | "scripts_executables";
@@ -232,9 +228,6 @@ export type MessagePriority = "urgent" | "normal" | "low";
export type WorkflowStatus = "draft" | "active" | "paused" | "completed" | "failed";
export type WorkProductType = "preview_url" | "pull_request" | "branch" | "commit" | "artifact" | "document" | "runtime_service";
export type WorkProductStatus = "active" | "ready_for_review" | "approved" | "changes_requested" | "merged" | "closed" | "failed" | "archived" | "draft";
export type WorkProductReviewState = "none" | "needs_board_review" | "approved" | "changes_requested";
export type InboxItemType = "pending_approval" | "failed_run" | "budget_warning" | "blocked_task" | "review_needed" | "agent_message";
+10 -1
View File
@@ -94,6 +94,14 @@ export interface ThreadWaitStateUpdatedEvent {
action: "created" | "resolved";
}
export interface RecoveryNeededEvent {
type: "recovery-needed";
interruptedRuns: Array<{
runId: string; taskId: string; taskTitle: string; agentId: string;
agentName: string; connectorId: string; interruptedAt: string;
}>;
}
export type DesktopEvent =
| LogChunkEvent
| DomainChangedEvent
@@ -109,4 +117,5 @@ export type DesktopEvent =
| ApprovalUpdatedEvent
| AgentUpdatedEvent
| BudgetChangedEvent
| ThreadWaitStateUpdatedEvent;
| ThreadWaitStateUpdatedEvent
| RecoveryNeededEvent;
+1
View File
@@ -131,6 +131,7 @@ export interface TaskRecord {
sessionJson: string | null;
sessionDisplayId: string | null;
costUsd: number;
taskType: string | null;
requiresUserReview: boolean;
startedAt: string | null;
completedAt: string | null;
-56
View File
@@ -16,9 +16,6 @@ import type {
MessageChannel,
MessagePriority,
WorkflowStatus,
WorkProductType,
WorkProductStatus,
WorkProductReviewState,
ThreadType,
ThreadActorType,
ThreadEventType,
@@ -100,59 +97,6 @@ export interface DocumentRecord {
updatedAt: string;
}
export interface DocumentRevisionRecord {
id: string;
companyId: string;
documentId: string;
revisionNumber: number;
body: string;
changeSummary: string | null;
createdByAgentId: string | null;
createdByUserId: string | null;
createdAt: string;
}
export interface ApprovalCommentRecord {
id: string;
companyId: string;
approvalId: string;
authorAgentId: string | null;
authorUserId: string | null;
body: string;
createdAt: string;
updatedAt: string;
}
export interface WorkProductRecord {
id: string;
companyId: string;
projectId: string | null;
taskId: string;
type: WorkProductType;
provider: string;
externalId: string | null;
title: string;
url: string | null;
status: WorkProductStatus;
reviewState: WorkProductReviewState;
isPrimary: boolean;
summary: string | null;
metadataJson: string | null;
createdByRunId: string | null;
createdAt: string;
updatedAt: string;
}
export interface TaskDocumentLink {
id: string;
companyId: string;
taskId: string;
documentId: string;
key: string;
createdAt: string;
updatedAt: string;
}
export interface KnowledgeEntryRecord {
id: string;
companyId: string;