@inf-monkeys-tech/monkeys-design 1.0.14 → 1.0.15
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/dist/components/agent-workbench/index.d.mts +41 -168
- package/dist/components/agent-workbench/index.d.ts +41 -168
- package/dist/components/agent-workbench/index.js +335 -4
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +336 -6
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.js +32 -1
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +32 -1
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +32 -1
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +32 -1
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +32 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +32 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +32 -1
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +32 -1
- package/dist/components/runtime/index.mjs.map +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +32 -1
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +32 -1
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +32 -1
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +32 -1
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +32 -1
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +32 -1
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/details-model-f2034b78b458.d.mts +199 -0
- package/dist/details-model-f2034b78b458.d.ts +199 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +142 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +142 -5
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +88 -2
- package/dist/locale/index.d.ts +88 -2
- package/dist/locale/index.js +72 -2
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +72 -2
- package/dist/locale/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +2 -2
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.js +72 -2
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +72 -2
- package/dist/provider/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-37967a434f7c.d.mts → types-a81dc2d284e3.d.mts} +37 -0
- package/dist/{types-37967a434f7c.d.ts → types-a81dc2d284e3.d.ts} +37 -0
- package/package.json +3 -3
|
@@ -1,186 +1,59 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchSidebar, l as AgentWorkbenchSidebarClassNames, m as AgentWorkbenchSidebarIntent, n as AgentWorkbenchSidebarProps, o as AgentWorkbenchTaskDetails, p as AgentWorkbenchTaskDetailsClassNames, q as AgentWorkbenchTaskDetailsProps, r as AgentWorkbenchTerminalModel, s as AgentWorkbenchTool, t as AgentWorkbenchToolClassNames, u as AgentWorkbenchToolProps, v as createAgentWorkbenchActivityModel, w as createAgentWorkbenchDetailsModel } from '../../details-model-f2034b78b458.mjs';
|
|
4
|
+
import 'react';
|
|
5
|
+
type AgentWorkbenchComposerIntent = {
|
|
6
|
+
type: 'change-permission';
|
|
7
|
+
value: AgentSessionPermissionProfile;
|
|
7
8
|
} | {
|
|
8
|
-
type: 'change-
|
|
9
|
-
|
|
9
|
+
type: 'change-reasoning';
|
|
10
|
+
value: 'high' | 'low' | 'medium' | 'xhigh';
|
|
10
11
|
} | {
|
|
11
|
-
type: '
|
|
12
|
+
type: 'change-value';
|
|
13
|
+
value: string;
|
|
12
14
|
} | {
|
|
13
|
-
type: '
|
|
15
|
+
type: 'delete-queued-draft';
|
|
16
|
+
draftId: string;
|
|
14
17
|
} | {
|
|
15
|
-
type: '
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'open-agent-settings';
|
|
18
|
+
type: 'edit-queued-draft';
|
|
19
|
+
draftId: string;
|
|
20
|
+
text: string;
|
|
19
21
|
} | {
|
|
20
|
-
type: '
|
|
22
|
+
type: 'move-queued-draft';
|
|
23
|
+
draftId: string;
|
|
24
|
+
direction: 'down' | 'up';
|
|
21
25
|
} | {
|
|
22
|
-
type: '
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
26
|
+
type: 'remove-attachment';
|
|
27
|
+
attachmentId: string;
|
|
25
28
|
} | {
|
|
26
|
-
type: '
|
|
29
|
+
type: 'request-attachments';
|
|
30
|
+
files: File[];
|
|
27
31
|
} | {
|
|
28
|
-
type: '
|
|
32
|
+
type: 'request-voice-input';
|
|
29
33
|
} | {
|
|
30
|
-
type: 'select-
|
|
31
|
-
|
|
34
|
+
type: 'select-model';
|
|
35
|
+
modelId: string;
|
|
36
|
+
mode: 'agent' | 'chatbot';
|
|
32
37
|
} | {
|
|
33
|
-
type: '
|
|
34
|
-
sessionId: string;
|
|
38
|
+
type: 'stop';
|
|
35
39
|
} | {
|
|
36
|
-
type: '
|
|
37
|
-
itemId: string;
|
|
38
|
-
pinned: boolean;
|
|
40
|
+
type: 'submit';
|
|
39
41
|
} | {
|
|
40
|
-
type: 'toggle-
|
|
41
|
-
|
|
42
|
-
pinned: boolean;
|
|
42
|
+
type: 'toggle-web-search';
|
|
43
|
+
enabled: boolean;
|
|
43
44
|
};
|
|
44
|
-
interface
|
|
45
|
+
interface AgentWorkbenchComposerClassNames {
|
|
45
46
|
root?: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
footer?: string;
|
|
47
|
+
queue?: string;
|
|
48
|
+
attachments?: string;
|
|
49
|
+
textarea?: string;
|
|
50
|
+
toolbar?: string;
|
|
51
51
|
}
|
|
52
|
-
interface
|
|
53
|
-
viewModel:
|
|
54
|
-
headerActions?: ReactNode;
|
|
52
|
+
interface AgentWorkbenchComposerProps {
|
|
53
|
+
viewModel: AgentWorkbenchComposerViewModel;
|
|
55
54
|
className?: string;
|
|
56
|
-
classNames?:
|
|
57
|
-
onIntent?: (intent:
|
|
58
|
-
}
|
|
59
|
-
declare function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
60
|
-
interface AgentWorkbenchApprovalIntent {
|
|
61
|
-
approvalId: string;
|
|
62
|
-
approved: boolean;
|
|
63
|
-
}
|
|
64
|
-
interface AgentWorkbenchArtifactIntent {
|
|
65
|
-
artifactId: string;
|
|
66
|
-
name: string;
|
|
67
|
-
url: string;
|
|
68
|
-
}
|
|
69
|
-
interface AgentWorkbenchActivityClassNames {
|
|
70
|
-
root?: string;
|
|
71
|
-
item?: string;
|
|
72
|
-
trigger?: string;
|
|
73
|
-
content?: string;
|
|
74
|
-
approval?: string;
|
|
75
|
-
artifact?: string;
|
|
76
|
-
usage?: string;
|
|
77
|
-
}
|
|
78
|
-
interface AgentWorkbenchActivityProps {
|
|
79
|
-
viewModel?: AgentSessionViewModel;
|
|
80
|
-
hiddenToolCallIds?: ReadonlySet<string>;
|
|
81
|
-
hideReasoning?: boolean;
|
|
82
|
-
hideStoppedRun?: boolean;
|
|
83
|
-
className?: string;
|
|
84
|
-
classNames?: AgentWorkbenchActivityClassNames;
|
|
85
|
-
onApprovalDecision?: (intent: AgentWorkbenchApprovalIntent) => void;
|
|
86
|
-
onArtifactOpen?: (intent: AgentWorkbenchArtifactIntent) => void;
|
|
87
|
-
}
|
|
88
|
-
declare function AgentWorkbenchActivity({ viewModel, hiddenToolCallIds, hideReasoning, hideStoppedRun, className, classNames, onApprovalDecision, onArtifactOpen, }: AgentWorkbenchActivityProps): null | react_jsx_runtime.JSX.Element;
|
|
89
|
-
type AgentWorkbenchDetailsTab = 'summary' | 'workspace';
|
|
90
|
-
type AgentWorkbenchDetailsState = 'empty' | 'error' | 'loading' | 'ready';
|
|
91
|
-
type AgentWorkbenchDetailsIntent = {
|
|
92
|
-
type: 'close';
|
|
93
|
-
} | {
|
|
94
|
-
type: 'copy-summary';
|
|
95
|
-
summaryId: string;
|
|
96
|
-
text: string;
|
|
97
|
-
} | {
|
|
98
|
-
type: 'resume';
|
|
99
|
-
sessionId: string;
|
|
100
|
-
} | {
|
|
101
|
-
type: 'retry-summary';
|
|
102
|
-
eventId: string;
|
|
103
|
-
} | {
|
|
104
|
-
type: 'retry';
|
|
105
|
-
eventId: string;
|
|
106
|
-
};
|
|
107
|
-
interface AgentWorkbenchTaskDetailsClassNames {
|
|
108
|
-
root?: string;
|
|
109
|
-
header?: string;
|
|
110
|
-
tabs?: string;
|
|
111
|
-
body?: string;
|
|
112
|
-
section?: string;
|
|
113
|
-
code?: string;
|
|
114
|
-
}
|
|
115
|
-
interface AgentWorkbenchTaskDetailsProps {
|
|
116
|
-
viewModel?: AgentSessionViewModel;
|
|
117
|
-
state?: AgentWorkbenchDetailsState;
|
|
118
|
-
activeTab?: AgentWorkbenchDetailsTab;
|
|
119
|
-
className?: string;
|
|
120
|
-
classNames?: AgentWorkbenchTaskDetailsClassNames;
|
|
121
|
-
onActiveTabChange?: (tab: AgentWorkbenchDetailsTab) => void;
|
|
122
|
-
onIntent?: (intent: AgentWorkbenchDetailsIntent) => void;
|
|
123
|
-
}
|
|
124
|
-
declare function AgentWorkbenchTaskDetails({ viewModel, state, activeTab, className, classNames, onActiveTabChange, onIntent, }: AgentWorkbenchTaskDetailsProps): react_jsx_runtime.JSX.Element;
|
|
125
|
-
type SessionEventType = AgentSessionEvent['eventType'];
|
|
126
|
-
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
127
|
-
eventType: Type;
|
|
128
|
-
}>;
|
|
129
|
-
interface AgentWorkbenchActivityModel {
|
|
130
|
-
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
131
|
-
status: AgentSessionViewModel['status'];
|
|
132
|
-
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
133
|
-
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
134
|
-
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
135
|
-
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
136
|
-
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
137
|
-
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
138
|
-
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
139
|
-
run?: AgentWorkbenchEventOf<'status'> & {
|
|
140
|
-
resolvedDurationMs?: number;
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
144
|
-
interface AgentWorkbenchToolClassNames {
|
|
145
|
-
root?: string;
|
|
146
|
-
trigger?: string;
|
|
147
|
-
content?: string;
|
|
148
|
-
input?: string;
|
|
149
|
-
output?: string;
|
|
150
|
-
}
|
|
151
|
-
interface AgentWorkbenchToolProps {
|
|
152
|
-
event: AgentWorkbenchEventOf<'tool'>;
|
|
153
|
-
expanded?: boolean;
|
|
154
|
-
defaultExpanded?: boolean;
|
|
155
|
-
className?: string;
|
|
156
|
-
classNames?: AgentWorkbenchToolClassNames;
|
|
157
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
158
|
-
}
|
|
159
|
-
declare function AgentWorkbenchTool({ event, expanded, defaultExpanded, className, classNames, onExpandedChange, }: AgentWorkbenchToolProps): react_jsx_runtime.JSX.Element;
|
|
160
|
-
interface AgentWorkbenchTerminalModel {
|
|
161
|
-
terminalId: string;
|
|
162
|
-
stdin: string;
|
|
163
|
-
stdout: string;
|
|
164
|
-
stderr: string;
|
|
165
|
-
status: string;
|
|
166
|
-
exitCode?: number;
|
|
167
|
-
sequence: number;
|
|
168
|
-
}
|
|
169
|
-
interface AgentWorkbenchDetailsModel {
|
|
170
|
-
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
171
|
-
status: AgentSessionViewModel['status'];
|
|
172
|
-
sessionId: string;
|
|
173
|
-
resumable: boolean;
|
|
174
|
-
summary?: AgentWorkbenchEventOf<'summary'>;
|
|
175
|
-
error?: AgentWorkbenchEventOf<'error'>;
|
|
176
|
-
run?: AgentWorkbenchEventOf<'status'>;
|
|
177
|
-
workspace: {
|
|
178
|
-
diffs: AgentWorkbenchEventOf<'diff'>[];
|
|
179
|
-
files: AgentWorkbenchEventOf<'workspace-file'>[];
|
|
180
|
-
terminals: AgentWorkbenchTerminalModel[];
|
|
181
|
-
tests: AgentWorkbenchEventOf<'test-result'>[];
|
|
182
|
-
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
183
|
-
};
|
|
55
|
+
classNames?: AgentWorkbenchComposerClassNames;
|
|
56
|
+
onIntent?: (intent: AgentWorkbenchComposerIntent) => void;
|
|
184
57
|
}
|
|
185
|
-
declare function
|
|
186
|
-
export {
|
|
58
|
+
declare function AgentWorkbenchComposer({ viewModel, className, classNames, onIntent, }: AgentWorkbenchComposerProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
export { AgentWorkbenchComposer, type AgentWorkbenchComposerClassNames, type AgentWorkbenchComposerIntent, type AgentWorkbenchComposerProps };
|
|
@@ -1,186 +1,59 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchSidebar, l as AgentWorkbenchSidebarClassNames, m as AgentWorkbenchSidebarIntent, n as AgentWorkbenchSidebarProps, o as AgentWorkbenchTaskDetails, p as AgentWorkbenchTaskDetailsClassNames, q as AgentWorkbenchTaskDetailsProps, r as AgentWorkbenchTerminalModel, s as AgentWorkbenchTool, t as AgentWorkbenchToolClassNames, u as AgentWorkbenchToolProps, v as createAgentWorkbenchActivityModel, w as createAgentWorkbenchDetailsModel } from '../../details-model-f2034b78b458.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
type AgentWorkbenchComposerIntent = {
|
|
6
|
+
type: 'change-permission';
|
|
7
|
+
value: AgentSessionPermissionProfile;
|
|
7
8
|
} | {
|
|
8
|
-
type: 'change-
|
|
9
|
-
|
|
9
|
+
type: 'change-reasoning';
|
|
10
|
+
value: 'high' | 'low' | 'medium' | 'xhigh';
|
|
10
11
|
} | {
|
|
11
|
-
type: '
|
|
12
|
+
type: 'change-value';
|
|
13
|
+
value: string;
|
|
12
14
|
} | {
|
|
13
|
-
type: '
|
|
15
|
+
type: 'delete-queued-draft';
|
|
16
|
+
draftId: string;
|
|
14
17
|
} | {
|
|
15
|
-
type: '
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'open-agent-settings';
|
|
18
|
+
type: 'edit-queued-draft';
|
|
19
|
+
draftId: string;
|
|
20
|
+
text: string;
|
|
19
21
|
} | {
|
|
20
|
-
type: '
|
|
22
|
+
type: 'move-queued-draft';
|
|
23
|
+
draftId: string;
|
|
24
|
+
direction: 'down' | 'up';
|
|
21
25
|
} | {
|
|
22
|
-
type: '
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
26
|
+
type: 'remove-attachment';
|
|
27
|
+
attachmentId: string;
|
|
25
28
|
} | {
|
|
26
|
-
type: '
|
|
29
|
+
type: 'request-attachments';
|
|
30
|
+
files: File[];
|
|
27
31
|
} | {
|
|
28
|
-
type: '
|
|
32
|
+
type: 'request-voice-input';
|
|
29
33
|
} | {
|
|
30
|
-
type: 'select-
|
|
31
|
-
|
|
34
|
+
type: 'select-model';
|
|
35
|
+
modelId: string;
|
|
36
|
+
mode: 'agent' | 'chatbot';
|
|
32
37
|
} | {
|
|
33
|
-
type: '
|
|
34
|
-
sessionId: string;
|
|
38
|
+
type: 'stop';
|
|
35
39
|
} | {
|
|
36
|
-
type: '
|
|
37
|
-
itemId: string;
|
|
38
|
-
pinned: boolean;
|
|
40
|
+
type: 'submit';
|
|
39
41
|
} | {
|
|
40
|
-
type: 'toggle-
|
|
41
|
-
|
|
42
|
-
pinned: boolean;
|
|
42
|
+
type: 'toggle-web-search';
|
|
43
|
+
enabled: boolean;
|
|
43
44
|
};
|
|
44
|
-
interface
|
|
45
|
+
interface AgentWorkbenchComposerClassNames {
|
|
45
46
|
root?: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
footer?: string;
|
|
47
|
+
queue?: string;
|
|
48
|
+
attachments?: string;
|
|
49
|
+
textarea?: string;
|
|
50
|
+
toolbar?: string;
|
|
51
51
|
}
|
|
52
|
-
interface
|
|
53
|
-
viewModel:
|
|
54
|
-
headerActions?: ReactNode;
|
|
52
|
+
interface AgentWorkbenchComposerProps {
|
|
53
|
+
viewModel: AgentWorkbenchComposerViewModel;
|
|
55
54
|
className?: string;
|
|
56
|
-
classNames?:
|
|
57
|
-
onIntent?: (intent:
|
|
58
|
-
}
|
|
59
|
-
declare function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
60
|
-
interface AgentWorkbenchApprovalIntent {
|
|
61
|
-
approvalId: string;
|
|
62
|
-
approved: boolean;
|
|
63
|
-
}
|
|
64
|
-
interface AgentWorkbenchArtifactIntent {
|
|
65
|
-
artifactId: string;
|
|
66
|
-
name: string;
|
|
67
|
-
url: string;
|
|
68
|
-
}
|
|
69
|
-
interface AgentWorkbenchActivityClassNames {
|
|
70
|
-
root?: string;
|
|
71
|
-
item?: string;
|
|
72
|
-
trigger?: string;
|
|
73
|
-
content?: string;
|
|
74
|
-
approval?: string;
|
|
75
|
-
artifact?: string;
|
|
76
|
-
usage?: string;
|
|
77
|
-
}
|
|
78
|
-
interface AgentWorkbenchActivityProps {
|
|
79
|
-
viewModel?: AgentSessionViewModel;
|
|
80
|
-
hiddenToolCallIds?: ReadonlySet<string>;
|
|
81
|
-
hideReasoning?: boolean;
|
|
82
|
-
hideStoppedRun?: boolean;
|
|
83
|
-
className?: string;
|
|
84
|
-
classNames?: AgentWorkbenchActivityClassNames;
|
|
85
|
-
onApprovalDecision?: (intent: AgentWorkbenchApprovalIntent) => void;
|
|
86
|
-
onArtifactOpen?: (intent: AgentWorkbenchArtifactIntent) => void;
|
|
87
|
-
}
|
|
88
|
-
declare function AgentWorkbenchActivity({ viewModel, hiddenToolCallIds, hideReasoning, hideStoppedRun, className, classNames, onApprovalDecision, onArtifactOpen, }: AgentWorkbenchActivityProps): null | react_jsx_runtime.JSX.Element;
|
|
89
|
-
type AgentWorkbenchDetailsTab = 'summary' | 'workspace';
|
|
90
|
-
type AgentWorkbenchDetailsState = 'empty' | 'error' | 'loading' | 'ready';
|
|
91
|
-
type AgentWorkbenchDetailsIntent = {
|
|
92
|
-
type: 'close';
|
|
93
|
-
} | {
|
|
94
|
-
type: 'copy-summary';
|
|
95
|
-
summaryId: string;
|
|
96
|
-
text: string;
|
|
97
|
-
} | {
|
|
98
|
-
type: 'resume';
|
|
99
|
-
sessionId: string;
|
|
100
|
-
} | {
|
|
101
|
-
type: 'retry-summary';
|
|
102
|
-
eventId: string;
|
|
103
|
-
} | {
|
|
104
|
-
type: 'retry';
|
|
105
|
-
eventId: string;
|
|
106
|
-
};
|
|
107
|
-
interface AgentWorkbenchTaskDetailsClassNames {
|
|
108
|
-
root?: string;
|
|
109
|
-
header?: string;
|
|
110
|
-
tabs?: string;
|
|
111
|
-
body?: string;
|
|
112
|
-
section?: string;
|
|
113
|
-
code?: string;
|
|
114
|
-
}
|
|
115
|
-
interface AgentWorkbenchTaskDetailsProps {
|
|
116
|
-
viewModel?: AgentSessionViewModel;
|
|
117
|
-
state?: AgentWorkbenchDetailsState;
|
|
118
|
-
activeTab?: AgentWorkbenchDetailsTab;
|
|
119
|
-
className?: string;
|
|
120
|
-
classNames?: AgentWorkbenchTaskDetailsClassNames;
|
|
121
|
-
onActiveTabChange?: (tab: AgentWorkbenchDetailsTab) => void;
|
|
122
|
-
onIntent?: (intent: AgentWorkbenchDetailsIntent) => void;
|
|
123
|
-
}
|
|
124
|
-
declare function AgentWorkbenchTaskDetails({ viewModel, state, activeTab, className, classNames, onActiveTabChange, onIntent, }: AgentWorkbenchTaskDetailsProps): react_jsx_runtime.JSX.Element;
|
|
125
|
-
type SessionEventType = AgentSessionEvent['eventType'];
|
|
126
|
-
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
127
|
-
eventType: Type;
|
|
128
|
-
}>;
|
|
129
|
-
interface AgentWorkbenchActivityModel {
|
|
130
|
-
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
131
|
-
status: AgentSessionViewModel['status'];
|
|
132
|
-
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
133
|
-
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
134
|
-
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
135
|
-
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
136
|
-
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
137
|
-
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
138
|
-
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
139
|
-
run?: AgentWorkbenchEventOf<'status'> & {
|
|
140
|
-
resolvedDurationMs?: number;
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
144
|
-
interface AgentWorkbenchToolClassNames {
|
|
145
|
-
root?: string;
|
|
146
|
-
trigger?: string;
|
|
147
|
-
content?: string;
|
|
148
|
-
input?: string;
|
|
149
|
-
output?: string;
|
|
150
|
-
}
|
|
151
|
-
interface AgentWorkbenchToolProps {
|
|
152
|
-
event: AgentWorkbenchEventOf<'tool'>;
|
|
153
|
-
expanded?: boolean;
|
|
154
|
-
defaultExpanded?: boolean;
|
|
155
|
-
className?: string;
|
|
156
|
-
classNames?: AgentWorkbenchToolClassNames;
|
|
157
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
158
|
-
}
|
|
159
|
-
declare function AgentWorkbenchTool({ event, expanded, defaultExpanded, className, classNames, onExpandedChange, }: AgentWorkbenchToolProps): react_jsx_runtime.JSX.Element;
|
|
160
|
-
interface AgentWorkbenchTerminalModel {
|
|
161
|
-
terminalId: string;
|
|
162
|
-
stdin: string;
|
|
163
|
-
stdout: string;
|
|
164
|
-
stderr: string;
|
|
165
|
-
status: string;
|
|
166
|
-
exitCode?: number;
|
|
167
|
-
sequence: number;
|
|
168
|
-
}
|
|
169
|
-
interface AgentWorkbenchDetailsModel {
|
|
170
|
-
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
171
|
-
status: AgentSessionViewModel['status'];
|
|
172
|
-
sessionId: string;
|
|
173
|
-
resumable: boolean;
|
|
174
|
-
summary?: AgentWorkbenchEventOf<'summary'>;
|
|
175
|
-
error?: AgentWorkbenchEventOf<'error'>;
|
|
176
|
-
run?: AgentWorkbenchEventOf<'status'>;
|
|
177
|
-
workspace: {
|
|
178
|
-
diffs: AgentWorkbenchEventOf<'diff'>[];
|
|
179
|
-
files: AgentWorkbenchEventOf<'workspace-file'>[];
|
|
180
|
-
terminals: AgentWorkbenchTerminalModel[];
|
|
181
|
-
tests: AgentWorkbenchEventOf<'test-result'>[];
|
|
182
|
-
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
183
|
-
};
|
|
55
|
+
classNames?: AgentWorkbenchComposerClassNames;
|
|
56
|
+
onIntent?: (intent: AgentWorkbenchComposerIntent) => void;
|
|
184
57
|
}
|
|
185
|
-
declare function
|
|
186
|
-
export {
|
|
58
|
+
declare function AgentWorkbenchComposer({ viewModel, className, classNames, onIntent, }: AgentWorkbenchComposerProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
export { AgentWorkbenchComposer, type AgentWorkbenchComposerClassNames, type AgentWorkbenchComposerIntent, type AgentWorkbenchComposerProps };
|