@inf-monkeys-tech/monkeys-design 1.0.13 → 1.0.14-canary.76.1.f2d536e
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 -166
- package/dist/components/agent-workbench/index.d.ts +41 -166
- package/dist/components/agent-workbench/index.js +239 -5
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +240 -7
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.js +23 -0
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +23 -0
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +23 -0
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +23 -0
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +23 -0
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +23 -0
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +23 -0
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +23 -0
- 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 +23 -0
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +23 -0
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +23 -0
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +23 -0
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +23 -0
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +23 -0
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/details-model-36745da2e20f.d.mts +186 -0
- package/dist/details-model-36745da2e20f.d.ts +186 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +58 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -5
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +66 -2
- package/dist/locale/index.d.ts +66 -2
- package/dist/locale/index.js +50 -0
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +50 -0
- 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 +50 -0
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +50 -0
- package/dist/provider/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-37967a434f7c.d.mts → types-fad7f358d712.d.mts} +24 -0
- package/dist/{types-37967a434f7c.d.ts → types-fad7f358d712.d.ts} +24 -0
- package/package.json +3 -3
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { AgentWorkbenchNavigationViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
type AgentWorkbenchSidebarIntent = {
|
|
5
|
+
type: 'change-search';
|
|
6
|
+
query: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: 'change-tab';
|
|
9
|
+
tab: 'agents' | 'sessions';
|
|
10
|
+
} | {
|
|
11
|
+
type: 'create-agent';
|
|
12
|
+
} | {
|
|
13
|
+
type: 'create-session';
|
|
14
|
+
} | {
|
|
15
|
+
type: 'delete-session';
|
|
16
|
+
sessionId: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'open-agent-settings';
|
|
19
|
+
} | {
|
|
20
|
+
type: 'open-capabilities';
|
|
21
|
+
} | {
|
|
22
|
+
type: 'rename-session';
|
|
23
|
+
sessionId: string;
|
|
24
|
+
title: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'retry-agents';
|
|
27
|
+
} | {
|
|
28
|
+
type: 'retry-sessions';
|
|
29
|
+
} | {
|
|
30
|
+
type: 'select-agent';
|
|
31
|
+
itemId: string;
|
|
32
|
+
} | {
|
|
33
|
+
type: 'select-session';
|
|
34
|
+
sessionId: string;
|
|
35
|
+
} | {
|
|
36
|
+
type: 'toggle-agent-pin';
|
|
37
|
+
itemId: string;
|
|
38
|
+
pinned: boolean;
|
|
39
|
+
} | {
|
|
40
|
+
type: 'toggle-session-pin';
|
|
41
|
+
sessionId: string;
|
|
42
|
+
pinned: boolean;
|
|
43
|
+
};
|
|
44
|
+
interface AgentWorkbenchSidebarClassNames {
|
|
45
|
+
root?: string;
|
|
46
|
+
search?: string;
|
|
47
|
+
tabs?: string;
|
|
48
|
+
body?: string;
|
|
49
|
+
item?: string;
|
|
50
|
+
footer?: string;
|
|
51
|
+
}
|
|
52
|
+
interface AgentWorkbenchSidebarProps {
|
|
53
|
+
viewModel: AgentWorkbenchNavigationViewModel;
|
|
54
|
+
headerActions?: ReactNode;
|
|
55
|
+
className?: string;
|
|
56
|
+
classNames?: AgentWorkbenchSidebarClassNames;
|
|
57
|
+
onIntent?: (intent: AgentWorkbenchSidebarIntent) => void;
|
|
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
|
+
};
|
|
184
|
+
}
|
|
185
|
+
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
186
|
+
export { AgentWorkbenchActivity as A, type AgentWorkbenchActivityClassNames as a, type AgentWorkbenchActivityModel as b, type AgentWorkbenchActivityProps as c, type AgentWorkbenchApprovalIntent as d, type AgentWorkbenchArtifactIntent as e, type AgentWorkbenchDetailsIntent as f, type AgentWorkbenchDetailsModel as g, type AgentWorkbenchDetailsState as h, type AgentWorkbenchDetailsTab as i, type AgentWorkbenchEventOf as j, AgentWorkbenchSidebar as k, type AgentWorkbenchSidebarClassNames as l, type AgentWorkbenchSidebarIntent as m, type AgentWorkbenchSidebarProps as n, AgentWorkbenchTaskDetails as o, type AgentWorkbenchTaskDetailsClassNames as p, type AgentWorkbenchTaskDetailsProps as q, type AgentWorkbenchTerminalModel as r, AgentWorkbenchTool as s, type AgentWorkbenchToolClassNames as t, type AgentWorkbenchToolProps as u, createAgentWorkbenchActivityModel as v, createAgentWorkbenchDetailsModel as w };
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { AgentWorkbenchNavigationViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
type AgentWorkbenchSidebarIntent = {
|
|
5
|
+
type: 'change-search';
|
|
6
|
+
query: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: 'change-tab';
|
|
9
|
+
tab: 'agents' | 'sessions';
|
|
10
|
+
} | {
|
|
11
|
+
type: 'create-agent';
|
|
12
|
+
} | {
|
|
13
|
+
type: 'create-session';
|
|
14
|
+
} | {
|
|
15
|
+
type: 'delete-session';
|
|
16
|
+
sessionId: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'open-agent-settings';
|
|
19
|
+
} | {
|
|
20
|
+
type: 'open-capabilities';
|
|
21
|
+
} | {
|
|
22
|
+
type: 'rename-session';
|
|
23
|
+
sessionId: string;
|
|
24
|
+
title: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'retry-agents';
|
|
27
|
+
} | {
|
|
28
|
+
type: 'retry-sessions';
|
|
29
|
+
} | {
|
|
30
|
+
type: 'select-agent';
|
|
31
|
+
itemId: string;
|
|
32
|
+
} | {
|
|
33
|
+
type: 'select-session';
|
|
34
|
+
sessionId: string;
|
|
35
|
+
} | {
|
|
36
|
+
type: 'toggle-agent-pin';
|
|
37
|
+
itemId: string;
|
|
38
|
+
pinned: boolean;
|
|
39
|
+
} | {
|
|
40
|
+
type: 'toggle-session-pin';
|
|
41
|
+
sessionId: string;
|
|
42
|
+
pinned: boolean;
|
|
43
|
+
};
|
|
44
|
+
interface AgentWorkbenchSidebarClassNames {
|
|
45
|
+
root?: string;
|
|
46
|
+
search?: string;
|
|
47
|
+
tabs?: string;
|
|
48
|
+
body?: string;
|
|
49
|
+
item?: string;
|
|
50
|
+
footer?: string;
|
|
51
|
+
}
|
|
52
|
+
interface AgentWorkbenchSidebarProps {
|
|
53
|
+
viewModel: AgentWorkbenchNavigationViewModel;
|
|
54
|
+
headerActions?: ReactNode;
|
|
55
|
+
className?: string;
|
|
56
|
+
classNames?: AgentWorkbenchSidebarClassNames;
|
|
57
|
+
onIntent?: (intent: AgentWorkbenchSidebarIntent) => void;
|
|
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
|
+
};
|
|
184
|
+
}
|
|
185
|
+
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
186
|
+
export { AgentWorkbenchActivity as A, type AgentWorkbenchActivityClassNames as a, type AgentWorkbenchActivityModel as b, type AgentWorkbenchActivityProps as c, type AgentWorkbenchApprovalIntent as d, type AgentWorkbenchArtifactIntent as e, type AgentWorkbenchDetailsIntent as f, type AgentWorkbenchDetailsModel as g, type AgentWorkbenchDetailsState as h, type AgentWorkbenchDetailsTab as i, type AgentWorkbenchEventOf as j, AgentWorkbenchSidebar as k, type AgentWorkbenchSidebarClassNames as l, type AgentWorkbenchSidebarIntent as m, type AgentWorkbenchSidebarProps as n, AgentWorkbenchTaskDetails as o, type AgentWorkbenchTaskDetailsClassNames as p, type AgentWorkbenchTaskDetailsProps as q, type AgentWorkbenchTerminalModel as r, AgentWorkbenchTool as s, type AgentWorkbenchToolClassNames as t, type AgentWorkbenchToolProps as u, createAgentWorkbenchActivityModel as v, createAgentWorkbenchDetailsModel as w };
|
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ export { ApplyThemeTokensOptions, CompileThemeTokensOptions, CompiledThemeTokens
|
|
|
3
3
|
export { ThemeToken, ThemeTokens } from '@inf-monkeys-tech/monkeys/contracts';
|
|
4
4
|
export { MonkeysComponentAttributes, MonkeysDirection, MonkeysEnvironment, MonkeysPortalContainer, MonkeysPortalOptions, MonkeysProvider, MonkeysProviderAppearance, MonkeysProviderProps, useMonkeysBaseAppearance, useMonkeysComponentAttributes, useMonkeysDataExplorerAppearance, useMonkeysDirection, useMonkeysEnvironment, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme } from './provider/index.mjs';
|
|
5
5
|
export { defaultMonkeysLocale, enUS, mergeMonkeysLocaleMessages, resolveMonkeysLocale, zhCN } from './locale/index.mjs';
|
|
6
|
-
export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as MonkeysDataExplorerMessages, c as MonkeysDialogMessages, d as MonkeysDropdownMenuMessages, e as MonkeysLayoutMessages, f as MonkeysLoadingMessages, g as MonkeysLocale, h as MonkeysLocaleInput, i as MonkeysLocaleMessages, j as MonkeysLocaleMessagesOverride, k as MonkeysMultiSelectMessages, l as MonkeysNumberInputMessages, m as MonkeysPaginationMessages, n as MonkeysPasswordInputMessages, o as MonkeysResolvedLocale, p as MonkeysStepsMessages, q as MonkeysTableMessages, r as MonkeysToastMessages, s as MonkeysToolbarMessages, t as MonkeysWorkbenchMessages } from './types-
|
|
7
|
-
export { AgentWorkbenchActivity, AgentWorkbenchActivityClassNames, AgentWorkbenchActivityModel, AgentWorkbenchActivityProps, AgentWorkbenchApprovalIntent, AgentWorkbenchArtifactIntent, AgentWorkbenchDetailsIntent, AgentWorkbenchDetailsModel, AgentWorkbenchDetailsState, AgentWorkbenchDetailsTab, AgentWorkbenchEventOf, AgentWorkbenchSidebar, AgentWorkbenchSidebarClassNames, AgentWorkbenchSidebarIntent, AgentWorkbenchSidebarProps, AgentWorkbenchTaskDetails, AgentWorkbenchTaskDetailsClassNames, AgentWorkbenchTaskDetailsProps, AgentWorkbenchTerminalModel, AgentWorkbenchTool, AgentWorkbenchToolClassNames, AgentWorkbenchToolProps, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel } from './
|
|
6
|
+
export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as MonkeysDataExplorerMessages, c as MonkeysDialogMessages, d as MonkeysDropdownMenuMessages, e as MonkeysLayoutMessages, f as MonkeysLoadingMessages, g as MonkeysLocale, h as MonkeysLocaleInput, i as MonkeysLocaleMessages, j as MonkeysLocaleMessagesOverride, k as MonkeysMultiSelectMessages, l as MonkeysNumberInputMessages, m as MonkeysPaginationMessages, n as MonkeysPasswordInputMessages, o as MonkeysResolvedLocale, p as MonkeysStepsMessages, q as MonkeysTableMessages, r as MonkeysToastMessages, s as MonkeysToolbarMessages, t as MonkeysWorkbenchMessages } from './types-fad7f358d712.mjs';
|
|
7
|
+
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-36745da2e20f.mjs';
|
|
8
8
|
export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.mjs';
|
|
9
9
|
export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.mjs';
|
|
10
10
|
export { InteractiveTable, InteractiveTableClassNames, InteractiveTableColumn, InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, InteractiveTableEditableTextCellProps, InteractiveTableHeaderContext, InteractiveTableHeaderProps, InteractiveTableProps, InteractiveTableReadonlyCell, InteractiveTableReadonlyCellProps, InteractiveTableRenderContext, InteractiveTableRowState, InteractiveTableSelectCell, InteractiveTableSelectCellProps, InteractiveTableSelectOption, WorkbenchAssetGallery, WorkbenchAssetGalleryItem, WorkbenchAssetGalleryProps, WorkbenchContentPane, WorkbenchContentPaneBodyProps, WorkbenchContentPaneClassNames, WorkbenchContentPaneProps, WorkbenchContentToolbar, WorkbenchContentToolbarClassNames, WorkbenchContentToolbarProps, WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, WorkbenchDetailSidebarBodyProps, WorkbenchDetailSidebarClassNames, WorkbenchDetailSidebarField, WorkbenchDetailSidebarProps, WorkbenchDetailSidebarRenderContext, WorkbenchDetailSidebarSection, WorkbenchEvidenceItem, WorkbenchEvidenceList, WorkbenchEvidenceListProps, WorkbenchGalleryCard, WorkbenchGalleryCardMetaContext, WorkbenchGalleryCardProps, WorkbenchGalleryCardRenderContext, WorkbenchGalleryColumn, WorkbenchGalleryLabels, WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsButtonClassNames, WorkbenchGallerySettingsButtonProps, WorkbenchGallerySettingsLabels, WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, WorkbenchGallerySettingsPanelClassNames, WorkbenchGallerySettingsPanelProps, WorkbenchGallerySettingsValue, WorkbenchGalleryView, WorkbenchGalleryViewProps, WorkbenchJourneyItem, WorkbenchJourneyItemState, WorkbenchJourneyNavigation, WorkbenchJourneyNavigationProps, WorkbenchLaneClassNames, WorkbenchLaneColumn, WorkbenchLaneRenderCardContext, WorkbenchLaneView, WorkbenchLaneViewProps, WorkbenchMasonryItemSize, WorkbenchMasonryLayout, WorkbenchMasonryLayoutContext, WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, WorkbenchMetricGridDensity, WorkbenchMetricGridProps, WorkbenchMetricGridVariant, WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarLegendItem, WorkbenchRadarMatrix, WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, WorkbenchRadarNavigationChild, WorkbenchRadarNavigationItem, WorkbenchRadarNavigationProps, WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, WorkbenchRadarWorkspaceProps, WorkbenchRankedList, WorkbenchRankedListItem, WorkbenchRankedListMetric, WorkbenchRankedListProps, WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, WorkbenchRelationshipGraphProps, WorkbenchRelationshipNode, WorkbenchResizableSidebar, WorkbenchResizableSidebarClassNames, WorkbenchResizableSidebarItem, WorkbenchResizableSidebarProps, WorkbenchResizableSidebarSection, WorkbenchScatterAxis, WorkbenchScatterPlot, WorkbenchScatterPlotProps, WorkbenchScatterPoint, WorkbenchScatterThresholds, WorkbenchSelectionTray, WorkbenchSelectionTrayItem, WorkbenchSelectionTrayProps, WorkbenchTableView, WorkbenchTableViewClassNames, WorkbenchTableViewColumn, WorkbenchTableViewHeaderContext, WorkbenchTableViewProps, WorkbenchTableViewRenderContext, WorkbenchVisualizationTone } from './components/workbench/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export { ApplyThemeTokensOptions, CompileThemeTokensOptions, CompiledThemeTokens
|
|
|
3
3
|
export { ThemeToken, ThemeTokens } from '@inf-monkeys-tech/monkeys/contracts';
|
|
4
4
|
export { MonkeysComponentAttributes, MonkeysDirection, MonkeysEnvironment, MonkeysPortalContainer, MonkeysPortalOptions, MonkeysProvider, MonkeysProviderAppearance, MonkeysProviderProps, useMonkeysBaseAppearance, useMonkeysComponentAttributes, useMonkeysDataExplorerAppearance, useMonkeysDirection, useMonkeysEnvironment, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme } from './provider/index.js';
|
|
5
5
|
export { defaultMonkeysLocale, enUS, mergeMonkeysLocaleMessages, resolveMonkeysLocale, zhCN } from './locale/index.js';
|
|
6
|
-
export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as MonkeysDataExplorerMessages, c as MonkeysDialogMessages, d as MonkeysDropdownMenuMessages, e as MonkeysLayoutMessages, f as MonkeysLoadingMessages, g as MonkeysLocale, h as MonkeysLocaleInput, i as MonkeysLocaleMessages, j as MonkeysLocaleMessagesOverride, k as MonkeysMultiSelectMessages, l as MonkeysNumberInputMessages, m as MonkeysPaginationMessages, n as MonkeysPasswordInputMessages, o as MonkeysResolvedLocale, p as MonkeysStepsMessages, q as MonkeysTableMessages, r as MonkeysToastMessages, s as MonkeysToolbarMessages, t as MonkeysWorkbenchMessages } from './types-
|
|
7
|
-
export { AgentWorkbenchActivity, AgentWorkbenchActivityClassNames, AgentWorkbenchActivityModel, AgentWorkbenchActivityProps, AgentWorkbenchApprovalIntent, AgentWorkbenchArtifactIntent, AgentWorkbenchDetailsIntent, AgentWorkbenchDetailsModel, AgentWorkbenchDetailsState, AgentWorkbenchDetailsTab, AgentWorkbenchEventOf, AgentWorkbenchSidebar, AgentWorkbenchSidebarClassNames, AgentWorkbenchSidebarIntent, AgentWorkbenchSidebarProps, AgentWorkbenchTaskDetails, AgentWorkbenchTaskDetailsClassNames, AgentWorkbenchTaskDetailsProps, AgentWorkbenchTerminalModel, AgentWorkbenchTool, AgentWorkbenchToolClassNames, AgentWorkbenchToolProps, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel } from './
|
|
6
|
+
export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as MonkeysDataExplorerMessages, c as MonkeysDialogMessages, d as MonkeysDropdownMenuMessages, e as MonkeysLayoutMessages, f as MonkeysLoadingMessages, g as MonkeysLocale, h as MonkeysLocaleInput, i as MonkeysLocaleMessages, j as MonkeysLocaleMessagesOverride, k as MonkeysMultiSelectMessages, l as MonkeysNumberInputMessages, m as MonkeysPaginationMessages, n as MonkeysPasswordInputMessages, o as MonkeysResolvedLocale, p as MonkeysStepsMessages, q as MonkeysTableMessages, r as MonkeysToastMessages, s as MonkeysToolbarMessages, t as MonkeysWorkbenchMessages } from './types-fad7f358d712.js';
|
|
7
|
+
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-36745da2e20f.js';
|
|
8
8
|
export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.js';
|
|
9
9
|
export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.js';
|
|
10
10
|
export { InteractiveTable, InteractiveTableClassNames, InteractiveTableColumn, InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, InteractiveTableEditableTextCellProps, InteractiveTableHeaderContext, InteractiveTableHeaderProps, InteractiveTableProps, InteractiveTableReadonlyCell, InteractiveTableReadonlyCellProps, InteractiveTableRenderContext, InteractiveTableRowState, InteractiveTableSelectCell, InteractiveTableSelectCellProps, InteractiveTableSelectOption, WorkbenchAssetGallery, WorkbenchAssetGalleryItem, WorkbenchAssetGalleryProps, WorkbenchContentPane, WorkbenchContentPaneBodyProps, WorkbenchContentPaneClassNames, WorkbenchContentPaneProps, WorkbenchContentToolbar, WorkbenchContentToolbarClassNames, WorkbenchContentToolbarProps, WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, WorkbenchDetailSidebarBodyProps, WorkbenchDetailSidebarClassNames, WorkbenchDetailSidebarField, WorkbenchDetailSidebarProps, WorkbenchDetailSidebarRenderContext, WorkbenchDetailSidebarSection, WorkbenchEvidenceItem, WorkbenchEvidenceList, WorkbenchEvidenceListProps, WorkbenchGalleryCard, WorkbenchGalleryCardMetaContext, WorkbenchGalleryCardProps, WorkbenchGalleryCardRenderContext, WorkbenchGalleryColumn, WorkbenchGalleryLabels, WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsButtonClassNames, WorkbenchGallerySettingsButtonProps, WorkbenchGallerySettingsLabels, WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, WorkbenchGallerySettingsPanelClassNames, WorkbenchGallerySettingsPanelProps, WorkbenchGallerySettingsValue, WorkbenchGalleryView, WorkbenchGalleryViewProps, WorkbenchJourneyItem, WorkbenchJourneyItemState, WorkbenchJourneyNavigation, WorkbenchJourneyNavigationProps, WorkbenchLaneClassNames, WorkbenchLaneColumn, WorkbenchLaneRenderCardContext, WorkbenchLaneView, WorkbenchLaneViewProps, WorkbenchMasonryItemSize, WorkbenchMasonryLayout, WorkbenchMasonryLayoutContext, WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, WorkbenchMetricGridDensity, WorkbenchMetricGridProps, WorkbenchMetricGridVariant, WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarLegendItem, WorkbenchRadarMatrix, WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, WorkbenchRadarNavigationChild, WorkbenchRadarNavigationItem, WorkbenchRadarNavigationProps, WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, WorkbenchRadarWorkspaceProps, WorkbenchRankedList, WorkbenchRankedListItem, WorkbenchRankedListMetric, WorkbenchRankedListProps, WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, WorkbenchRelationshipGraphProps, WorkbenchRelationshipNode, WorkbenchResizableSidebar, WorkbenchResizableSidebarClassNames, WorkbenchResizableSidebarItem, WorkbenchResizableSidebarProps, WorkbenchResizableSidebarSection, WorkbenchScatterAxis, WorkbenchScatterPlot, WorkbenchScatterPlotProps, WorkbenchScatterPoint, WorkbenchScatterThresholds, WorkbenchSelectionTray, WorkbenchSelectionTrayItem, WorkbenchSelectionTrayProps, WorkbenchTableView, WorkbenchTableViewClassNames, WorkbenchTableViewColumn, WorkbenchTableViewHeaderContext, WorkbenchTableViewProps, WorkbenchTableViewRenderContext, WorkbenchVisualizationTone } from './components/workbench/index.js';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ var debounce = require('lodash/debounce.js');
|
|
|
4
4
|
var runtime = require('@inf-monkeys-tech/monkeys/runtime');
|
|
5
5
|
var React2 = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var lucideReact = require('lucide-react');
|
|
8
7
|
var DropdownMenu2 = require('@radix-ui/react-dropdown-menu');
|
|
9
8
|
var tailwindMerge = require('tailwind-merge');
|
|
10
9
|
var ContextMenu = require('@radix-ui/react-context-menu');
|
|
@@ -19,6 +18,7 @@ var reactSlot = require('@radix-ui/react-slot');
|
|
|
19
18
|
var SwitchPrimitive = require('@radix-ui/react-switch');
|
|
20
19
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
21
20
|
var classVarianceAuthority = require('class-variance-authority');
|
|
21
|
+
var lucideReact = require('lucide-react');
|
|
22
22
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
23
23
|
var core = require('@dnd-kit/core');
|
|
24
24
|
var sonner = require('sonner');
|
|
@@ -3088,6 +3088,29 @@ var enUS = {
|
|
|
3088
3088
|
reasoning: "Reasoning",
|
|
3089
3089
|
plan: "Plan",
|
|
3090
3090
|
taskNoDetail: "No additional details",
|
|
3091
|
+
composer: {
|
|
3092
|
+
send: "Send message",
|
|
3093
|
+
stop: "Stop generating",
|
|
3094
|
+
queue: "Queue message",
|
|
3095
|
+
attach: "Add photos or files",
|
|
3096
|
+
voice: "Start voice input",
|
|
3097
|
+
webSearch: "Web search",
|
|
3098
|
+
model: "Model",
|
|
3099
|
+
reasoning: "Reasoning effort",
|
|
3100
|
+
permissions: "Permissions",
|
|
3101
|
+
removeAttachment: "Remove attachment",
|
|
3102
|
+
editQueued: "Edit queued message",
|
|
3103
|
+
deleteQueued: "Delete queued message",
|
|
3104
|
+
moveUp: "Move message up",
|
|
3105
|
+
moveDown: "Move message down",
|
|
3106
|
+
queued: "Queued messages",
|
|
3107
|
+
uploading: "Uploading",
|
|
3108
|
+
noModels: "No models available",
|
|
3109
|
+
message: "Message",
|
|
3110
|
+
attachmentOnly: "Attachment",
|
|
3111
|
+
reasoningOptions: { low: "Low", medium: "Medium", high: "High", xhigh: "Extra high" },
|
|
3112
|
+
permissionOptions: { "approval-required": "Approval required", "auto-approve": "Auto approve", "full-access": "Full access" }
|
|
3113
|
+
},
|
|
3091
3114
|
tool: {
|
|
3092
3115
|
input: "Input",
|
|
3093
3116
|
output: "Output",
|
|
@@ -3301,6 +3324,29 @@ var zhCN = {
|
|
|
3301
3324
|
reasoning: "\u601D\u8003\u8FC7\u7A0B",
|
|
3302
3325
|
plan: "\u6267\u884C\u8BA1\u5212",
|
|
3303
3326
|
taskNoDetail: "\u6682\u65E0\u66F4\u591A\u8BE6\u60C5",
|
|
3327
|
+
composer: {
|
|
3328
|
+
send: "\u53D1\u9001\u6D88\u606F",
|
|
3329
|
+
stop: "\u505C\u6B62\u751F\u6210",
|
|
3330
|
+
queue: "\u6392\u961F\u53D1\u9001",
|
|
3331
|
+
attach: "\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",
|
|
3332
|
+
voice: "\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",
|
|
3333
|
+
webSearch: "\u8054\u7F51\u641C\u7D22",
|
|
3334
|
+
model: "\u6A21\u578B",
|
|
3335
|
+
reasoning: "\u601D\u8003\u5F3A\u5EA6",
|
|
3336
|
+
permissions: "\u6743\u9650",
|
|
3337
|
+
removeAttachment: "\u79FB\u9664\u9644\u4EF6",
|
|
3338
|
+
editQueued: "\u7F16\u8F91\u6392\u961F\u6D88\u606F",
|
|
3339
|
+
deleteQueued: "\u5220\u9664\u6392\u961F\u6D88\u606F",
|
|
3340
|
+
moveUp: "\u4E0A\u79FB\u6D88\u606F",
|
|
3341
|
+
moveDown: "\u4E0B\u79FB\u6D88\u606F",
|
|
3342
|
+
queued: "\u6392\u961F\u6D88\u606F",
|
|
3343
|
+
uploading: "\u4E0A\u4F20\u4E2D",
|
|
3344
|
+
noModels: "\u6682\u65E0\u53EF\u7528\u6A21\u578B",
|
|
3345
|
+
message: "\u6D88\u606F",
|
|
3346
|
+
attachmentOnly: "\u9644\u4EF6",
|
|
3347
|
+
reasoningOptions: { low: "\u4F4E", medium: "\u4E2D", high: "\u9AD8", xhigh: "\u6700\u9AD8" },
|
|
3348
|
+
permissionOptions: { "approval-required": "\u9700\u8981\u6279\u51C6", "auto-approve": "\u81EA\u52A8\u6279\u51C6", "full-access": "\u5B8C\u5168\u8BBF\u95EE" }
|
|
3349
|
+
},
|
|
3304
3350
|
tool: {
|
|
3305
3351
|
input: "\u8F93\u5165",
|
|
3306
3352
|
output: "\u8F93\u51FA",
|
|
@@ -3526,6 +3572,10 @@ function mergeMonkeysLocaleMessages(base, override) {
|
|
|
3526
3572
|
agentWorkbench: {
|
|
3527
3573
|
...base.agentWorkbench,
|
|
3528
3574
|
...override.agentWorkbench,
|
|
3575
|
+
composer: {
|
|
3576
|
+
...base.agentWorkbench.composer,
|
|
3577
|
+
...override.agentWorkbench?.composer
|
|
3578
|
+
},
|
|
3529
3579
|
tool: {
|
|
3530
3580
|
...base.agentWorkbench.tool,
|
|
3531
3581
|
...override.agentWorkbench?.tool,
|
|
@@ -17410,7 +17460,7 @@ function SessionActions({
|
|
|
17410
17460
|
] })
|
|
17411
17461
|
] });
|
|
17412
17462
|
}
|
|
17413
|
-
function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }) {
|
|
17463
|
+
function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }) {
|
|
17414
17464
|
const { locale } = useMonkeysLocale();
|
|
17415
17465
|
const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
17416
17466
|
const searchRef = React2.useRef(null);
|
|
@@ -17487,9 +17537,12 @@ function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }) {
|
|
|
17487
17537
|
),
|
|
17488
17538
|
viewModel.searchQuery ? /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "flex size-6 items-center justify-center rounded-md hover:bg-muted", "aria-label": messages.clearSearch, onClick: () => onIntent?.({ type: "change-search", query: "" }), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3.5", "aria-hidden": "true" }) }) : /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" })
|
|
17489
17539
|
] }),
|
|
17490
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17491
|
-
/* @__PURE__ */ jsxRuntime.
|
|
17492
|
-
|
|
17540
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
17541
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
|
|
17542
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
|
|
17543
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
|
|
17544
|
+
] }),
|
|
17545
|
+
headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
|
|
17493
17546
|
] })
|
|
17494
17547
|
] }),
|
|
17495
17548
|
/* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "agents", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
|