@mgamadeus/ddd-agents 0.11.12 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -6
- package/boundary.json +5 -0
- package/dist/admin.js +13712 -0
- package/dist/admin.js.map +1 -0
- package/dist/chat.js +1627 -109
- package/dist/chat.js.map +1 -1
- package/dist/chunks/{AgentsConversationClientContext-C4T7g_Qk.js → AgentsConversationClientContext-B_UJSLXU.js} +2 -2
- package/dist/chunks/{AgentsConversationClientContext-C4T7g_Qk.js.map → AgentsConversationClientContext-B_UJSLXU.js.map} +1 -1
- package/dist/chunks/{ConversationMarkdown-D-aP3Ssl.js → ConversationMarkdown-DlvwT3Qk.js} +5 -4
- package/dist/chunks/{ConversationMarkdown-D-aP3Ssl.js.map → ConversationMarkdown-DlvwT3Qk.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-7HNAmZE1.js → ConversationMessageInputComposerWidgets-TchR1lPj.js} +6 -6
- package/dist/chunks/{ConversationMessageInputComposerWidgets-7HNAmZE1.js.map → ConversationMessageInputComposerWidgets-TchR1lPj.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-FhLAcgLG.js → VoiceBarsIcon-y3mgSqbn.js} +4 -4
- package/dist/chunks/{VoiceBarsIcon-FhLAcgLG.js.map → VoiceBarsIcon-y3mgSqbn.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-dEq19U7k.js → WebSearchResultsConversationWidget-l9Aek_lG.js} +3 -2
- package/dist/chunks/WebSearchResultsConversationWidget-l9Aek_lG.js.map +1 -0
- package/dist/chunks/agents-http-trace-mappers-LWNi-3a4.js +759 -0
- package/dist/chunks/agents-http-trace-mappers-LWNi-3a4.js.map +1 -0
- package/dist/chunks/{browser-request-interception-ydNOzeUL.js → browser-request-interception-D678IemW.js} +2 -2
- package/dist/chunks/{browser-request-interception-ydNOzeUL.js.map → browser-request-interception-D678IemW.js.map} +1 -1
- package/dist/chunks/{canvas-reducers-BInd3xNz.js → canvas-reducers-BYArW_Ji.js} +2 -2
- package/dist/chunks/{canvas-reducers-BInd3xNz.js.map → canvas-reducers-BYArW_Ji.js.map} +1 -1
- package/dist/chunks/{canvas-title-slot-context-BI1PLnPn.js → canvas-title-slot-context-BRGnFzYP.js} +3 -3
- package/dist/chunks/{canvas-title-slot-context-BI1PLnPn.js.map → canvas-title-slot-context-BRGnFzYP.js.map} +1 -1
- package/dist/chunks/{canvasBodies-CRVh8pCw.js → canvasBodies-BjXypuHf.js} +4 -4
- package/dist/chunks/{canvasBodies-CRVh8pCw.js.map → canvasBodies-BjXypuHf.js.map} +1 -1
- package/dist/chunks/{canvasStorage-Cr3omZeI.js → canvasStorage-DSspwRMg.js} +2 -2
- package/dist/chunks/{canvasStorage-Cr3omZeI.js.map → canvasStorage-DSspwRMg.js.map} +1 -1
- package/dist/chunks/content-from-unified-diff-CovnmG2Q.js +2927 -0
- package/dist/chunks/content-from-unified-diff-CovnmG2Q.js.map +1 -0
- package/dist/chunks/{contract-C18owGKs.js → contract-886XjdID.js} +2 -2
- package/dist/chunks/{contract-C18owGKs.js.map → contract-886XjdID.js.map} +1 -1
- package/dist/chunks/{conversation-CbWEHPbL.js → conversation-B7-evdj_.js} +4 -4
- package/dist/chunks/{conversation-CbWEHPbL.js.map → conversation-B7-evdj_.js.map} +1 -1
- package/dist/chunks/{icon-names-Di6c4zLo.js → icon-names-C5PeVvkJ.js} +32 -1
- package/dist/chunks/icon-names-C5PeVvkJ.js.map +1 -0
- package/dist/chunks/{link-navigation-DRHt6g7U.js → index-DZovGMpG.js} +65 -106
- package/dist/chunks/index-DZovGMpG.js.map +1 -0
- package/dist/chunks/link-navigation-a_sRfmsj.js +49 -0
- package/dist/chunks/link-navigation-a_sRfmsj.js.map +1 -0
- package/dist/chunks/{widget-name-resolver-Dq6Ejo7d.js → widget-name-resolver-DS3zH_5W.js} +5 -4
- package/dist/chunks/{widget-name-resolver-Dq6Ejo7d.js.map → widget-name-resolver-DS3zH_5W.js.map} +1 -1
- package/dist/chunks/{withPollingChangeSubscription-ClyOABgu.js → withPollingChangeSubscription-XvCpjGmd.js} +13 -2
- package/dist/chunks/{withPollingChangeSubscription-ClyOABgu.js.map → withPollingChangeSubscription-XvCpjGmd.js.map} +1 -1
- package/dist/client-testing.js +5 -5
- package/dist/client.js +50 -231
- package/dist/client.js.map +1 -1
- package/dist/contract.js +5 -5
- package/dist/files/i18n-keys.json +18091 -1287
- package/dist/files/widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.md +3 -3
- package/dist/image-render.js +7 -7
- package/dist/index.js +62 -61
- package/dist/index.js.map +1 -1
- package/dist/kit.js +2 -2
- package/dist/preview.js +7 -7
- package/dist/provider.js +57 -56
- package/dist/provider.js.map +1 -1
- package/dist/renderer.js +15 -15
- package/dist/styles.css +2962 -15
- package/dist/types/admin/blocks/CodeBlock.d.ts +28 -0
- package/dist/types/admin/blocks/DetailModal.d.ts +34 -0
- package/dist/types/admin/blocks/Disclosure.d.ts +25 -0
- package/dist/types/admin/blocks/JsonTree.d.ts +18 -0
- package/dist/types/admin/blocks/LineDiffView.d.ts +18 -0
- package/dist/types/admin/blocks/ProportionBar.d.ts +43 -0
- package/dist/types/admin/blocks/TokenFigure.d.ts +14 -0
- package/dist/types/admin/blocks/json-tree.d.ts +40 -0
- package/dist/types/admin/blocks/line-diff.d.ts +46 -0
- package/dist/types/admin/blocks/proportion-bar.d.ts +34 -0
- package/dist/types/admin/blocks/series-fill-classes.d.ts +13 -0
- package/dist/types/admin/blocks/token-figure.d.ts +8 -0
- package/dist/types/admin/connections/AgentConnectionCard.d.ts +21 -0
- package/dist/types/admin/connections/AgentConnectionDriveRootSpaces.d.ts +25 -0
- package/dist/types/admin/connections/AgentConnectionDriveScopeDialog.d.ts +20 -0
- package/dist/types/admin/connections/AgentConnectionDriveSearchFilters.d.ts +34 -0
- package/dist/types/admin/connections/AgentConnectionDrivesDrawer.d.ts +39 -0
- package/dist/types/admin/connections/AgentConnectionLevelsDrawer.d.ts +27 -0
- package/dist/types/admin/connections/AgentConnectionSharingDialog.d.ts +12 -0
- package/dist/types/admin/connections/AgentConnectionsPanel.d.ts +97 -0
- package/dist/types/admin/connections/AgentConnectionsScreen.d.ts +18 -0
- package/dist/types/admin/connections/ConnectDialogs.d.ts +22 -0
- package/dist/types/admin/connections/agent-connection-drive-scope.d.ts +112 -0
- package/dist/types/admin/connections/agent-connection-drives.d.ts +107 -0
- package/dist/types/admin/connections/agent-connection-format.d.ts +82 -0
- package/dist/types/admin/connections/agent-connection-oauth.d.ts +122 -0
- package/dist/types/admin/connections/agent-connections-api.d.ts +420 -0
- package/dist/types/admin/connections/agent-connections-context.d.ts +60 -0
- package/dist/types/admin/connections/agent-connections-types.d.ts +447 -0
- package/dist/types/admin/connections/connection-logos.d.ts +53 -0
- package/dist/types/admin/connections/connection-parts.d.ts +84 -0
- package/dist/types/admin/connections/use-agent-connect.d.ts +25 -0
- package/dist/types/admin/context/CompactionThresholdBanner.d.ts +13 -0
- package/dist/types/admin/context/ContextCompositionPanel.d.ts +27 -0
- package/dist/types/admin/context/ContextSegmentList.d.ts +20 -0
- package/dist/types/admin/context/SentPayloadPanel.d.ts +37 -0
- package/dist/types/admin/context/agent-inspect-context-api.d.ts +53 -0
- package/dist/types/admin/context/agent-inspect-context-types.d.ts +98 -0
- package/dist/types/admin/context/context-composition-grouping.d.ts +78 -0
- package/dist/types/admin/context/context-segment-families.d.ts +18 -0
- package/dist/types/admin/context/context-segment-label-texts.d.ts +19 -0
- package/dist/types/admin/context/context-segment-labels.d.ts +18 -0
- package/dist/types/admin/control-panel/AgentControlPanelScreen.d.ts +71 -0
- package/dist/types/admin/control-panel/BudgetsTab.d.ts +13 -0
- package/dist/types/admin/control-panel/SettingsTab.d.ts +22 -0
- package/dist/types/admin/control-panel/SpacesTab.d.ts +24 -0
- package/dist/types/admin/control-panel/StatisticsTab.d.ts +26 -0
- package/dist/types/admin/control-panel/TimeSeriesChartCard.d.ts +37 -0
- package/dist/types/admin/control-panel/ToolResponseSamplesDrawer.d.ts +22 -0
- package/dist/types/admin/control-panel/agent-control-panel-api.d.ts +104 -0
- package/dist/types/admin/control-panel/agent-control-panel-types.d.ts +241 -0
- package/dist/types/admin/control-panel/budget-meters.d.ts +35 -0
- package/dist/types/admin/control-panel/control-panel-statistics.d.ts +49 -0
- package/dist/types/admin/control-panel/runtime-settings-form.d.ts +44 -0
- package/dist/types/admin/control-panel/time-series-chart.d.ts +54 -0
- package/dist/types/admin/conversations/AgentConversationDetailScreen.d.ts +128 -0
- package/dist/types/admin/conversations/AgentConversationsScreen.d.ts +60 -0
- package/dist/types/admin/conversations/ContextPanel.d.ts +9 -0
- package/dist/types/admin/conversations/ConversationActions.d.ts +32 -0
- package/dist/types/admin/conversations/ConversationTurns.d.ts +56 -0
- package/dist/types/admin/conversations/DebugSwitchBar.d.ts +23 -0
- package/dist/types/admin/conversations/DelegationPanel.d.ts +6 -0
- package/dist/types/admin/conversations/ModelContextDialog.d.ts +31 -0
- package/dist/types/admin/conversations/RequestCompositionRows.d.ts +14 -0
- package/dist/types/admin/conversations/RequestsPanel.d.ts +21 -0
- package/dist/types/admin/conversations/SandboxPanel.d.ts +42 -0
- package/dist/types/admin/conversations/StepDetailDialog.d.ts +19 -0
- package/dist/types/admin/conversations/agent-inspect-api.d.ts +259 -0
- package/dist/types/admin/conversations/agent-inspect-mappers.d.ts +23 -0
- package/dist/types/admin/conversations/agent-inspect-types.d.ts +517 -0
- package/dist/types/admin/conversations/conversation-list-export.d.ts +64 -0
- package/dist/types/admin/conversations/conversation-list-filters.d.ts +59 -0
- package/dist/types/admin/conversations/debug-switches.d.ts +27 -0
- package/dist/types/admin/conversations/delegation-swimlanes.d.ts +78 -0
- package/dist/types/admin/conversations/header-facts.d.ts +23 -0
- package/dist/types/admin/conversations/inspect-format.d.ts +44 -0
- package/dist/types/admin/conversations/inspect-parts.d.ts +42 -0
- package/dist/types/admin/conversations/inspect-scope.d.ts +92 -0
- package/dist/types/admin/conversations/model-call-rows.d.ts +78 -0
- package/dist/types/admin/conversations/step-descriptions.d.ts +43 -0
- package/dist/types/admin/conversations/touched-files-tree.d.ts +47 -0
- package/dist/types/admin/conversations/turn-paging.d.ts +56 -0
- package/dist/types/admin/conversations/turn-segments.d.ts +36 -0
- package/dist/types/admin/conversations/turn-timeline.d.ts +22 -0
- package/dist/types/admin/conversations/use-query-loader.d.ts +8 -0
- package/dist/types/admin/period/AdminPeriodControl.d.ts +15 -0
- package/dist/types/admin/period/admin-period.d.ts +51 -0
- package/dist/types/admin/quality/AgentQualityEvalRunScreen.d.ts +30 -0
- package/dist/types/admin/quality/AgentQualityScreen.d.ts +38 -0
- package/dist/types/admin/quality/SaveAsEvalCaseDialog.d.ts +27 -0
- package/dist/types/admin/quality/agent-quality-api.d.ts +86 -0
- package/dist/types/admin/quality/agent-quality-format.d.ts +52 -0
- package/dist/types/admin/quality/agent-quality-types.d.ts +161 -0
- package/dist/types/admin/schedules/AgentSchedulesPanel.d.ts +43 -0
- package/dist/types/admin/schedules/agent-schedules-api.d.ts +116 -0
- package/dist/types/admin/schedules/agent-schedules-format.d.ts +25 -0
- package/dist/types/admin/schedules/agent-schedules-types.d.ts +113 -0
- package/dist/types/admin/shared/AdminHrefLink.d.ts +13 -0
- package/dist/types/admin/skills/AgentSkillCatalogScreen.d.ts +51 -0
- package/dist/types/admin/skills/SharedBlocksPanel.d.ts +14 -0
- package/dist/types/admin/skills/SkillPurposesPanel.d.ts +16 -0
- package/dist/types/admin/skills/SkillTreeRowView.d.ts +31 -0
- package/dist/types/admin/skills/ToolSchemaDrawer.d.ts +21 -0
- package/dist/types/admin/skills/agent-skill-catalog-api.d.ts +89 -0
- package/dist/types/admin/skills/agent-skill-catalog-types.d.ts +223 -0
- package/dist/types/admin/skills/skill-catalog-colors.d.ts +10 -0
- package/dist/types/admin/skills/skill-catalog-tree.d.ts +159 -0
- package/dist/types/admin/skills/skill-purpose-texts.d.ts +11 -0
- package/dist/types/admin/wire/admin-wire.d.ts +21 -0
- package/dist/types/chat/controller/AgentChatController.d.ts +22 -0
- package/dist/types/chat/controller/turn-initiators.d.ts +21 -0
- package/dist/types/chat/trace/BackgroundTasksList.d.ts +35 -0
- package/dist/types/chat/trace/ChangeSetCard.d.ts +34 -0
- package/dist/types/chat/trace/ChangedFilesPane.d.ts +33 -0
- package/dist/types/chat/trace/ChangedRecordsList.d.ts +34 -0
- package/dist/types/chat/trace/ConsentRequestCard.d.ts +23 -0
- package/dist/types/chat/trace/ContextRing.d.ts +19 -0
- package/dist/types/chat/trace/ConversationChildTrace.d.ts +18 -0
- package/dist/types/chat/trace/ConversationTurnTrace.d.ts +48 -0
- package/dist/types/chat/trace/EntityChip.d.ts +23 -0
- package/dist/types/chat/trace/FileChangesSummary.d.ts +14 -0
- package/dist/types/chat/trace/FileEditBlock.d.ts +42 -0
- package/dist/types/chat/trace/LoadedSkillsDisclosure.d.ts +16 -0
- package/dist/types/chat/trace/QueuedMessageChip.d.ts +17 -0
- package/dist/types/chat/trace/RunStatusLine.d.ts +27 -0
- package/dist/types/chat/trace/StepKindDetails.d.ts +59 -0
- package/dist/types/chat/trace/SubAgentStepGroup.d.ts +53 -0
- package/dist/types/chat/trace/TaskPlanPane.d.ts +31 -0
- package/dist/types/chat/trace/TaskPlanRow.d.ts +28 -0
- package/dist/types/chat/trace/TerminalBlock.d.ts +16 -0
- package/dist/types/chat/trace/ThinkingBlock.d.ts +19 -0
- package/dist/types/chat/trace/ToolStepDetail.d.ts +49 -0
- package/dist/types/chat/trace/ToolStepGroup.d.ts +58 -0
- package/dist/types/chat/trace/ToolStepRow.d.ts +52 -0
- package/dist/types/chat/trace/TraceViewModeSwitch.d.ts +14 -0
- package/dist/types/chat/trace/TurnMetaLine.d.ts +27 -0
- package/dist/types/chat/trace/content-from-unified-diff.d.ts +25 -0
- package/dist/types/chat/trace/conversation-trace-loader.d.ts +133 -0
- package/dist/types/chat/trace/index.d.ts +34 -0
- package/dist/types/chat/trace/parse-unified-diff.d.ts +51 -0
- package/dist/types/chat/trace/task-plan-counts.d.ts +41 -0
- package/dist/types/chat/trace/trace-collect.d.ts +91 -0
- package/dist/types/chat/trace/trace-counts.d.ts +21 -0
- package/dist/types/chat/trace/trace-format.d.ts +73 -0
- package/dist/types/chat/trace/trace-labels.d.ts +60 -0
- package/dist/types/chat/trace/trace-parts.d.ts +63 -0
- package/dist/types/chat/trace/trace-step-focus.d.ts +12 -0
- package/dist/types/chat/trace/trace-types.d.ts +370 -0
- package/dist/types/chat/trace/use-conversation-trace.d.ts +47 -0
- package/dist/types/client/AgentsConversationClient.d.ts +20 -0
- package/dist/types/client/http/agents-http-trace-mappers.d.ts +31 -0
- package/dist/types/client/http/agents-http-trace-wire.d.ts +433 -0
- package/dist/types/contract/conversation-trace.d.ts +594 -0
- package/dist/types/entries/admin.d.ts +85 -0
- package/dist/types/entries/chat.d.ts +3 -1
- package/dist/types/entries/client.d.ts +2 -0
- package/dist/types/entries/contract.d.ts +1 -0
- package/dist/types/provider/components/icon-names.d.ts +4 -2
- package/dist/types/provider/components/types.d.ts +3 -1
- package/dist/types/widgets/DriveFilesConversationWidget/shared/drive-files.d.ts +1 -1
- package/dist/voice.js +3 -3
- package/dist/widgets.js +6 -6
- package/package.json +7 -3
- package/public-api.json +1036 -3
- package/dist/chunks/WebSearchResultsConversationWidget-dEq19U7k.js.map +0 -1
- package/dist/chunks/icon-names-Di6c4zLo.js.map +0 -1
- package/dist/chunks/link-navigation-DRHt6g7U.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { BackgroundTasksList, type BackgroundTask, type BackgroundTasksListProps, type BackgroundTaskType } from "./BackgroundTasksList";
|
|
2
|
+
export { ChangedFilesPane, type ChangedFilesPaneProps } from "./ChangedFilesPane";
|
|
3
|
+
export { ChangedRecordsList, describeChangedFieldName, describeChangedRecord, type ChangedRecordsListProps } from "./ChangedRecordsList";
|
|
4
|
+
export { ChangeSetCard, type ChangeSetCardProps, type ChangeSetChange } from "./ChangeSetCard";
|
|
5
|
+
export { readContentFromUnifiedDiff, type ContentFromUnifiedDiffOptions } from "./content-from-unified-diff";
|
|
6
|
+
export { ContextRing, type ContextRingProps } from "./ContextRing";
|
|
7
|
+
export { ConversationChildTrace, type ConversationChildTraceProps } from "./ConversationChildTrace";
|
|
8
|
+
export { ConversationTraceLoader, getConversationTraceLoader, releaseConversationTraceLoaders, type ConversationTraceClient, type ConversationTraceLoaderOptions, type ConversationTraceState, } from "./conversation-trace-loader";
|
|
9
|
+
export { ConversationTurnTrace, type ConversationTurnTraceClient, type ConversationTurnTracePlan, type ConversationTurnTraceProps, } from "./ConversationTurnTrace";
|
|
10
|
+
export { EntityChip, type EntityChipProps } from "./EntityChip";
|
|
11
|
+
export { FileChangesSummary, type FileChangesSummaryProps } from "./FileChangesSummary";
|
|
12
|
+
export { FileEditBlock, type FileEditBlockProps, type FileEditDiffMode } from "./FileEditBlock";
|
|
13
|
+
export { LoadedSkillsDisclosure, type LoadedSkillsDisclosureProps } from "./LoadedSkillsDisclosure";
|
|
14
|
+
export { buildSideBySideDiffRows, parseUnifiedDiff, type SideBySideDiffRow, type UnifiedDiff, type UnifiedDiffHunk, type UnifiedDiffLine, } from "./parse-unified-diff";
|
|
15
|
+
export { QueuedMessageChip, type QueuedMessageChipProps } from "./QueuedMessageChip";
|
|
16
|
+
export { RunStatusLine, type RunStatusLineProps } from "./RunStatusLine";
|
|
17
|
+
export { buildTaskPlanItems, CompactionDetail, DecisionDetail, describeTraceCompaction, describeTraceDecision, describeTraceDecisionStatus, SignalDetail, SkillLoadDetail, StepFactsLine, TaskPlanStepDetail, WidgetDetail, type CompactionDetailProps, type DecisionDetailProps, type SignalDetailProps, type SkillLoadDetailProps, type StepFactsLineProps, type TaskPlanStepDetailProps, type WidgetDetailProps, } from "./StepKindDetails";
|
|
18
|
+
export { describeSubAgentCounts, SubAgentStepGroup, SubAgentStepRow, type SubAgentStepGroupProps, type SubAgentStepRowProps, type SubAgentWaiting, } from "./SubAgentStepGroup";
|
|
19
|
+
export { TaskPlanPane, type TaskPlanPaneProps } from "./TaskPlanPane";
|
|
20
|
+
export { focusTraceStep, TRACE_HIGHLIGHT_ATTRIBUTE, TRACE_STEP_ANCHOR_ATTRIBUTE, TRACE_TURN_ANCHOR_ATTRIBUTE } from "./trace-step-focus";
|
|
21
|
+
export { TaskPlanRow, type TaskPlanItem, type TaskPlanItemState, type TaskPlanRowProps } from "./TaskPlanRow";
|
|
22
|
+
export { TerminalBlock, type TerminalBlockProps } from "./TerminalBlock";
|
|
23
|
+
export { ThinkingBlock, type ThinkingBlockProps } from "./ThinkingBlock";
|
|
24
|
+
export { ToolStepDetail, TraceCodePanel, type ToolStepDetailProps, type TraceCodePanelProps } from "./ToolStepDetail";
|
|
25
|
+
export { selectVisibleTraceSteps, ToolStepGroup, TraceStepRow, type ToolStepGroupProps, type TraceStepRowProps } from "./ToolStepGroup";
|
|
26
|
+
export { ToolStepRow, type ToolStepRowProps } from "./ToolStepRow";
|
|
27
|
+
export { createTraceFormat, describeTraceModelName, readTraceRunResultText, describeTraceMount, describeTraceSkillCause, formatShortSha256, formatTraceClock, prettyPrintTraceJson, readTraceFileChangeIcon, readTraceFileChangeLetter, readTraceFileChangeWord, readTraceIdInWords, readTraceMoment, readTraceStateOfStatus, readTraceStepIcon, readTraceStepState, readTraceSubAgentState, useTraceFormat, type TraceFormat, } from "./trace-format";
|
|
28
|
+
export { describeTraceBackgroundJob, describeTraceContextSegment, describeTraceDecisionSite, describeTraceSignal, describeTraceWakeCondition, isTraceBackgroundJobLabel, TRACE_CONTEXT_SEGMENT_LABELS, TRACE_DECISION_SITE_LABELS, TRACE_SIGNAL_SOURCE_LABELS, TRACE_SIGNAL_TAG_LABELS, TRACE_WAKE_CONDITION_LABELS, type TraceLabelTranslate, } from "./trace-labels";
|
|
29
|
+
export { readTraceStateLabel, TraceCopyButton, TraceMountChip, TracePath, TraceStateIcon, type TraceCopyButtonProps, type TraceMountChipProps, type TracePathProps, type TraceStateIconProps, } from "./trace-parts";
|
|
30
|
+
export type { TraceCompaction, TraceDecision, TraceDescribeMount, TraceEntityDescription, TraceEntityReference, TraceFileChange, TraceFileChangeType, TraceFileDiffState, TraceHostBindings, TraceLinkComponent, TraceLoadedSkill, TraceLoadedSkillTool, TraceModelCall, TraceMountDescription, TraceSignal, TraceSkillLoad, TraceSkillLoadEntry, TraceStep, TraceStepKind, TraceStepState, TraceSubAgent, TraceSubAgentRun, TraceTaskPlanStepItem, TraceTerminal, TraceToolEffect, TraceTurnTotals, TraceViewMode, TraceWidget, } from "./trace-types";
|
|
31
|
+
export { collectTraceBackgroundTasks, collectTraceChangedRecords, collectTraceFileChangesByTurn, collectTraceTaskPlan, type TraceChangedRecord, type TraceTaskPlanItemSource, type TraceTaskPlanSnapshot, type TraceTurnFileChanges, } from "./trace-collect";
|
|
32
|
+
export { useConversationTraceRevision, useConversationTraces, useConversationTurnTrace, type ConversationTurnTraceRead, type UseConversationTracesOptions, type UseConversationTurnTraceOptions, } from "./use-conversation-trace";
|
|
33
|
+
export { TraceViewModeSwitch, type TraceViewModeSwitchProps } from "./TraceViewModeSwitch";
|
|
34
|
+
export { TurnMetaLine, type TurnMetaLineProps } from "./TurnMetaLine";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** One line of a hunk. */
|
|
2
|
+
export interface UnifiedDiffLine {
|
|
3
|
+
kind: "context" | "added" | "removed";
|
|
4
|
+
/** The line's number in the old file; null for an added line. */
|
|
5
|
+
oldLineNumber: number | null;
|
|
6
|
+
/** The line's number in the new file; null for a removed line. */
|
|
7
|
+
newLineNumber: number | null;
|
|
8
|
+
text: string;
|
|
9
|
+
/** The file does not end with a line break after this line (``). */
|
|
10
|
+
hasNoNewlineAtEnd: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** One hunk: the changed lines around one place of the file. */
|
|
13
|
+
export interface UnifiedDiffHunk {
|
|
14
|
+
/** The hunk's header line as written (`@@ -12,7 +12,9 @@ def build_report(teams):`). */
|
|
15
|
+
header: string;
|
|
16
|
+
oldStart: number;
|
|
17
|
+
oldLineCount: number;
|
|
18
|
+
newStart: number;
|
|
19
|
+
newLineCount: number;
|
|
20
|
+
/** The text after the second `@@` (the enclosing function, by convention). */
|
|
21
|
+
sectionHeading: string;
|
|
22
|
+
lines: UnifiedDiffLine[];
|
|
23
|
+
}
|
|
24
|
+
export interface UnifiedDiff {
|
|
25
|
+
/** The path of the `---` header without its `a/` prefix; null without a header or for `/dev/null`. */
|
|
26
|
+
oldPath: string | null;
|
|
27
|
+
/** The path of the `+++` header without its `b/` prefix; null without a header or for `/dev/null`. */
|
|
28
|
+
newPath: string | null;
|
|
29
|
+
hunks: UnifiedDiffHunk[];
|
|
30
|
+
linesAdded: number;
|
|
31
|
+
linesRemoved: number;
|
|
32
|
+
/** The text says the files are binary (`Binary files … differ`). */
|
|
33
|
+
isBinary: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** A row of the side-by-side view: the old line left, the new line right; a side without a line is null. */
|
|
36
|
+
export interface SideBySideDiffRow {
|
|
37
|
+
left: UnifiedDiffLine | null;
|
|
38
|
+
right: UnifiedDiffLine | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Parses unified diff text of one file into hunks with old and new line numbers. Pure and tolerant: file headers
|
|
42
|
+
* (`diff --git`, `index`, `---`, `+++`) are read or skipped, a hunk header without counts means one line, CRLF line
|
|
43
|
+
* ends are stripped, the `` marker is attached to the line before it, a hunk the text cuts
|
|
44
|
+
* short keeps the lines it has, and text before the first hunk that is no header is ignored. Empty text gives no hunks.
|
|
45
|
+
*/
|
|
46
|
+
export declare const parseUnifiedDiff: (text: string | null | undefined) => UnifiedDiff;
|
|
47
|
+
/**
|
|
48
|
+
* The lines of a hunk as rows of the side-by-side view: a context line stands on both sides, a run of removed lines
|
|
49
|
+
* is paired line by line with the run of added lines that follows it, and what has no partner faces an empty side.
|
|
50
|
+
*/
|
|
51
|
+
export declare const buildSideBySideDiffRows: (lines: UnifiedDiffLine[]) => SideBySideDiffRow[];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { TraceFormat } from "./trace-format";
|
|
2
|
+
/** How many items of a task plan are done, blocked and open; the three add up to `total`. */
|
|
3
|
+
export interface TaskPlanCounts {
|
|
4
|
+
total: number;
|
|
5
|
+
/** Done or does not apply. */
|
|
6
|
+
done: number;
|
|
7
|
+
blocked: number;
|
|
8
|
+
/** Neither done nor blocked. */
|
|
9
|
+
open: number;
|
|
10
|
+
}
|
|
11
|
+
/** What a plan names about its counts: the server's (the trace step, the inspect header) and, where known, its items. */
|
|
12
|
+
export interface TaskPlanCountSource {
|
|
13
|
+
itemCount?: number | null;
|
|
14
|
+
openItemCount?: number | null;
|
|
15
|
+
doneItemCount?: number | null;
|
|
16
|
+
blockedItemCount?: number | null;
|
|
17
|
+
/** The plan's items; nested items carry a `depth` above 0 and are not counted (the counts are of top-level items). */
|
|
18
|
+
items?: readonly {
|
|
19
|
+
status?: string | null;
|
|
20
|
+
depth?: number | null;
|
|
21
|
+
}[] | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The counts of a task plan. The server's done and blocked counts win; a server that names only the open items counts
|
|
25
|
+
* blocked ones neither open nor done, so without its done count the items are counted (top-level ones by their
|
|
26
|
+
* status), and without items the plan is read as "total minus open done".
|
|
27
|
+
*/
|
|
28
|
+
export declare const readTaskPlanCounts: (source: TaskPlanCountSource) => TaskPlanCounts;
|
|
29
|
+
/**
|
|
30
|
+
* The progress of a plan in words: "4 of 5 done", with " · 1 blocked" when items are blocked. The count words ask the
|
|
31
|
+
* plural category as their context (`one` / `other`), as the other counted texts of the trace do.
|
|
32
|
+
*/
|
|
33
|
+
export declare const describeTaskPlanProgress: (counts: TaskPlanCounts, format: Pick<TraceFormat, "number">) => string;
|
|
34
|
+
/** The counts a `TASK_PLAN` step of the trace names (its server counts and its items). */
|
|
35
|
+
export declare const readTaskPlanCountsOfStep: (step: {
|
|
36
|
+
taskPlanItemCount?: number | null;
|
|
37
|
+
taskPlanOpenItemCount?: number | null;
|
|
38
|
+
taskPlanDoneItemCount?: number | null;
|
|
39
|
+
taskPlanBlockedItemCount?: number | null;
|
|
40
|
+
taskPlanItems?: TaskPlanCountSource["items"];
|
|
41
|
+
}) => TaskPlanCounts;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { ConversationFileChange, ConversationTraceEntityReference, ConversationTraceRecordChange, ConversationTraceTaskPlanItem, ConversationTurnTrace } from "../../contract/conversation-trace";
|
|
2
|
+
import type { BackgroundTask } from "./BackgroundTasksList";
|
|
3
|
+
import type { TraceStepState } from "./trace-types";
|
|
4
|
+
/** The file changes of one turn. */
|
|
5
|
+
export interface TraceTurnFileChanges {
|
|
6
|
+
turnNumber: number;
|
|
7
|
+
turnMessageId: number | null;
|
|
8
|
+
startedAt: string | null;
|
|
9
|
+
/** The changes in the order the turn made them. */
|
|
10
|
+
fileChanges: ConversationFileChange[];
|
|
11
|
+
/** Distinct paths the turn changed. */
|
|
12
|
+
fileCount: number;
|
|
13
|
+
linesAdded: number;
|
|
14
|
+
linesRemoved: number;
|
|
15
|
+
}
|
|
16
|
+
/** The turns that changed files, oldest first, each with its changes and their counts. */
|
|
17
|
+
export declare const collectTraceFileChangesByTurn: (turns: ConversationTurnTrace[]) => TraceTurnFileChanges[];
|
|
18
|
+
/**
|
|
19
|
+
* What the conversation has running beside its turns, newest first: every sub-agent (a sub-agent that ran again shows
|
|
20
|
+
* once, at its newest state) and every shell command that runs in the background or still runs.
|
|
21
|
+
*/
|
|
22
|
+
export declare const collectTraceBackgroundTasks: (turns: ConversationTurnTrace[]) => BackgroundTask[];
|
|
23
|
+
/** The task plan of a conversation as its newest plan update left it. */
|
|
24
|
+
export interface TraceTaskPlanSnapshot {
|
|
25
|
+
/** The turn of the plan update, and the message that started it. */
|
|
26
|
+
turnNumber: number;
|
|
27
|
+
turnMessageId: number | null;
|
|
28
|
+
/** The key of the plan update's step in its turn. */
|
|
29
|
+
stepKey: string;
|
|
30
|
+
title: string | null;
|
|
31
|
+
/** The items in the plan's order; empty when the trace names only the counts. */
|
|
32
|
+
items: ConversationTraceTaskPlanItem[];
|
|
33
|
+
itemCount: number;
|
|
34
|
+
/** Top-level items that are done or do not apply; a blocked item is never one. */
|
|
35
|
+
doneCount: number;
|
|
36
|
+
/** Top-level items that are blocked. */
|
|
37
|
+
blockedCount: number;
|
|
38
|
+
/** When the plan was last updated (a server date-time). */
|
|
39
|
+
updatedAt: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Per item key: the plan update that last changed the item (it appeared, or its status or title changed). An item
|
|
42
|
+
* whose change lies before the loaded turns has none.
|
|
43
|
+
*/
|
|
44
|
+
itemSources: Readonly<Record<string, TraceTaskPlanItemSource>>;
|
|
45
|
+
}
|
|
46
|
+
/** The plan update (a `TASK_PLAN` step) that last changed an item of the plan: where the trace shows it. */
|
|
47
|
+
export interface TraceTaskPlanItemSource {
|
|
48
|
+
turnNumber: number;
|
|
49
|
+
turnMessageId: number | null;
|
|
50
|
+
/** The key of the step in its turn. */
|
|
51
|
+
stepKey: string;
|
|
52
|
+
/** The id the server gives the step (the anchor of its row); null when it sends none. */
|
|
53
|
+
stepId: string | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The conversation's task plan after its newest plan update (the last `TASK_PLAN` step of the turns that names a plan);
|
|
57
|
+
* null for a conversation without a plan among the turns. The counts are the server's where it sends them, else those
|
|
58
|
+
* of the items (`readTaskPlanCounts`).
|
|
59
|
+
*/
|
|
60
|
+
export declare const collectTraceTaskPlan: (turns: ConversationTurnTrace[]) => TraceTaskPlanSnapshot | null;
|
|
61
|
+
/** A tool call that changed or deleted records. */
|
|
62
|
+
export interface TraceChangedRecord {
|
|
63
|
+
/** Unique among the records of the turns: the turn's number and the step's key. */
|
|
64
|
+
key: string;
|
|
65
|
+
turnNumber: number;
|
|
66
|
+
turnMessageId: number | null;
|
|
67
|
+
/** The id the server gives the step; null when it sends none. */
|
|
68
|
+
stepId: string | null;
|
|
69
|
+
messageId: number | null;
|
|
70
|
+
toolName: string | null;
|
|
71
|
+
toolNameInWords: string | null;
|
|
72
|
+
/** The narrated line of the step, as the owner read it. */
|
|
73
|
+
line: string | null;
|
|
74
|
+
effect: "WRITE" | "DELETE";
|
|
75
|
+
/** Where the call stands: `done`, `running`, `failed` (nothing was changed), or `waiting` for the owner's approval. */
|
|
76
|
+
state: TraceStepState;
|
|
77
|
+
startedAt: string | null;
|
|
78
|
+
/** The records the call's arguments name by id. */
|
|
79
|
+
entityReferences: ConversationTraceEntityReference[];
|
|
80
|
+
/** The records the call created, changed or deleted, each field before and after (captured at its writes). */
|
|
81
|
+
recordChanges: ConversationTraceRecordChange[];
|
|
82
|
+
/** Changed records left out beyond the server's cap. */
|
|
83
|
+
omittedRecordChangeCount: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The tool calls of the turns that changed or deleted records (the effect the tool declares: `WRITE`, `DELETE`),
|
|
87
|
+
* newest first. A call a gate refused never ran and is left out; a call that failed or waits for the owner's approval
|
|
88
|
+
* stays, with its state. What a call changed comes with it: each record with its fields before and after the call,
|
|
89
|
+
* as the server captured them at the call's own write statements (empty for a call stored before the capture).
|
|
90
|
+
*/
|
|
91
|
+
export declare const collectTraceChangedRecords: (turns: ConversationTurnTrace[]) => TraceChangedRecord[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TraceFormat } from "./trace-format";
|
|
2
|
+
type CountFormat = Pick<TraceFormat, "number">;
|
|
3
|
+
/** "1 step" / "12 steps". */
|
|
4
|
+
export declare const describeStepCount: (count: number, format: CountFormat) => string;
|
|
5
|
+
/** "1 file" / "3 files". */
|
|
6
|
+
export declare const describeFileCount: (count: number, format: CountFormat) => string;
|
|
7
|
+
/** "1 command" / "4 commands". */
|
|
8
|
+
export declare const describeCommandCount: (count: number, format: CountFormat) => string;
|
|
9
|
+
/** "1 sub-agent" / "3 sub-agents". */
|
|
10
|
+
export declare const describeSubAgentCount: (count: number, format: CountFormat) => string;
|
|
11
|
+
/** "1 skill loaded" / "5 skills loaded". */
|
|
12
|
+
export declare const describeLoadedSkillCount: (count: number, format: CountFormat) => string;
|
|
13
|
+
/** "1 tool" / "6 tools". */
|
|
14
|
+
export declare const describeToolCount: (count: number, format: CountFormat) => string;
|
|
15
|
+
/** "1 message" / "14 messages". */
|
|
16
|
+
export declare const describeMessageCount: (count: number, format: CountFormat) => string;
|
|
17
|
+
/** "… 1 more line" / "… 8 more lines" (under a shortened diff). */
|
|
18
|
+
export declare const describeHiddenLineCount: (count: number, format: CountFormat) => string;
|
|
19
|
+
/** "Show 1 more line" / "Show 8 more lines" (under a shortened output). */
|
|
20
|
+
export declare const describeShowMoreLines: (count: number, format: CountFormat) => string;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { AgentsIconName } from "../../provider/components";
|
|
2
|
+
import type { TraceMountDescription, TraceDescribeMount, TraceStep, TraceStepState, TraceSubAgent } from "./trace-types";
|
|
3
|
+
/**
|
|
4
|
+
* A date-time of the server as a moment: the server writes UTC without a zone (`2026-11-28 15:31:02`), which a
|
|
5
|
+
* browser would read as local time. A value that names its zone is read as it is. Null for no or an unreadable value.
|
|
6
|
+
*/
|
|
7
|
+
export declare const readTraceMoment: (value: string | null | undefined) => number | null;
|
|
8
|
+
/** `m:ss` of a running clock (`0:42`, `12:05`). */
|
|
9
|
+
export declare const formatTraceClock: (elapsedMs: number) => string;
|
|
10
|
+
/** The formatters of one locale. */
|
|
11
|
+
export interface TraceFormat {
|
|
12
|
+
/** A finished duration: `420 ms`, `4.0 s`, `16.8 s`, `38 s`, `2:05 min`. */
|
|
13
|
+
duration: (durationMs: number) => string;
|
|
14
|
+
/** A count in short form: `812`, `1.2K`, `219K`. */
|
|
15
|
+
count: (value: number) => string;
|
|
16
|
+
/** A whole number with the locale's grouping. */
|
|
17
|
+
number: (value: number) => string;
|
|
18
|
+
/** A file size: `812 B`, `2.1 KB`, `184 KB`, `3.4 MB`. */
|
|
19
|
+
bytes: (sizeInBytes: number) => string;
|
|
20
|
+
/** A cost in US dollars: `$0.022`, `$1.40`. */
|
|
21
|
+
cost: (costInUsd: number) => string;
|
|
22
|
+
/** A clock time of a moment (`15:42`). */
|
|
23
|
+
time: (moment: number) => string;
|
|
24
|
+
}
|
|
25
|
+
/** Builds the formatters of a locale (undefined: the runtime's). */
|
|
26
|
+
export declare const createTraceFormat: (locale?: string | null, timeZone?: string | null) => TraceFormat;
|
|
27
|
+
/** The formatters of the owner's locale (`AgentsEnvironment.useOwnerSettings`), else of the runtime's. */
|
|
28
|
+
export declare const useTraceFormat: () => TraceFormat;
|
|
29
|
+
/**
|
|
30
|
+
* A stored model name in words, as the server words its `modelLabel`: the provider prefix dropped and underscores as
|
|
31
|
+
* spaces (`OPENAI.GPT6_LUNA` reads "GPT6 LUNA"). For the places where the server sends only the name; null for none.
|
|
32
|
+
*/
|
|
33
|
+
export declare const describeTraceModelName: (modelName: string | null | undefined) => string | null;
|
|
34
|
+
/**
|
|
35
|
+
* A reasoning effort the server stores as a machine value (`low`, `medium`, …) in the reader's language; an effort the
|
|
36
|
+
* package does not know stays as it is. Null for none.
|
|
37
|
+
*/
|
|
38
|
+
export declare const describeTraceEffort: (effort: string | null | undefined) => string | null;
|
|
39
|
+
/** The first characters of a sha256, as a file block shows it (`9f2c…a41e`). */
|
|
40
|
+
export declare const formatShortSha256: (sha256: string | null | undefined) => string | null;
|
|
41
|
+
/** A stored status as a row's state; a status the blocks do not know reads as done. */
|
|
42
|
+
export declare const readTraceStateOfStatus: (status: string | null | undefined) => TraceStepState;
|
|
43
|
+
/** Where a step stands: held for the owner's consent waits, an error step failed, else its status says. */
|
|
44
|
+
export declare const readTraceStepState: (step: Pick<TraceStep, "kind" | "status" | "isHeldForConsent" | "isRefused" | "terminal">) => TraceStepState;
|
|
45
|
+
/** Where a sub-agent stands: the status of its newest run. */
|
|
46
|
+
export declare const readTraceSubAgentState: (subAgent: Pick<TraceSubAgent, "status" | "runs">) => TraceStepState;
|
|
47
|
+
/** The lead icon of a step's row. */
|
|
48
|
+
export declare const readTraceStepIcon: (step: TraceStep) => AgentsIconName;
|
|
49
|
+
/** The icon of a file operation. */
|
|
50
|
+
export declare const readTraceFileChangeIcon: (changeType: string | null) => AgentsIconName;
|
|
51
|
+
/** The one-letter mark of a file operation in a file list (A, M, D, R, and + for a new folder). */
|
|
52
|
+
export declare const readTraceFileChangeLetter: (changeType: string | null | undefined) => string;
|
|
53
|
+
/** The word of a file operation. */
|
|
54
|
+
export declare const readTraceFileChangeWord: (changeType: string | null | undefined) => string;
|
|
55
|
+
/** The label and tint of a mount: the host's description, else the mount's name with the tint of its kind. */
|
|
56
|
+
export declare const describeTraceMount: (describeMount: TraceDescribeMount | undefined, mountKind: string | null | undefined, mountName: string | null | undefined, driveSpaceId: number | null | undefined) => TraceMountDescription | null;
|
|
57
|
+
/** The last segment of a path. */
|
|
58
|
+
export declare const readTraceFileName: (path: string) => string;
|
|
59
|
+
/** JSON text indented for reading; text that is not JSON stays as it is. */
|
|
60
|
+
export declare const prettyPrintTraceJson: (text: string) => string;
|
|
61
|
+
/** A server id in words: `skillPreload` reads "skill preload", `DECISION_MODEL` "decision model". */
|
|
62
|
+
export declare const readTraceIdInWords: (id: string) => string;
|
|
63
|
+
/**
|
|
64
|
+
* What loaded a skill, in words. The server names a cause in capitals (`DECISION_MODEL`) or in camel case
|
|
65
|
+
* (`decisionModel`); a cause the blocks do not know reads as its id in words.
|
|
66
|
+
*/
|
|
67
|
+
export declare const describeTraceSkillCause: (cause: string | null | undefined) => string | null;
|
|
68
|
+
/**
|
|
69
|
+
* The result of a sub-agent's run as text. A run that only executed one tool (a background tool job) stores the
|
|
70
|
+
* tool's answer as it came — a JSON object with `content: [{ type: "text", text }]` — and its texts are what a reader
|
|
71
|
+
* wants; every other result is returned as it is. Null for no result.
|
|
72
|
+
*/
|
|
73
|
+
export declare const readTraceRunResultText: (result: string | null | undefined) => string | null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A translate function of the caller's text store: the chat's `translateText`, or an admin screen's
|
|
3
|
+
* `(text, replacements) => t(text, { replacements })`. Default of every function below: the chat's.
|
|
4
|
+
*/
|
|
5
|
+
export type TraceLabelTranslate = (text: string, replacements?: Record<string, string | number>) => string;
|
|
6
|
+
/** The decision sites of the loop and the recorded event kinds that are told like a decision, by their stored id. */
|
|
7
|
+
export declare const TRACE_DECISION_SITE_LABELS: Readonly<Record<string, string>>;
|
|
8
|
+
/**
|
|
9
|
+
* The name of a decision site (`decision.site`) in the reader's language: the key of a known site, else the server's
|
|
10
|
+
* label (`decision.siteLabel`), else the id in words. Null for no site and no label.
|
|
11
|
+
*/
|
|
12
|
+
export declare const describeTraceDecisionSite: (site: string | null | undefined, fallbackLabel?: string | null, translate?: TraceLabelTranslate) => string | null;
|
|
13
|
+
/** The tags of a platform note (`[SIGNAL:<tag>]`), which the server sends as the kind of the signal. */
|
|
14
|
+
export declare const TRACE_SIGNAL_TAG_LABELS: Readonly<Record<string, string>>;
|
|
15
|
+
/** The signal sources of the package, by their stored value. */
|
|
16
|
+
export declare const TRACE_SIGNAL_SOURCE_LABELS: Readonly<Record<string, string>>;
|
|
17
|
+
/**
|
|
18
|
+
* The name of a signal in the reader's language. `kind` is what the server sends as the kind of a SIGNAL step: the
|
|
19
|
+
* tag of a platform note (`plan`, `client-context`), else the source in words; `source` is the stored source
|
|
20
|
+
* (`SUB_AGENT_RUN_ENDED`). The tag names the signal when it is known, then the source, then the server's label, then
|
|
21
|
+
* the kind as it came. Null when nothing names the signal. A row shows it after the word of the step ("Signal · …").
|
|
22
|
+
*/
|
|
23
|
+
export declare const describeTraceSignal: (kind: string | null | undefined, source: string | null | undefined, fallbackLabel?: string | null, translate?: TraceLabelTranslate) => string | null;
|
|
24
|
+
/** When a delegation wakes its conversation, by the stored condition, as a whole sentence. */
|
|
25
|
+
export declare const TRACE_WAKE_CONDITION_LABELS: Readonly<Record<string, string>>;
|
|
26
|
+
/**
|
|
27
|
+
* When a delegation wakes its conversation (`ALL`, `ANY`, `QUORUM`, `BACKGROUND`), as a whole sentence in the reader's
|
|
28
|
+
* language; a condition this file does not know reads as the server wrote it. Null for no condition.
|
|
29
|
+
*/
|
|
30
|
+
export declare const describeTraceWakeCondition: (value: string | null | undefined, translate?: TraceLabelTranslate) => string | null;
|
|
31
|
+
/** The fixed part of the label of every context segment type, by the stored type. */
|
|
32
|
+
export declare const TRACE_CONTEXT_SEGMENT_LABELS: Readonly<Record<string, string>>;
|
|
33
|
+
/**
|
|
34
|
+
* The name of a context segment type in the reader's language: the key of a known type, else the server's label, else
|
|
35
|
+
* the type as it came. The provenance a server label adds (the purpose, the skills, the compaction nodes) is not part
|
|
36
|
+
* of it: a caller that shows it adds it beside the name. Null for no type and no label.
|
|
37
|
+
*/
|
|
38
|
+
export declare const describeTraceContextSegment: (type: string | null | undefined, fallbackLabel?: string | null, translate?: TraceLabelTranslate) => string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The label of a background job in the reader's language. `toolName` is the tool the job runs, or the label the server
|
|
41
|
+
* wrote for the job ("Background job: run tool Common.Worlds.list"): the tool's name is read out of it. A job without
|
|
42
|
+
* a tool reads "Background job". For a job of another operation the server's label names it ("Background job:
|
|
43
|
+
* rebuildIndex"): the operation's name follows the translated words.
|
|
44
|
+
*/
|
|
45
|
+
export declare const describeTraceBackgroundJob: (toolName: string | null | undefined, translate?: TraceLabelTranslate) => string;
|
|
46
|
+
/** True for a label the server wrote for a background job ("Background job: …"). */
|
|
47
|
+
export declare const isTraceBackgroundJobLabel: (label: string | null | undefined) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The note of a SIGNAL step in the reader's words, for the notes whose form the package writes: the owner's messages
|
|
50
|
+
* handed to a running turn (the owner's own words follow), and a sub-agent's run end. Null for every other note: the
|
|
51
|
+
* caller shows the server's first line.
|
|
52
|
+
*/
|
|
53
|
+
export declare const describeTraceSignalText: (text: string | null | undefined, translate?: TraceLabelTranslate) => string | null;
|
|
54
|
+
/**
|
|
55
|
+
* A decision's summary (`decision.resultSummary`) in the reader's words, for every form the package writes: the head
|
|
56
|
+
* through its key, what follows it (` · P 0.95`, ` · pass 2 under …`, ` (not told to the model)`) with its words
|
|
57
|
+
* translated and its values (probabilities, reason ids) as they came. Skill, tool, widget and language names stay as
|
|
58
|
+
* the server wrote them. Null for a summary in another form: the caller shows it as it came.
|
|
59
|
+
*/
|
|
60
|
+
export declare const describeTraceDecisionSummary: (summary: string | null | undefined, translate?: TraceLabelTranslate) => string | null;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
import type { TraceDescribeMount, TraceLinkComponent, TraceStepState } from "./trace-types";
|
|
3
|
+
/** The word of a state ("Running", "Done", …), for a label or a badge. */
|
|
4
|
+
export declare const readTraceStateLabel: (state: TraceStepState) => string;
|
|
5
|
+
export interface TraceStateIconProps {
|
|
6
|
+
state: TraceStepState;
|
|
7
|
+
/** Edge length in px. Default 15. */
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
/** The icon of a state: a spinner while running, a check, a cross, a clock; it names its state to assistive technology. */
|
|
11
|
+
export declare const TraceStateIcon: (props: TraceStateIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/** The chevron of a disclosure: right while closed, down while open. */
|
|
13
|
+
export declare const TraceChevron: (props: {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* The open state of a disclosure that a caller may control: `isOpen` wins when given, else the state starts at
|
|
19
|
+
* `defaultOpen` and the block keeps it. `onOpenChange` hears every toggle.
|
|
20
|
+
*/
|
|
21
|
+
export declare const useTraceDisclosure: (isOpen: boolean | undefined, defaultOpen: boolean, onOpenChange: ((isOpen: boolean) => void) | undefined) => [boolean, () => void];
|
|
22
|
+
export interface TraceLinkProps {
|
|
23
|
+
/** Where the link leads; with it the link is the host's link component or an anchor. */
|
|
24
|
+
href?: string | null;
|
|
25
|
+
/** What a click does; without `href` the link is a button. */
|
|
26
|
+
onClick?: (event: MouseEvent) => void;
|
|
27
|
+
linkComponent?: TraceLinkComponent;
|
|
28
|
+
className?: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
/** A link of a trace block: the host's link for a route, a plain anchor without one, a button for a callback. */
|
|
33
|
+
export declare const TraceLink: (props: TraceLinkProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
34
|
+
export interface TracePathProps {
|
|
35
|
+
path: string;
|
|
36
|
+
/** Monospaced, as in a file list. */
|
|
37
|
+
isMonospaced?: boolean;
|
|
38
|
+
/** Struck through (a deleted file). */
|
|
39
|
+
isRemoved?: boolean;
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
/** A file path on one line that keeps its file name when it is too long: the folders give way first. */
|
|
43
|
+
export declare const TracePath: (props: TracePathProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export interface TraceMountChipProps {
|
|
45
|
+
mountKind?: string | null;
|
|
46
|
+
mountName?: string | null;
|
|
47
|
+
driveSpaceId?: number | null;
|
|
48
|
+
describeMount?: TraceDescribeMount;
|
|
49
|
+
}
|
|
50
|
+
/** The chip that names the mount of a file: the host's label and tint, else the mount's name. Nothing without a label. */
|
|
51
|
+
export declare const TraceMountChip: (props: TraceMountChipProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
52
|
+
/** Writes text to the clipboard; false when the browser refuses (no permission, no secure context). */
|
|
53
|
+
export declare const copyTraceText: (text: string) => Promise<boolean>;
|
|
54
|
+
export interface TraceCopyButtonProps {
|
|
55
|
+
/** The text to copy. */
|
|
56
|
+
text: string;
|
|
57
|
+
/** What the button copies, for assistive technology ("Copy arguments"). */
|
|
58
|
+
label: string;
|
|
59
|
+
}
|
|
60
|
+
/** A small copy button that says "Copied" for a moment after a copy. */
|
|
61
|
+
export declare const TraceCopyButton: (props: TraceCopyButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
/** The current moment, ticking once a second while `isTicking` (a running clock); it stands still otherwise. */
|
|
63
|
+
export declare const useTraceNow: (isTicking: boolean) => number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TraceTaskPlanItemSource } from "./trace-collect";
|
|
2
|
+
/** The attribute a step row carries with the server's id of its step: the anchor a plan item scrolls to. */
|
|
3
|
+
export declare const TRACE_STEP_ANCHOR_ATTRIBUTE = "data-trace-step-anchor";
|
|
4
|
+
/** The attribute a turn's trace carries with its turn number: the fallback where the step's row is not drawn. */
|
|
5
|
+
export declare const TRACE_TURN_ANCHOR_ATTRIBUTE = "data-trace-turn-number";
|
|
6
|
+
/** Set for a moment on the row (or turn) a plan item pointed to. */
|
|
7
|
+
export declare const TRACE_HIGHLIGHT_ATTRIBUTE = "data-trace-highlighted";
|
|
8
|
+
/**
|
|
9
|
+
* Scrolls to the row of the step that last changed a plan item and highlights it for a moment; where the view does not
|
|
10
|
+
* draw the step (the summary view folds it away), to its turn. Answers whether anything was found.
|
|
11
|
+
*/
|
|
12
|
+
export declare const focusTraceStep: (root: ParentNode, source: TraceTaskPlanItemSource) => boolean;
|