源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
This commit is contained in:
commit
2ed3415fb7
8018 files changed
+1936476
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import type { AgentApprovalPurpose } from "../agentApprovalPurpose";
|
||||
|
||||
export interface AgentApprovalOptionVM {
|
||||
id: string;
|
||||
label: string;
|
||||
kind: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface AgentApprovalItemVM {
|
||||
kind: "approval";
|
||||
id: string;
|
||||
agentSessionId?: string;
|
||||
turnId: string;
|
||||
requestId: string;
|
||||
callId: string;
|
||||
approvalPurpose?: AgentApprovalPurpose;
|
||||
title: string;
|
||||
toolName: string | null;
|
||||
status: string | null;
|
||||
input: Record<string, unknown> | null;
|
||||
options: AgentApprovalOptionVM[];
|
||||
output?: Record<string, unknown> | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
export interface AgentAskUserQuestionOptionVM {
|
||||
/** Provider-owned durable identity used by interaction automation when present. */
|
||||
id?: string;
|
||||
label: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface AgentAskUserQuestionVM {
|
||||
id: string;
|
||||
header: string;
|
||||
question: string;
|
||||
options: AgentAskUserQuestionOptionVM[];
|
||||
multiSelect: boolean;
|
||||
allowFreeText?: boolean;
|
||||
answer?: string | string[] | null;
|
||||
}
|
||||
|
||||
export interface AgentAskUserQuestionItemVM {
|
||||
kind: "ask-user";
|
||||
id: string;
|
||||
turnId: string;
|
||||
requestId: string;
|
||||
title: string;
|
||||
status: string | null;
|
||||
questions: AgentAskUserQuestionVM[];
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
export interface AgentCollaborationUsageVM {
|
||||
inputTokens: number;
|
||||
outputTokens: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Typed projection of one durable "collaboration" timeline message (the
|
||||
* daemon projects each collaboration run into the source session transcript
|
||||
* with messageId `collab:<runId>`; status transitions update the same message
|
||||
* in place). Pure data — rendering and adoption actions live in
|
||||
* `AgentCollaborationRow`.
|
||||
*/
|
||||
export interface AgentCollaborationVM {
|
||||
kind: "collaboration";
|
||||
runId: string;
|
||||
/** Session identity of the source transcript row, for adoption commands. */
|
||||
workspaceId: string | null;
|
||||
agentSessionId: string | null;
|
||||
mode: "consult" | "fork" | "delegate" | "handoff" | (string & {});
|
||||
status: "running" | "completed" | "failed" | "canceled" | (string & {});
|
||||
triggerSource: "user" | "agent" | "policy" | (string & {});
|
||||
triggerReason: string | null;
|
||||
targetSessionId: string | null;
|
||||
targetAgentTargetId: string | null;
|
||||
modelPlanId: string | null;
|
||||
/** Optional display name when the daemon payload carries it. */
|
||||
modelPlanName: string | null;
|
||||
model: string | null;
|
||||
contextScope: string | null;
|
||||
resultText: string | null;
|
||||
failureReason: string | null;
|
||||
durationMs: number | null;
|
||||
usage: AgentCollaborationUsageVM | null;
|
||||
adoption:
|
||||
| "pending"
|
||||
| "adopted"
|
||||
| "rejected"
|
||||
| "not_applicable"
|
||||
| (string & {});
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
export interface AgentConversationParticipantIdentity {
|
||||
name: string;
|
||||
avatarUrl?: string | null;
|
||||
}
|
||||
|
||||
export type AgentConversationParticipantPresentation =
|
||||
| {
|
||||
enabled: false;
|
||||
}
|
||||
| {
|
||||
enabled: true;
|
||||
status: "loading";
|
||||
}
|
||||
| {
|
||||
enabled: true;
|
||||
status: "ready";
|
||||
user: AgentConversationParticipantIdentity;
|
||||
agent: AgentConversationParticipantIdentity;
|
||||
};
|
||||
@@ -0,0 +1,61 @@
|
||||
import type { WorkspaceAgentActivityCard } from "../../workspaceAgentActivityListViewModel";
|
||||
import type { WorkspaceAgentSessionDetailViewModel } from "../../workspaceAgentSessionDetailViewModel";
|
||||
import type {
|
||||
AgentApprovalItemVM,
|
||||
AgentApprovalOptionVM
|
||||
} from "./agentApprovalItemVM";
|
||||
import type { AgentAskUserQuestionVM } from "./agentAskUserQuestionItemVM";
|
||||
import type { AgentTranscriptRowVM } from "./agentTranscriptRowVM";
|
||||
|
||||
export interface AgentInteractionResponseInput {
|
||||
agentSessionId?: string;
|
||||
turnId?: string;
|
||||
requestId: string;
|
||||
action?: string;
|
||||
optionId?: string;
|
||||
payload?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export type AgentConversationPromptVM =
|
||||
| AgentApprovalItemVM
|
||||
| {
|
||||
kind: "ask-user";
|
||||
agentSessionId?: string;
|
||||
turnId?: string;
|
||||
requestId: string;
|
||||
title: string;
|
||||
questions: AgentAskUserQuestionVM[];
|
||||
}
|
||||
| {
|
||||
kind: "exit-plan";
|
||||
agentSessionId?: string;
|
||||
turnId?: string;
|
||||
requestId: string;
|
||||
title: string;
|
||||
// Permission-mode options the runtime offered for leaving plan mode
|
||||
// ("Yes, and ..."), in runtime order, excluding the keep-planning
|
||||
// (`plan`) option. Empty when the runtime sent no options (Codex plan /
|
||||
// legacy `exitplanmode` tool), in which case the surface falls back to a
|
||||
// curated default mode list.
|
||||
options: AgentApprovalOptionVM[];
|
||||
// The runtime option id for "keep planning". The daemon models exit-plan
|
||||
// as an approval that requires an option id, so declining must submit this
|
||||
// id rather than a bare deny. Absent for option-less payloads, where the
|
||||
// surface falls back to a plain deny action.
|
||||
keepPlanningOptionId?: string;
|
||||
}
|
||||
| {
|
||||
// Codex plan-mode "implement this plan?" decision. Unlike exit-plan it
|
||||
// has no server request; requestId carries the plan turn id so the
|
||||
// surface and dismissal can key off it. Actions: implement/feedback/skip.
|
||||
kind: "plan-implementation";
|
||||
requestId: string;
|
||||
title: string;
|
||||
};
|
||||
|
||||
export interface AgentConversationVM {
|
||||
activity: WorkspaceAgentActivityCard;
|
||||
workspaceRoot: string | null;
|
||||
sourceDetail: WorkspaceAgentSessionDetailViewModel;
|
||||
rows: AgentTranscriptRowVM[];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
export interface AgentGeneratedImageRowVM {
|
||||
kind: "generated-image";
|
||||
id: string;
|
||||
turnId: string;
|
||||
sourceCallId: string;
|
||||
uri: string;
|
||||
mimeType: string | null;
|
||||
prompt: string | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import type { AgentActivityGoalControlAction } from "@tutti-os/agent-activity-core";
|
||||
import type { WorkspaceAgentActivityTimelineItem } from "../../workspaceAgentTimelineTypes";
|
||||
|
||||
export interface AgentGoalControlRowVM {
|
||||
kind: "goal-control";
|
||||
id: string;
|
||||
turnId: null;
|
||||
action: AgentActivityGoalControlAction;
|
||||
body: string;
|
||||
occurredAtUnixMs: number | null;
|
||||
sourceTimelineItems?: WorkspaceAgentActivityTimelineItem[];
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
import type { AgentActivityMessageSemantics } from "@tutti-os/agent-activity-core";
|
||||
import type { ToolCallStatusKind } from "../../workspaceAgentToolCallDisplay";
|
||||
import type { WorkspaceAgentActivityTimelineItem } from "../../workspaceAgentTimelineTypes";
|
||||
import type { AgentTranscriptPresentationKind } from "./agentTranscriptPresentation";
|
||||
import type { AgentCollaborationVM } from "./agentCollaborationVM";
|
||||
import type { AgentToolGroupRowVM } from "./agentToolGroupRowVM";
|
||||
|
||||
export type AgentMessageContentKind =
|
||||
| "text"
|
||||
| "image-grid"
|
||||
| "plan"
|
||||
| "collaboration"
|
||||
| "tutti-checkpoint-wake"
|
||||
| "tutti-plan-issue-link"
|
||||
| "selected-text";
|
||||
|
||||
export interface AgentMessageContentVM {
|
||||
kind: "message-content";
|
||||
id: string;
|
||||
turnId: string;
|
||||
body: string;
|
||||
presentationKind: AgentTranscriptPresentationKind;
|
||||
copyText?: string | null;
|
||||
statusKind?: ToolCallStatusKind | null;
|
||||
contentKind?: AgentMessageContentKind;
|
||||
isTurnFinalText?: true;
|
||||
/** Typed payload for `contentKind: "collaboration"` rows. */
|
||||
collaboration?: AgentCollaborationVM | null;
|
||||
/**
|
||||
* Typed payload for `contentKind: "tutti-checkpoint-wake"` rows: a daemon
|
||||
* checkpoint-wake prompt injected into the source agent. `body` carries the
|
||||
* full prompt (minus the sentinel line) for the expand-to-full affordance.
|
||||
*/
|
||||
checkpointWake?: AgentTuttiModeCheckpointWakeVM | null;
|
||||
/**
|
||||
* Typed payload for `contentKind: "tutti-plan-issue-link"` rows: the durable
|
||||
* plan→Issue reverse link the daemon writes when the user accepts a Tutti
|
||||
* Mode plan (messageId "plan-issue:<issueID>").
|
||||
*/
|
||||
planIssueLink?: AgentTuttiPlanIssueLinkVM | null;
|
||||
/** Typed payload for `contentKind: "selected-text"` rows. */
|
||||
selectedText?: AgentSelectedTextVM | null;
|
||||
images?: AgentMessageImageVM[];
|
||||
occurredAtUnixMs: number | null;
|
||||
visibleError?: {
|
||||
code: string | null;
|
||||
phase: string | null;
|
||||
provider: string | null;
|
||||
origin?: string | null;
|
||||
detail: string | null;
|
||||
detailAvailable?: boolean;
|
||||
retryable: boolean | null;
|
||||
} | null;
|
||||
systemNotice?: {
|
||||
noticeKind: string | null;
|
||||
semanticKind?: "context-handoff-required" | null;
|
||||
severity: string | null;
|
||||
source?: string | null;
|
||||
command?: AgentActivityMessageSemantics["noticeCommand"] | null;
|
||||
commandStatus?: AgentActivityMessageSemantics["noticeCommandStatus"] | null;
|
||||
title: string | null;
|
||||
detail: string | null;
|
||||
retryable: boolean | null;
|
||||
} | null;
|
||||
sourceTimelineItems?: WorkspaceAgentActivityTimelineItem[];
|
||||
}
|
||||
|
||||
export interface AgentSelectedTextVM {
|
||||
count: number;
|
||||
texts: readonly string[];
|
||||
}
|
||||
|
||||
export interface AgentTuttiModeCheckpointWakeVM {
|
||||
/** Wire kind, e.g. "task_settled" | "task_failed" | "all_tasks_terminal". */
|
||||
kind: string;
|
||||
issueId: string;
|
||||
checkpointId: string;
|
||||
graphRevision: number | null;
|
||||
}
|
||||
|
||||
export interface AgentTuttiPlanIssueLinkVM {
|
||||
issueId: string;
|
||||
/** Issue title with markdown escapes removed; falls back to the issue id. */
|
||||
title: string;
|
||||
/** The original single-mention markdown, rendered as the issue chip. */
|
||||
mentionMarkdown: string;
|
||||
}
|
||||
|
||||
export interface AgentMessageImageVM {
|
||||
id: string;
|
||||
workspaceId?: string | null;
|
||||
agentSessionId: string;
|
||||
attachmentId?: string | null;
|
||||
mimeType: string;
|
||||
name?: string | null;
|
||||
data?: string | null;
|
||||
url?: string | null;
|
||||
path?: string | null;
|
||||
}
|
||||
|
||||
export interface AgentThinkingContentVM {
|
||||
kind: "thinking-content";
|
||||
id: string;
|
||||
turnId: string;
|
||||
body: string;
|
||||
statusKind?: ToolCallStatusKind | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
sourceTimelineItems?: WorkspaceAgentActivityTimelineItem[];
|
||||
}
|
||||
|
||||
export interface AgentMessageRowVM {
|
||||
kind: "message";
|
||||
id: string;
|
||||
turnId: string;
|
||||
speaker: "user" | "assistant";
|
||||
/**
|
||||
* Exact first text block from the submitted structured content. Editing must
|
||||
* not recover this value from displayPrompt, copy text, or rendered Markdown.
|
||||
*/
|
||||
rawFirstTextBlock?: string | null;
|
||||
messages: AgentMessageContentVM[];
|
||||
thinking: AgentThinkingContentVM[];
|
||||
/**
|
||||
* Tool-group rows that happened right before this message and are rendered
|
||||
* inside this message's block (under the participant header, above the
|
||||
* content) instead of as standalone transcript rows. Populated only for the
|
||||
* participant-header presentation (e.g. the Agent board session detail).
|
||||
*/
|
||||
leadingToolRows?: AgentToolGroupRowVM[];
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import type { AgentApprovalOptionVM } from "./agentApprovalItemVM";
|
||||
|
||||
export type AgentPlanModeKind = "enter" | "exit";
|
||||
|
||||
export interface AgentPlanModeItemVM {
|
||||
itemKind: "plan-mode";
|
||||
id: string;
|
||||
turnId: string;
|
||||
requestId?: string;
|
||||
kind: AgentPlanModeKind;
|
||||
title: string;
|
||||
plan?: string | null;
|
||||
status: string | null;
|
||||
filePath?: string | null;
|
||||
// Exit-plan permission-mode options the runtime offered ("Yes, and ..."),
|
||||
// excluding the keep-planning option. Carried through to the pending
|
||||
// exit-plan prompt so the surface renders the runtime's modes rather than a
|
||||
// hardcoded list. Absent/empty for enter-plan or option-less payloads.
|
||||
options?: AgentApprovalOptionVM[];
|
||||
// The runtime option id for "keep planning" (see AgentConversationPromptVM).
|
||||
keepPlanningOptionId?: string;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface AgentProcessingRowVM {
|
||||
kind: "processing";
|
||||
id: string;
|
||||
turnId: string | null;
|
||||
label?: string | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
import type { AgentToolCallVM } from "./agentToolCallVM";
|
||||
|
||||
export type AgentTaskSubAgentStatus =
|
||||
| "running"
|
||||
| "completed"
|
||||
| "failed"
|
||||
| "canceled";
|
||||
|
||||
// Live view of one delegated sub-agent thread (Codex collab child thread).
|
||||
// The child thread's transcript rows are segregated out of the parent
|
||||
// conversation; this VM is the parent-side surface that keeps the sub-agent
|
||||
// perceivable while it runs.
|
||||
export type AgentTaskSubAgentActivityKind = "message" | "reasoning" | "tool";
|
||||
|
||||
export interface AgentTaskSubAgentActivityVM {
|
||||
kind: AgentTaskSubAgentActivityKind;
|
||||
text: string;
|
||||
atUnixMs: number | null;
|
||||
}
|
||||
|
||||
export interface AgentTaskSubAgentVM {
|
||||
childSessionId: string;
|
||||
parentToolCallId: string;
|
||||
status: AgentTaskSubAgentStatus;
|
||||
// The sub-agent's own identity: its child thread name when known (daemon
|
||||
// forwards child thread/name/updated as a subAgentName marker). Null until
|
||||
// named - the view falls back to a localized numbered label, never the
|
||||
// collab tool name.
|
||||
name: string | null;
|
||||
task: string | null;
|
||||
laneIndex: number;
|
||||
laneCount: number;
|
||||
latestActivity: string | null;
|
||||
latestActivityKind: AgentTaskSubAgentActivityKind | null;
|
||||
// The latest canonical assistant message, preserved as complete Markdown
|
||||
// while streaming and after settlement. It is never reduced to an activity
|
||||
// snippet.
|
||||
assistantMarkdown?: string | null;
|
||||
// Chronological recent activity (markers excluded), capped; older entries
|
||||
// are summarized by activityOmittedCount.
|
||||
activityLog: readonly AgentTaskSubAgentActivityVM[];
|
||||
activityOmittedCount: number;
|
||||
// True while the spawn call is accepted but no child thread exists yet -
|
||||
// codex queues spawns beyond its per-session concurrency cap.
|
||||
queued?: boolean;
|
||||
failureDetail: string | null;
|
||||
startedAtUnixMs: number | null;
|
||||
latestActivityAtUnixMs: number | null;
|
||||
terminalAtUnixMs: number | null;
|
||||
childSessions: readonly AgentTaskSubAgentVM[];
|
||||
}
|
||||
|
||||
export interface AgentTaskStepVM {
|
||||
id: string;
|
||||
turnId: string;
|
||||
name: string;
|
||||
toolName: string | null;
|
||||
status: string | null;
|
||||
summary: string;
|
||||
payload: Record<string, unknown> | null;
|
||||
tool: AgentToolCallVM | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
|
||||
export interface AgentTaskItemVM {
|
||||
kind: "task";
|
||||
id: string;
|
||||
turnId: string;
|
||||
title: string;
|
||||
status: string | null;
|
||||
prompt?: string | null;
|
||||
delegateSessionId?: string | null;
|
||||
steps: AgentTaskStepVM[];
|
||||
subAgents?: AgentTaskSubAgentVM[];
|
||||
result?: string | null;
|
||||
resultMarkdown?: string | null;
|
||||
durationMs?: number | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { ToolCallStatusKind } from "../../workspaceAgentToolCallDisplay";
|
||||
import type { WorkspaceAgentActivityTimelineItem } from "../../workspaceAgentTimelineTypes";
|
||||
import type { AgentApprovalItemVM } from "./agentApprovalItemVM";
|
||||
import type { AgentAskUserQuestionItemVM } from "./agentAskUserQuestionItemVM";
|
||||
import type { AgentPlanModeItemVM } from "./agentPlanModeItemVM";
|
||||
import type { AgentTaskItemVM } from "./agentTaskItemVM";
|
||||
|
||||
export type AgentToolRendererKind =
|
||||
| "default"
|
||||
| "approval"
|
||||
| "plan-enter"
|
||||
| "plan-exit"
|
||||
| "ask-user"
|
||||
| "task"
|
||||
| "read"
|
||||
| "write"
|
||||
| "edit"
|
||||
| "bash"
|
||||
| "search"
|
||||
| "web-search"
|
||||
| "web-fetch"
|
||||
| "image-generation"
|
||||
| "todo-write"
|
||||
| "tool-search"
|
||||
| "skill"
|
||||
| "mcp";
|
||||
|
||||
export interface AgentToolCallVM {
|
||||
kind: "tool-call";
|
||||
id: string;
|
||||
turnId: string;
|
||||
name: string;
|
||||
toolName: string | null;
|
||||
callType: string | null;
|
||||
status: string | null;
|
||||
statusKind: ToolCallStatusKind | null;
|
||||
summary: string;
|
||||
compactSummary: string | null;
|
||||
payload: Record<string, unknown> | null;
|
||||
input: Record<string, unknown> | null;
|
||||
output: Record<string, unknown> | null;
|
||||
error: Record<string, unknown> | null;
|
||||
metadata: Record<string, unknown> | null;
|
||||
locations: unknown[] | null;
|
||||
rendererKind: AgentToolRendererKind;
|
||||
approval: AgentApprovalItemVM | null;
|
||||
planMode: AgentPlanModeItemVM | null;
|
||||
askUserQuestion: AgentAskUserQuestionItemVM | null;
|
||||
task: AgentTaskItemVM | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
sourceTimelineItems?: WorkspaceAgentActivityTimelineItem[];
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { AgentThinkingContentVM } from "./agentMessageRowVM";
|
||||
import type { AgentToolCallVM } from "./agentToolCallVM";
|
||||
|
||||
export type AgentToolGroupEntryVM =
|
||||
| {
|
||||
kind: "thinking";
|
||||
thinking: AgentThinkingContentVM;
|
||||
}
|
||||
| {
|
||||
kind: "tool-call";
|
||||
call: AgentToolCallVM;
|
||||
};
|
||||
|
||||
export interface AgentToolGroupRowVM {
|
||||
kind: "tool-group";
|
||||
id: string;
|
||||
expansionKey?: string;
|
||||
turnId: string;
|
||||
grouped: boolean;
|
||||
calls: AgentToolCallVM[];
|
||||
summary?: string | null;
|
||||
entries: AgentToolGroupEntryVM[];
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type AgentTranscriptPresentationKind =
|
||||
| "content"
|
||||
| "specific-progress"
|
||||
| "turn-boundary";
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { AgentGeneratedImageRowVM } from "./agentGeneratedImageRowVM";
|
||||
import type { AgentGoalControlRowVM } from "./agentGoalControlRowVM";
|
||||
import type { AgentMessageRowVM } from "./agentMessageRowVM";
|
||||
import type { AgentProcessingRowVM } from "./agentProcessingRowVM";
|
||||
import type { AgentToolGroupRowVM } from "./agentToolGroupRowVM";
|
||||
import type { AgentTurnSummaryRowVM } from "./agentTurnSummaryRowVM";
|
||||
|
||||
export type AgentTranscriptRowVM =
|
||||
| AgentGeneratedImageRowVM
|
||||
| AgentGoalControlRowVM
|
||||
| AgentMessageRowVM
|
||||
| AgentToolGroupRowVM
|
||||
| AgentTurnSummaryRowVM
|
||||
| AgentProcessingRowVM;
|
||||
@@ -0,0 +1,41 @@
|
||||
export interface AgentTurnSummaryFileVM {
|
||||
label: string;
|
||||
path: string;
|
||||
fileName: string;
|
||||
directory: string | null;
|
||||
changeType: "modified" | "created" | "deleted";
|
||||
toolName: string | null;
|
||||
messageId: string;
|
||||
unifiedDiff?: string | null;
|
||||
oldString?: string | null;
|
||||
newString?: string | null;
|
||||
content?: string | null;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
|
||||
export interface AgentTurnSummaryPatchChangeVM {
|
||||
path: string;
|
||||
changeType: "modified" | "created" | "deleted";
|
||||
unifiedDiff?: string | null;
|
||||
oldString?: string | null;
|
||||
newString?: string | null;
|
||||
content?: string | null;
|
||||
}
|
||||
|
||||
export interface AgentTurnSummaryPatchBatchVM {
|
||||
cwd: string | null;
|
||||
toolCallId: string;
|
||||
changes: AgentTurnSummaryPatchChangeVM[];
|
||||
}
|
||||
|
||||
export interface AgentTurnSummaryRowVM {
|
||||
kind: "turn-summary";
|
||||
id: string;
|
||||
turnId: string;
|
||||
files: AgentTurnSummaryFileVM[];
|
||||
patchBatches?: AgentTurnSummaryPatchBatchVM[];
|
||||
fileCount: number;
|
||||
modifiedCount: number;
|
||||
createdCount: number;
|
||||
occurredAtUnixMs: number | null;
|
||||
}
|
||||
Reference in new issue
Block a user