Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
TypeScript
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455/** Safe presentation metadata. Native Think messages still own inputs/results. */export type ToolKind = "memory" | "web" | "browser" | "shell" | "schedule" | "other";export type ToolActivityStatus = "pending" | "running" | "succeeded" | "failed" | "cancelled";export type ToolActivityReason = | "tool-error" | "turn-cancelled" | "interrupted" | "incomplete" | "approval-denied";export interface ToolProgress { text: string; completed?: number; total?: number;}export interface CapabilityActivity { id: string; fingerprint: string; name: string; version?: string; source: { kind: "mcp" | "skill"; id: string; name: string };}export interface ToolActivity { /** Native tool-call join key, scoped to the conversation. Not an idempotency key. */ toolCallId: string; toolName: string; capability?: CapabilityActivity; kind: ToolKind; status: ToolActivityStatus; inputSummary: string; outputSummary?: string; /** Number of observed server executions for this native call (including recovery). */ attempts: number; interruptedAt?: number; createdAt: number; startedAt?: number; endedAt?: number; updatedAt: number; progress?: ToolProgress; reason?: ToolActivityReason; approvalDecision?: "approved" | "denied";}export interface ToolActivityState { toolActivityVersion: 1; toolActivities: ToolActivity[];}export interface ToolActivityPage { activities: ToolActivity[]; nextCursor: number | null;}export const TOOL_ACTIVITY_LIVE_LIMIT = 32;export const TOOL_ACTIVITY_PAGE_LIMIT = 100;export const TOOL_ACTIVITY_TEXT_LIMIT = 160;