@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,433 @@
|
|
|
1
|
+
import type { WireSet } from "./agents-http-wire";
|
|
2
|
+
/**
|
|
3
|
+
* The wire shapes of the module's trace routes (`GET …/{id}/trace`, `GET …/{id}/messages/{messageId}/contextComposition`,
|
|
4
|
+
* `GET …/fileChanges/{fileChangeId}/diff`): the value objects the routes serialize, as far as the HTTP binding reads
|
|
5
|
+
* them. Every field is optional on the wire and the mappers (`agents-http-trace-mappers.ts`) default each one; a field
|
|
6
|
+
* the binding does not know is ignored.
|
|
7
|
+
*/
|
|
8
|
+
/** `AgentTraceEntityReference`. */
|
|
9
|
+
export interface WireTraceEntityReference {
|
|
10
|
+
argumentName?: string | null;
|
|
11
|
+
id?: number | null;
|
|
12
|
+
}
|
|
13
|
+
/** `ToolCallFieldChange`. */
|
|
14
|
+
export interface WireTraceFieldChange {
|
|
15
|
+
fieldName?: string | null;
|
|
16
|
+
before?: string | null;
|
|
17
|
+
after?: string | null;
|
|
18
|
+
isCut?: boolean | null;
|
|
19
|
+
}
|
|
20
|
+
/** `ToolCallRecordChange`. */
|
|
21
|
+
export interface WireTraceRecordChange {
|
|
22
|
+
operation?: string | null;
|
|
23
|
+
tableName?: string | null;
|
|
24
|
+
recordId?: number | null;
|
|
25
|
+
fieldChanges?: WireSet<WireTraceFieldChange> | null;
|
|
26
|
+
omittedFieldCount?: number | null;
|
|
27
|
+
}
|
|
28
|
+
/** `ToolCallRecordChanges`: an object set of the changed records with the count of the left-out ones. */
|
|
29
|
+
export interface WireTraceRecordChanges {
|
|
30
|
+
elements?: WireTraceRecordChange[] | null;
|
|
31
|
+
omittedRecordCount?: number | null;
|
|
32
|
+
}
|
|
33
|
+
/** `AgentTraceModelCall`. */
|
|
34
|
+
export interface WireTraceModelCall {
|
|
35
|
+
modelName?: string | null;
|
|
36
|
+
reasoningEffort?: string | null;
|
|
37
|
+
inputTokens?: number | null;
|
|
38
|
+
outputTokens?: number | null;
|
|
39
|
+
cachedInputTokens?: number | null;
|
|
40
|
+
cachePercent?: number | null;
|
|
41
|
+
costInUSD?: number | null;
|
|
42
|
+
costInUsd?: number | null;
|
|
43
|
+
reasoningTokens?: number | null;
|
|
44
|
+
cacheWriteTokens?: number | null;
|
|
45
|
+
wireApi?: string | null;
|
|
46
|
+
forceToolChoice?: string | null;
|
|
47
|
+
forcedToolChoice?: string | null;
|
|
48
|
+
providerCallMs?: number | null;
|
|
49
|
+
loopOverheadMs?: number | null;
|
|
50
|
+
hasStoredPayload?: boolean | null;
|
|
51
|
+
contextMessageId?: number | null;
|
|
52
|
+
callNumberInTurn?: number | null;
|
|
53
|
+
toolNames?: WireSet<string> | null;
|
|
54
|
+
stopReason?: string | null;
|
|
55
|
+
toolDelivery?: string | null;
|
|
56
|
+
retryCount?: number | null;
|
|
57
|
+
}
|
|
58
|
+
/** `AgentTraceDecision`. */
|
|
59
|
+
export interface WireTraceDecision {
|
|
60
|
+
site?: string | null;
|
|
61
|
+
siteLabel?: string | null;
|
|
62
|
+
subject?: string | null;
|
|
63
|
+
engine?: string | null;
|
|
64
|
+
engineLabel?: string | null;
|
|
65
|
+
decidedBy?: string | null;
|
|
66
|
+
mode?: string | null;
|
|
67
|
+
status?: string | null;
|
|
68
|
+
isApplied?: boolean | null;
|
|
69
|
+
resultSummary?: string | null;
|
|
70
|
+
modelName?: string | null;
|
|
71
|
+
modelVersion?: string | null;
|
|
72
|
+
sharedRequestDecisionCount?: number | null;
|
|
73
|
+
durationMs?: number | null;
|
|
74
|
+
confidence?: number | null;
|
|
75
|
+
probabilities?: Record<string, unknown> | null;
|
|
76
|
+
fallbackReason?: string | null;
|
|
77
|
+
skipReason?: string | null;
|
|
78
|
+
inputJson?: string | null;
|
|
79
|
+
isInputCut?: boolean | null;
|
|
80
|
+
questionsJson?: string | null;
|
|
81
|
+
isQuestionsCut?: boolean | null;
|
|
82
|
+
outputJson?: string | null;
|
|
83
|
+
isOutputCut?: boolean | null;
|
|
84
|
+
outcomeJson?: string | null;
|
|
85
|
+
isOutcomeCut?: boolean | null;
|
|
86
|
+
}
|
|
87
|
+
/** `AgentTraceCompaction`. */
|
|
88
|
+
export interface WireTraceCompaction {
|
|
89
|
+
level?: number | null;
|
|
90
|
+
coveredFromMessageIndex?: number | null;
|
|
91
|
+
coveredToMessageIndex?: number | null;
|
|
92
|
+
coveredMessageCount?: number | null;
|
|
93
|
+
coveredTokens?: number | null;
|
|
94
|
+
summaryTokens?: number | null;
|
|
95
|
+
compressionPercent?: number | null;
|
|
96
|
+
modelName?: string | null;
|
|
97
|
+
summaryText?: string | null;
|
|
98
|
+
isSummaryCut?: boolean | null;
|
|
99
|
+
preservedFactsJson?: string | null;
|
|
100
|
+
}
|
|
101
|
+
/** `AgentTraceSkillLoadEntry`. */
|
|
102
|
+
export interface WireTraceSkillLoadEntry {
|
|
103
|
+
name?: string | null;
|
|
104
|
+
type?: string | null;
|
|
105
|
+
outcome?: string | null;
|
|
106
|
+
cause?: string | null;
|
|
107
|
+
residentTokens?: number | null;
|
|
108
|
+
residentTokensWithTools?: number | null;
|
|
109
|
+
tools?: WireSet<WireTraceLoadedSkillTool> | null;
|
|
110
|
+
}
|
|
111
|
+
/** `AgentTraceSkillLoad`. */
|
|
112
|
+
export interface WireTraceSkillLoad {
|
|
113
|
+
cause?: string | null;
|
|
114
|
+
loadedCount?: number | null;
|
|
115
|
+
notLoadedCount?: number | null;
|
|
116
|
+
requestedNames?: WireSet<string> | null;
|
|
117
|
+
skills?: WireSet<WireTraceSkillLoadEntry> | null;
|
|
118
|
+
notLoadedText?: string | null;
|
|
119
|
+
}
|
|
120
|
+
/** `AgentTraceTaskPlanItem`. */
|
|
121
|
+
export interface WireTraceTaskPlanItem {
|
|
122
|
+
key?: string | null;
|
|
123
|
+
numberPath?: string | null;
|
|
124
|
+
depth?: number | null;
|
|
125
|
+
title?: string | null;
|
|
126
|
+
status?: string | null;
|
|
127
|
+
}
|
|
128
|
+
/** `AgentTraceLoadedSkillTool`. */
|
|
129
|
+
export interface WireTraceLoadedSkillTool {
|
|
130
|
+
name?: string | null;
|
|
131
|
+
residentTokens?: number | null;
|
|
132
|
+
usageCount?: number | null;
|
|
133
|
+
}
|
|
134
|
+
/** `AgentTraceLoadedSkill`. */
|
|
135
|
+
export interface WireTraceLoadedSkill {
|
|
136
|
+
name?: string | null;
|
|
137
|
+
residentTokens?: number | null;
|
|
138
|
+
isNew?: boolean | null;
|
|
139
|
+
isAlwaysLoaded?: boolean | null;
|
|
140
|
+
cause?: string | null;
|
|
141
|
+
source?: string | null;
|
|
142
|
+
tools?: WireSet<WireTraceLoadedSkillTool> | null;
|
|
143
|
+
}
|
|
144
|
+
/** `AgentTraceTerminal`. */
|
|
145
|
+
export interface WireTraceTerminal {
|
|
146
|
+
command?: string | null;
|
|
147
|
+
cwd?: string | null;
|
|
148
|
+
exitCode?: number | null;
|
|
149
|
+
durationMs?: number | null;
|
|
150
|
+
output?: string | null;
|
|
151
|
+
errorOutput?: string | null;
|
|
152
|
+
isTruncated?: boolean | null;
|
|
153
|
+
isBackground?: boolean | null;
|
|
154
|
+
timedOut?: boolean | null;
|
|
155
|
+
}
|
|
156
|
+
/** `AgentTraceFileChange`. */
|
|
157
|
+
export interface WireTraceFileChange {
|
|
158
|
+
fileChangeId?: number | null;
|
|
159
|
+
id?: number | null;
|
|
160
|
+
source?: string | null;
|
|
161
|
+
mountKind?: string | null;
|
|
162
|
+
mountName?: string | null;
|
|
163
|
+
driveSpaceId?: number | null;
|
|
164
|
+
path?: string | null;
|
|
165
|
+
previousPath?: string | null;
|
|
166
|
+
changeType?: string | null;
|
|
167
|
+
sizeBefore?: number | null;
|
|
168
|
+
sizeAfter?: number | null;
|
|
169
|
+
sha256Before?: string | null;
|
|
170
|
+
sha256After?: string | null;
|
|
171
|
+
contentType?: string | null;
|
|
172
|
+
isBinary?: boolean | null;
|
|
173
|
+
linesAdded?: number | null;
|
|
174
|
+
linesRemoved?: number | null;
|
|
175
|
+
diffState?: string | null;
|
|
176
|
+
diffPreview?: string | null;
|
|
177
|
+
driveNodeId?: number | null;
|
|
178
|
+
driveFileVersionId?: number | null;
|
|
179
|
+
externalRevisionId?: string | null;
|
|
180
|
+
}
|
|
181
|
+
/** `AgentTraceSubAgentRun`. */
|
|
182
|
+
export interface WireTraceSubAgentRun {
|
|
183
|
+
runNumber?: number | null;
|
|
184
|
+
status?: string | null;
|
|
185
|
+
startedAt?: string | null;
|
|
186
|
+
finishedAt?: string | null;
|
|
187
|
+
verdict?: string | null;
|
|
188
|
+
failureReason?: string | null;
|
|
189
|
+
costInUsd?: number | null;
|
|
190
|
+
costInUSD?: number | null;
|
|
191
|
+
inputTokens?: number | null;
|
|
192
|
+
outputTokens?: number | null;
|
|
193
|
+
resultText?: string | null;
|
|
194
|
+
isResultTextCut?: boolean | null;
|
|
195
|
+
isToolResponse?: boolean | null;
|
|
196
|
+
isError?: boolean | null;
|
|
197
|
+
}
|
|
198
|
+
/** `AgentTraceSubAgent`. */
|
|
199
|
+
export interface WireTraceSubAgent {
|
|
200
|
+
number?: number | null;
|
|
201
|
+
label?: string | null;
|
|
202
|
+
taskText?: string | null;
|
|
203
|
+
skillNames?: WireSet<string> | null;
|
|
204
|
+
childConversationId?: number | null;
|
|
205
|
+
status?: string | null;
|
|
206
|
+
runs?: WireSet<WireTraceSubAgentRun> | null;
|
|
207
|
+
modelName?: string | null;
|
|
208
|
+
childModelNames?: string | null;
|
|
209
|
+
childModelLabels?: string | null;
|
|
210
|
+
childCostInUSD?: number | null;
|
|
211
|
+
childCostInUsd?: number | null;
|
|
212
|
+
childInputTokens?: number | null;
|
|
213
|
+
childOutputTokens?: number | null;
|
|
214
|
+
childCachedInputTokens?: number | null;
|
|
215
|
+
childMessageCount?: number | null;
|
|
216
|
+
taskKind?: string | null;
|
|
217
|
+
toolName?: string | null;
|
|
218
|
+
operationName?: string | null;
|
|
219
|
+
backgroundJobKey?: string | null;
|
|
220
|
+
verdictText?: string | null;
|
|
221
|
+
resultText?: string | null;
|
|
222
|
+
isResultTextCut?: boolean | null;
|
|
223
|
+
}
|
|
224
|
+
/** `AgentTraceWidget`. */
|
|
225
|
+
export interface WireTraceWidget {
|
|
226
|
+
type?: string | null;
|
|
227
|
+
emittedBy?: string | null;
|
|
228
|
+
isValid?: boolean | null;
|
|
229
|
+
title?: string | null;
|
|
230
|
+
summary?: string | null;
|
|
231
|
+
payloadJson?: string | null;
|
|
232
|
+
isPayloadCut?: boolean | null;
|
|
233
|
+
messageId?: number | null;
|
|
234
|
+
stepId?: string | null;
|
|
235
|
+
}
|
|
236
|
+
/** `AgentTraceMessage`. */
|
|
237
|
+
export interface WireTraceMessage {
|
|
238
|
+
messageId?: number | null;
|
|
239
|
+
messageIndex?: number | null;
|
|
240
|
+
authorKind?: string | null;
|
|
241
|
+
text?: string | null;
|
|
242
|
+
textChars?: number | null;
|
|
243
|
+
isTextCut?: boolean | null;
|
|
244
|
+
createdAt?: string | null;
|
|
245
|
+
signalSource?: string | null;
|
|
246
|
+
isInterim?: boolean | null;
|
|
247
|
+
modelLabel?: string | null;
|
|
248
|
+
modelName?: string | null;
|
|
249
|
+
widgetTypes?: WireSet<string> | null;
|
|
250
|
+
widgets?: WireSet<WireTraceWidget> | null;
|
|
251
|
+
isQueuedDuringRun?: boolean | null;
|
|
252
|
+
arrivedDuringTurnNumber?: number | null;
|
|
253
|
+
handledInTurnNumber?: number | null;
|
|
254
|
+
foldSignalMessageId?: number | null;
|
|
255
|
+
}
|
|
256
|
+
/** `AgentTraceStep`. */
|
|
257
|
+
export interface WireTraceStep {
|
|
258
|
+
stepId?: string | number | null;
|
|
259
|
+
turnNumber?: number | null;
|
|
260
|
+
kind?: string | null;
|
|
261
|
+
messageId?: number | null;
|
|
262
|
+
toolCallId?: string | null;
|
|
263
|
+
toolName?: string | null;
|
|
264
|
+
deliveredThroughCallTool?: boolean | null;
|
|
265
|
+
effect?: string | null;
|
|
266
|
+
status?: string | null;
|
|
267
|
+
startedAt?: string | null;
|
|
268
|
+
durationMs?: number | null;
|
|
269
|
+
line?: string | null;
|
|
270
|
+
toolNameInWords?: string | null;
|
|
271
|
+
toolSkillNames?: WireSet<string> | null;
|
|
272
|
+
modelLabel?: string | null;
|
|
273
|
+
thinkingSummary?: string | null;
|
|
274
|
+
isThinkingSummaryCut?: boolean | null;
|
|
275
|
+
entityReferences?: WireSet<WireTraceEntityReference> | null;
|
|
276
|
+
recordChanges?: WireTraceRecordChanges | null;
|
|
277
|
+
wasHeldForOwnerConsent?: boolean | null;
|
|
278
|
+
isHeldForConsent?: boolean | null;
|
|
279
|
+
wasRefusedByGate?: boolean | null;
|
|
280
|
+
wasRefusedAsDuplicate?: boolean | null;
|
|
281
|
+
wasRefusedAsFinal?: boolean | null;
|
|
282
|
+
terminal?: WireTraceTerminal | null;
|
|
283
|
+
fileChanges?: WireSet<WireTraceFileChange> | null;
|
|
284
|
+
subAgent?: WireTraceSubAgent | null;
|
|
285
|
+
widget?: WireTraceWidget | null;
|
|
286
|
+
taskPlanTitle?: string | null;
|
|
287
|
+
taskPlanItemCount?: number | null;
|
|
288
|
+
taskPlanOpenItemCount?: number | null;
|
|
289
|
+
taskPlanDoneItemCount?: number | null;
|
|
290
|
+
taskPlanBlockedItemCount?: number | null;
|
|
291
|
+
errorText?: string | null;
|
|
292
|
+
errorCode?: string | null;
|
|
293
|
+
wasRetried?: boolean | null;
|
|
294
|
+
decision?: WireTraceDecision | null;
|
|
295
|
+
compaction?: WireTraceCompaction | null;
|
|
296
|
+
skillLoad?: WireTraceSkillLoad | null;
|
|
297
|
+
taskPlanItems?: WireSet<WireTraceTaskPlanItem> | null;
|
|
298
|
+
signalSource?: string | null;
|
|
299
|
+
signalKind?: string | null;
|
|
300
|
+
signalText?: string | null;
|
|
301
|
+
isSignalTextCut?: boolean | null;
|
|
302
|
+
/** The stored event of a step that comes from one: its site (which decision) and the start of its payload as JSON. */
|
|
303
|
+
eventKind?: string | null;
|
|
304
|
+
eventSite?: string | null;
|
|
305
|
+
eventSubject?: string | null;
|
|
306
|
+
eventPayloadExcerpt?: string | null;
|
|
307
|
+
argumentsJson?: string | null;
|
|
308
|
+
isArgumentsCut?: boolean | null;
|
|
309
|
+
result?: string | null;
|
|
310
|
+
resultChars?: number | null;
|
|
311
|
+
isResultCut?: boolean | null;
|
|
312
|
+
loadedSkillNames?: WireSet<string> | null;
|
|
313
|
+
modelCall?: WireTraceModelCall | null;
|
|
314
|
+
loadedSkills?: WireSet<WireTraceLoadedSkill> | null;
|
|
315
|
+
assistantText?: string | null;
|
|
316
|
+
assistantTextChars?: number | null;
|
|
317
|
+
isAssistantTextCut?: boolean | null;
|
|
318
|
+
storedStatus?: string | null;
|
|
319
|
+
refusalReason?: string | null;
|
|
320
|
+
backgroundOperationName?: string | null;
|
|
321
|
+
backgroundJobKey?: string | null;
|
|
322
|
+
signalTag?: string | null;
|
|
323
|
+
}
|
|
324
|
+
/** The totals of a turn, when the server writes them as an object of their own instead of on the turn. */
|
|
325
|
+
export interface WireTurnTraceTotals {
|
|
326
|
+
durationMs?: number | null;
|
|
327
|
+
inputTokens?: number | null;
|
|
328
|
+
outputTokens?: number | null;
|
|
329
|
+
cachedInputTokens?: number | null;
|
|
330
|
+
cachePercent?: number | null;
|
|
331
|
+
costInUSD?: number | null;
|
|
332
|
+
costInUsd?: number | null;
|
|
333
|
+
stepCount?: number | null;
|
|
334
|
+
commandCount?: number | null;
|
|
335
|
+
fileCount?: number | null;
|
|
336
|
+
linesAdded?: number | null;
|
|
337
|
+
linesRemoved?: number | null;
|
|
338
|
+
modelName?: string | null;
|
|
339
|
+
reasoningEffort?: string | null;
|
|
340
|
+
effort?: string | null;
|
|
341
|
+
outcome?: string | null;
|
|
342
|
+
}
|
|
343
|
+
/** `AgentTurnTrace`: the totals sit on the turn itself. */
|
|
344
|
+
export interface WireTurnTrace extends WireTurnTraceTotals {
|
|
345
|
+
turnNumber?: number | null;
|
|
346
|
+
initiatorMessageId?: number | null;
|
|
347
|
+
initiatorMessageIndex?: number | null;
|
|
348
|
+
turnMessageId?: number | null;
|
|
349
|
+
startedAt?: string | null;
|
|
350
|
+
isRunning?: boolean | null;
|
|
351
|
+
isStoppedByOwner?: boolean | null;
|
|
352
|
+
initiatorMessage?: WireTraceMessage | null;
|
|
353
|
+
answerMessages?: WireSet<WireTraceMessage> | null;
|
|
354
|
+
steps?: WireSet<WireTraceStep> | null;
|
|
355
|
+
totals?: WireTurnTraceTotals | null;
|
|
356
|
+
queuedMessages?: WireSet<WireTraceMessage> | null;
|
|
357
|
+
isStartedForQueuedOwnerMessage?: boolean | null;
|
|
358
|
+
startedBySignalMessageId?: number | null;
|
|
359
|
+
}
|
|
360
|
+
/** `AgentTurnTraces`: an object set, its turns under `elements` and its paging facts beside them. */
|
|
361
|
+
export interface WireTurnTraces {
|
|
362
|
+
aiConversationId?: number | null;
|
|
363
|
+
detailLevel?: string | null;
|
|
364
|
+
/** The turns of the window, oldest first. */
|
|
365
|
+
elements?: WireTurnTrace[] | null;
|
|
366
|
+
/** The turns as an older server sent them. */
|
|
367
|
+
turns?: WireSet<WireTurnTrace> | null;
|
|
368
|
+
windowMode?: string | null;
|
|
369
|
+
totalTurnCount?: number | null;
|
|
370
|
+
firstTurnNumber?: number | null;
|
|
371
|
+
lastTurnNumber?: number | null;
|
|
372
|
+
hasOlderTurns?: boolean | null;
|
|
373
|
+
hasNewerTurns?: boolean | null;
|
|
374
|
+
newestMessageIndex?: number | null;
|
|
375
|
+
isRunLive?: boolean | null;
|
|
376
|
+
}
|
|
377
|
+
/** The trace read: the traces themselves, or a response DTO that carries them in one of its fields. */
|
|
378
|
+
export type WireTurnTracesResponse = WireTurnTraces & Record<string, unknown>;
|
|
379
|
+
/** `AgentContextSegment`: one labelled piece of a model call's context. */
|
|
380
|
+
export interface WireContextSegment {
|
|
381
|
+
type?: string | null;
|
|
382
|
+
key?: string | null;
|
|
383
|
+
name?: string | null;
|
|
384
|
+
label?: string | null;
|
|
385
|
+
tokenCount?: number | null;
|
|
386
|
+
tokens?: number | null;
|
|
387
|
+
percent?: number | null;
|
|
388
|
+
sourceMessageIndex?: number | null;
|
|
389
|
+
}
|
|
390
|
+
/** `ModelCallComposition`: the segments of the system message, of the tool schemas and of the wire messages. */
|
|
391
|
+
export interface WireModelCallComposition {
|
|
392
|
+
systemSegments?: WireSet<WireContextSegment> | null;
|
|
393
|
+
toolSchemaSegments?: WireSet<WireContextSegment> | null;
|
|
394
|
+
messageSegments?: WireSet<WireContextSegment> | null;
|
|
395
|
+
isUnavailable?: boolean | null;
|
|
396
|
+
isReconstructed?: boolean | null;
|
|
397
|
+
}
|
|
398
|
+
/** `CompactionThresholdBreakdown`, as far as the context fill reads it. */
|
|
399
|
+
export interface WireCompactionThreshold {
|
|
400
|
+
thresholdTokens?: number | null;
|
|
401
|
+
latestContextInputTokens?: number | null;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* The context composition read (`AIConversationMessageContextCompositionGetResponseDto`): the composition in
|
|
405
|
+
* `composition` (`contextComposition` on an application's older route) with the compaction threshold beside it. A
|
|
406
|
+
* flat answer (`segments`, `totalTokens`, `contextWindowTokens`, `fillPercent`) is read as well.
|
|
407
|
+
*/
|
|
408
|
+
export interface WireContextComposition {
|
|
409
|
+
messageId?: number | null;
|
|
410
|
+
aiConversationMessageId?: number | null;
|
|
411
|
+
composition?: WireModelCallComposition | null;
|
|
412
|
+
contextComposition?: WireModelCallComposition | null;
|
|
413
|
+
compactionThreshold?: WireCompactionThreshold | null;
|
|
414
|
+
totalTokens?: number | null;
|
|
415
|
+
contextWindowTokens?: number | null;
|
|
416
|
+
fillPercent?: number | null;
|
|
417
|
+
segments?: WireSet<WireContextSegment> | null;
|
|
418
|
+
}
|
|
419
|
+
export type WireContextCompositionResponse = WireContextComposition & Record<string, unknown>;
|
|
420
|
+
/** The whole diff of a file change (`AIConversationFileChangeDiffGetResponseDto`). */
|
|
421
|
+
export interface WireFileChangeDiffResponse {
|
|
422
|
+
fileChangeId?: number | null;
|
|
423
|
+
fileChange?: WireTraceFileChange | null;
|
|
424
|
+
diff?: string | null;
|
|
425
|
+
diffText?: string | null;
|
|
426
|
+
isCut?: boolean | null;
|
|
427
|
+
isDiffCut?: boolean | null;
|
|
428
|
+
}
|
|
429
|
+
/** The answer of the stop route (`POST …/{id}/stop`). */
|
|
430
|
+
export interface WireTurnStopResponse {
|
|
431
|
+
isStopped?: boolean | null;
|
|
432
|
+
runState?: string | null;
|
|
433
|
+
}
|