@jini-ai/chat 0.3.1 → 0.3.3
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/LICENSE +201 -0
- package/README.md +1 -1
- package/dist/react/components/Composer.d.ts +36 -1
- package/dist/react/components/Composer.d.ts.map +1 -1
- package/dist/react/components/Composer.js +57 -7
- package/dist/react/components/Composer.js.map +1 -1
- package/dist/react/components/MessageList.d.ts +14 -1
- package/dist/react/components/MessageList.d.ts.map +1 -1
- package/dist/react/components/MessageList.js +10 -8
- package/dist/react/components/MessageList.js.map +1 -1
- package/dist/react/features/chat-pane/components/AgentRuntimePicker.d.ts.map +1 -1
- package/dist/react/features/chat-pane/components/AgentRuntimePicker.js +1 -1
- package/dist/react/features/chat-pane/components/AgentRuntimePicker.js.map +1 -1
- package/dist/react/features/chat-pane/components/ChatPane.d.ts +1 -1
- package/dist/react/features/chat-pane/components/ChatPane.d.ts.map +1 -1
- package/dist/react/features/chat-pane/components/ChatPane.js +87 -12
- package/dist/react/features/chat-pane/components/ChatPane.js.map +1 -1
- package/dist/react/features/chat-pane/hooks/useChatPane.hooks.d.ts +15 -0
- package/dist/react/features/chat-pane/hooks/useChatPane.hooks.d.ts.map +1 -1
- package/dist/react/features/chat-pane/hooks/useChatPane.hooks.js +46 -5
- package/dist/react/features/chat-pane/hooks/useChatPane.hooks.js.map +1 -1
- package/dist/react/features/chat-pane/rules.d.ts +14 -0
- package/dist/react/features/chat-pane/rules.d.ts.map +1 -1
- package/dist/react/features/chat-pane/rules.js +16 -0
- package/dist/react/features/chat-pane/rules.js.map +1 -1
- package/dist/react/features/chat-pane/styles.d.ts +1 -1
- package/dist/react/features/chat-pane/styles.d.ts.map +1 -1
- package/dist/react/features/chat-pane/styles.js +144 -0
- package/dist/react/features/chat-pane/styles.js.map +1 -1
- package/dist/react/features/chat-pane/types.d.ts +25 -0
- package/dist/react/features/chat-pane/types.d.ts.map +1 -1
- package/dist/react/styles/reference.css +15 -0
- package/package.json +13 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may choose to offer, and charge a
|
|
167
|
+
fee for, acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Open Design contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -23,6 +23,41 @@ export interface ComposerProps {
|
|
|
23
23
|
running?: boolean;
|
|
24
24
|
/** Cancels the in-flight run. Required when `running` is true; ignored otherwise. */
|
|
25
25
|
onCancel?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Cmd/Ctrl+Enter: end the run in flight and send this draft next. Optional — without it the
|
|
28
|
+
* modifier falls through to the ordinary Enter path, so a host that has not opted in keeps
|
|
29
|
+
* exactly its previous behavior.
|
|
30
|
+
*/
|
|
31
|
+
onInterrupt?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Current working directory, or null/undefined when none is set yet. Paired with
|
|
34
|
+
* `onChangeWorkingDirectory` — see that prop's own doc for why the trigger's presence is gated
|
|
35
|
+
* on the handler rather than on this value.
|
|
36
|
+
*/
|
|
37
|
+
workingDirectory?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Confirms a directory typed into the working-directory popover. Its presence (not
|
|
40
|
+
* `workingDirectory`'s) is what renders the folder-icon trigger in "popover" mode, next to the
|
|
41
|
+
* attach/discovery button — for a host with no native picker to offer instead. A host that has
|
|
42
|
+
* `ChatPaneWorkingDirectoryAccess` and wants the SAME trigger wired to the native dialog instead
|
|
43
|
+
* passes `onPickWorkingDirectory` (below) in place of this prop, never both. A host relying on
|
|
44
|
+
* `ChatPane`'s richer below-composer `WorkingDirPicker` passes neither, so it gets no second,
|
|
45
|
+
* competing control here. This is the same working-directory value
|
|
46
|
+
* `ChatPane`/`useChatPaneWorkingDirectory` already own — threaded one level deeper into this
|
|
47
|
+
* presentational component, not a parallel concept.
|
|
48
|
+
*/
|
|
49
|
+
onChangeWorkingDirectory?: (workingDirectory: string) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Triggers the host's native OS directory dialog directly. Supplied instead of
|
|
52
|
+
* `onChangeWorkingDirectory` (never alongside it) when the host has a
|
|
53
|
+
* `ChatPaneWorkingDirectoryAccess` implementation and asked `ChatPane` to place the
|
|
54
|
+
* working-directory control in the composer rather than below it
|
|
55
|
+
* (`workingDirectoryControlPlacement="composer"`). Renders the exact same folder-icon trigger as
|
|
56
|
+
* the popover mode — byte-identical `jini-composer-attach` styling, hit area, hover, and focus —
|
|
57
|
+
* but clicking it calls this directly instead of opening the in-page text-input popover: there is
|
|
58
|
+
* nothing to type, the native dialog IS the picker.
|
|
59
|
+
*/
|
|
60
|
+
onPickWorkingDirectory?: () => void;
|
|
26
61
|
}
|
|
27
62
|
/**
|
|
28
63
|
* Renders the controlled message composer and optional attachment picker.
|
|
@@ -30,5 +65,5 @@ export interface ComposerProps {
|
|
|
30
65
|
* @complexity Time/space: O(n) in rendered attachments and supplied menu items.
|
|
31
66
|
* @overallScore 100/100
|
|
32
67
|
*/
|
|
33
|
-
export declare function Composer({ composer, onSend, disabled, sendDisabled, placeholder, slots, attachmentPicker, running, onCancel, }: ComposerProps): import("react").JSX.Element;
|
|
68
|
+
export declare function Composer({ composer, onSend, disabled, sendDisabled, placeholder, slots, attachmentPicker, running, onCancel, onInterrupt, workingDirectory, onChangeWorkingDirectory, onPickWorkingDirectory, }: ComposerProps): import("react").JSX.Element;
|
|
34
69
|
//# sourceMappingURL=Composer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../src/react/components/Composer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAmD,aAAa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,EAAE,OAAO,CAAC;KACrB,CAAC;IACF;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;CACrC;AA+CD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,MAAM,EACN,QAAgB,EAChB,YAAoB,EACpB,WAAW,EACX,KAAK,EACL,gBAAgB,EAChB,OAAe,EACf,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,GACvB,EAAE,aAAa,+BAibf"}
|
|
@@ -64,7 +64,7 @@ function runComposerHostEffect(effectName, effect, onSettled, onResolved) {
|
|
|
64
64
|
* @complexity Time/space: O(n) in rendered attachments and supplied menu items.
|
|
65
65
|
* @overallScore 100/100
|
|
66
66
|
*/
|
|
67
|
-
export function Composer({ composer, onSend, disabled = false, sendDisabled = false, placeholder, slots, attachmentPicker, running = false, onCancel, }) {
|
|
67
|
+
export function Composer({ composer, onSend, disabled = false, sendDisabled = false, placeholder, slots, attachmentPicker, running = false, onCancel, onInterrupt, workingDirectory, onChangeWorkingDirectory, onPickWorkingDirectory, }) {
|
|
68
68
|
const t = useT();
|
|
69
69
|
const attachmentInputRef = useRef(null);
|
|
70
70
|
const textareaRef = useRef(null);
|
|
@@ -84,6 +84,9 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
84
84
|
const [dismissedSlashDraft, setDismissedSlashDraft] = useState(null);
|
|
85
85
|
const [discoveryMenuPosition, setDiscoveryMenuPosition] = useState();
|
|
86
86
|
const [slashMenuPosition, setSlashMenuPosition] = useState();
|
|
87
|
+
const [workdirOpen, setWorkdirOpen] = useState(false);
|
|
88
|
+
const [workdirDraft, setWorkdirDraft] = useState('');
|
|
89
|
+
const [workdirPosition, setWorkdirPosition] = useState();
|
|
87
90
|
const resolvedPlaceholder = placeholder ?? t('Send a message…');
|
|
88
91
|
const discoveryGroups = slots?.discoveryGroups ?? [];
|
|
89
92
|
const hasDiscoveryItems = discoveryGroups.some((group) => group.items.length > 0);
|
|
@@ -116,7 +119,7 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
116
119
|
* component doesn't otherwise need direct handles to.
|
|
117
120
|
*/
|
|
118
121
|
useEffect(() => {
|
|
119
|
-
if (!discoveryMenuOpen && !slashOpen)
|
|
122
|
+
if (!discoveryMenuOpen && !slashOpen && !workdirOpen)
|
|
120
123
|
return;
|
|
121
124
|
const composerRoot = textareaRef.current?.closest('.jini-composer');
|
|
122
125
|
if (!composerRoot)
|
|
@@ -136,10 +139,15 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
136
139
|
if (!insideTextarea && !menu?.contains(target))
|
|
137
140
|
setDismissedSlashDraft(composer.draft);
|
|
138
141
|
}
|
|
142
|
+
if (workdirOpen) {
|
|
143
|
+
const trigger = composerRoot.querySelector('.jini-composer-workdir');
|
|
144
|
+
if (!trigger?.contains(target))
|
|
145
|
+
setWorkdirOpen(false);
|
|
146
|
+
}
|
|
139
147
|
}
|
|
140
148
|
document.addEventListener('mousedown', handleOutsideMouseDown);
|
|
141
149
|
return () => document.removeEventListener('mousedown', handleOutsideMouseDown);
|
|
142
|
-
}, [discoveryMenuOpen, slashOpen, composer.draft]);
|
|
150
|
+
}, [discoveryMenuOpen, slashOpen, workdirOpen, composer.draft]);
|
|
143
151
|
/**
|
|
144
152
|
* Anchors the "+" menu and slash palette to `.jini-composer`'s live on-screen rect via
|
|
145
153
|
* `position: fixed` (see `composerDiscoveryMenuPosition`/`composerSlashMenuPosition`'s own doc
|
|
@@ -151,7 +159,7 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
151
159
|
* composer's on-screen position can change under an open popover without it ever unmounting.
|
|
152
160
|
*/
|
|
153
161
|
useLayoutEffect(() => {
|
|
154
|
-
if (!discoveryMenuOpen && !slashOpen)
|
|
162
|
+
if (!discoveryMenuOpen && !slashOpen && !workdirOpen)
|
|
155
163
|
return undefined;
|
|
156
164
|
const composerRoot = textareaRef.current?.closest('.jini-composer');
|
|
157
165
|
if (!composerRoot)
|
|
@@ -162,6 +170,11 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
162
170
|
setDiscoveryMenuPosition(composerDiscoveryMenuPosition(rect));
|
|
163
171
|
if (slashOpen)
|
|
164
172
|
setSlashMenuPosition(composerSlashMenuPosition(rect));
|
|
173
|
+
// Shares the discovery menu's own anchor math (same left inset off `.jini-composer`) rather
|
|
174
|
+
// than measuring the working-dir button's own rect — one less measurement to keep in sync,
|
|
175
|
+
// and the two popovers already never open at once (each is gated on its own trigger).
|
|
176
|
+
if (workdirOpen)
|
|
177
|
+
setWorkdirPosition(composerDiscoveryMenuPosition(rect));
|
|
165
178
|
}
|
|
166
179
|
update();
|
|
167
180
|
window.addEventListener('scroll', update, true);
|
|
@@ -170,7 +183,7 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
170
183
|
window.removeEventListener('scroll', update, true);
|
|
171
184
|
window.removeEventListener('resize', update);
|
|
172
185
|
};
|
|
173
|
-
}, [discoveryMenuOpen, slashOpen]);
|
|
186
|
+
}, [discoveryMenuOpen, slashOpen, workdirOpen]);
|
|
174
187
|
/**
|
|
175
188
|
* `expectedDraft` is the draft as the user last saw it at the moment of selection — what the
|
|
176
189
|
* host's effect was computed against. `argument` is passed only for a resolved `'invoke'` on a
|
|
@@ -237,6 +250,23 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
237
250
|
notifyDiscovery(item, 'plus', expectedDraft);
|
|
238
251
|
restoreComposerFocus();
|
|
239
252
|
}
|
|
253
|
+
/** Opens the working-directory popover, seeding its draft from the live value so a reopen never
|
|
254
|
+
* shows a stale edit from a previously-dismissed attempt. */
|
|
255
|
+
function toggleWorkdir() {
|
|
256
|
+
if (!workdirOpen)
|
|
257
|
+
setWorkdirDraft(workingDirectory ?? '');
|
|
258
|
+
setWorkdirOpen((open) => !open);
|
|
259
|
+
}
|
|
260
|
+
/** Confirms the popover's draft. Blank input is treated as "no change" (closes without calling
|
|
261
|
+
* the host) rather than clearing the directory — this lightweight control has no clear
|
|
262
|
+
* affordance of its own; `onChangeWorkingDirectory`'s own doc points to the native picker
|
|
263
|
+
* (`ChatPaneWorkingDirectoryAccess`) that does support clearing. */
|
|
264
|
+
function confirmWorkdir() {
|
|
265
|
+
const trimmed = workdirDraft.trim();
|
|
266
|
+
if (trimmed)
|
|
267
|
+
onChangeWorkingDirectory?.(trimmed);
|
|
268
|
+
setWorkdirOpen(false);
|
|
269
|
+
}
|
|
240
270
|
function handleKeyDown(event) {
|
|
241
271
|
if (event.nativeEvent.isComposing)
|
|
242
272
|
return;
|
|
@@ -259,7 +289,16 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
259
289
|
if (event.key !== 'Enter' || event.shiftKey)
|
|
260
290
|
return;
|
|
261
291
|
event.preventDefault();
|
|
262
|
-
if (
|
|
292
|
+
if (disabled || !composer.canSubmit)
|
|
293
|
+
return;
|
|
294
|
+
// Cmd/Ctrl+Enter ends the current run and sends this next; plain Enter queues behind it.
|
|
295
|
+
// `sendDisabled` is deliberately NOT consulted on the interrupt path — while a run streams it
|
|
296
|
+
// is set precisely BECAUSE of that run, which is the one case this modifier exists to act on.
|
|
297
|
+
if ((event.metaKey || event.ctrlKey) && onInterrupt) {
|
|
298
|
+
onInterrupt();
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
if (!sendDisabled)
|
|
263
302
|
onSend();
|
|
264
303
|
}
|
|
265
304
|
function handleAttachmentChange(event) {
|
|
@@ -295,6 +334,17 @@ export function Composer({ composer, onSend, disabled = false, sendDisabled = fa
|
|
|
295
334
|
setDismissedSlashDraft(null);
|
|
296
335
|
}, onKeyDown: handleKeyDown, onPaste: handleAttachmentPaste, "aria-controls": slashOpen ? 'jini-composer-slash-menu' : undefined, "aria-expanded": slashOpen, "aria-activedescendant": slashOpen
|
|
297
336
|
? `jini-composer-slash-option-${Math.min(slashActiveIndex, slashMatches.length - 1)}`
|
|
298
|
-
: undefined, rows: 3 }), slashOpen ? (_jsx(ComposerSlashMenu, { matches: slashMatches, activeIndex: Math.min(slashActiveIndex, slashMatches.length - 1), onSelect: (item) => selectSlashItem(slashMatches.findIndex((match) => match.item === item)), showFilterHint: showSlashFilterHint, style: slashMenuPosition, t: t })) : null, _jsxs("div", { className: "jini-composer-footer", children: [attachmentPicker && !hasDiscoveryItems ? (_jsxs("div", { className: "jini-composer-attachment-picker", children: [_jsx("input", { ref: attachmentInputRef, className: "jini-composer-file-input", "data-testid": "composer-attachment-input", type: "file", multiple: true, "aria-label": t('Attach files'), accept: attachmentPicker.accept, disabled: disabled || attachmentPicker.uploading, onChange: handleAttachmentChange }), _jsx("button", { type: "button", className: "jini-composer-attach", disabled: disabled || attachmentPicker.uploading, onClick: () => attachmentInputRef.current?.click(), title: t(attachmentPicker.uploading ? 'Attaching files…' : 'Attach files'), "aria-label": t(attachmentPicker.uploading ? 'Attaching files…' : 'Attach files'), children: _jsx(RemixIcon, { name: attachmentPicker.uploading ? 'refresh-line' : 'add-line', size: 20, ...(attachmentPicker.uploading ? { className: 'jini-composer-spinner' } : {}) }) })] })) : null, hasDiscoveryItems ? (_jsx(ComposerDiscoveryMenu, { groups: discoveryGroups, open: discoveryMenuOpen, disabled: disabled, ...(attachmentPicker ? { attachmentPicker } : {}), attachmentInputRef: attachmentInputRef, onToggle: () => setDiscoveryMenuOpen((open) => !open), onClose: () => setDiscoveryMenuOpen(false), onSelect: selectPlusItem, onAttachmentChange: handleAttachmentChange, style: discoveryMenuPosition, t: t })) : null,
|
|
337
|
+
: undefined, rows: 3 }), slashOpen ? (_jsx(ComposerSlashMenu, { matches: slashMatches, activeIndex: Math.min(slashActiveIndex, slashMatches.length - 1), onSelect: (item) => selectSlashItem(slashMatches.findIndex((match) => match.item === item)), showFilterHint: showSlashFilterHint, style: slashMenuPosition, t: t })) : null, _jsxs("div", { className: "jini-composer-footer", children: [attachmentPicker && !hasDiscoveryItems ? (_jsxs("div", { className: "jini-composer-attachment-picker", children: [_jsx("input", { ref: attachmentInputRef, className: "jini-composer-file-input", "data-testid": "composer-attachment-input", type: "file", multiple: true, "aria-label": t('Attach files'), accept: attachmentPicker.accept, disabled: disabled || attachmentPicker.uploading, onChange: handleAttachmentChange }), _jsx("button", { type: "button", className: "jini-composer-attach", disabled: disabled || attachmentPicker.uploading, onClick: () => attachmentInputRef.current?.click(), title: t(attachmentPicker.uploading ? 'Attaching files…' : 'Attach files'), "aria-label": t(attachmentPicker.uploading ? 'Attaching files…' : 'Attach files'), children: _jsx(RemixIcon, { name: attachmentPicker.uploading ? 'refresh-line' : 'add-line', size: 20, ...(attachmentPicker.uploading ? { className: 'jini-composer-spinner' } : {}) }) })] })) : null, hasDiscoveryItems ? (_jsx(ComposerDiscoveryMenu, { groups: discoveryGroups, open: discoveryMenuOpen, disabled: disabled, ...(attachmentPicker ? { attachmentPicker } : {}), attachmentInputRef: attachmentInputRef, onToggle: () => setDiscoveryMenuOpen((open) => !open), onClose: () => setDiscoveryMenuOpen(false), onSelect: selectPlusItem, onAttachmentChange: handleAttachmentChange, style: discoveryMenuPosition, t: t })) : null, onChangeWorkingDirectory || onPickWorkingDirectory ? (_jsxs("div", { className: "jini-composer-workdir", "data-testid": "composer-workdir", children: [_jsx("button", { type: "button", className: "jini-composer-attach", "data-testid": "composer-workdir-trigger", disabled: disabled, onClick: onPickWorkingDirectory ? () => onPickWorkingDirectory() : toggleWorkdir, ...(onPickWorkingDirectory ? {} : { 'aria-haspopup': 'dialog', 'aria-expanded': workdirOpen }), title: workingDirectory ?? t('Set working directory'), "aria-label": workingDirectory
|
|
338
|
+
? t('Working directory: {dir}', { dir: workingDirectory })
|
|
339
|
+
: t('Set working directory'), children: _jsx(RemixIcon, { name: "folder-line", size: 20 }) }), !onPickWorkingDirectory && workdirOpen ? (_jsxs("div", { className: "jini-composer-workdir-panel", "data-testid": "composer-workdir-panel", role: "dialog", "aria-label": t('Working directory'), style: workdirPosition, children: [_jsx("input", { type: "text", className: "jini-composer-workdir-input", "data-testid": "composer-workdir-input", value: workdirDraft, onChange: (e) => setWorkdirDraft(e.target.value), onKeyDown: (e) => {
|
|
340
|
+
if (e.key === 'Enter') {
|
|
341
|
+
e.preventDefault();
|
|
342
|
+
confirmWorkdir();
|
|
343
|
+
}
|
|
344
|
+
else if (e.key === 'Escape') {
|
|
345
|
+
e.preventDefault();
|
|
346
|
+
setWorkdirOpen(false);
|
|
347
|
+
}
|
|
348
|
+
}, placeholder: t('Working directory path'), "aria-label": t('Working directory path'), autoFocus: true }), _jsx("button", { type: "button", className: "jini-composer-workdir-confirm", "data-testid": "composer-workdir-confirm", onClick: confirmWorkdir, children: t('Set') })] })) : null] })) : null, slots?.footerAccessories ? (_jsx("div", { className: "jini-composer-footer-accessories", children: slots.footerAccessories })) : null, slots?.plusMenuItems && slots.plusMenuItems.length > 0 ? (_jsx("div", { className: "jini-composer-plus-menu", children: slots.plusMenuItems.map((item) => (_jsxs("button", { type: "button", className: "jini-composer-plus-item", onClick: () => runComposerHostEffect('plusMenuItems.onSelect', () => item.onSelect()), title: t(item.label), children: [item.icon ?? null, _jsx("span", { children: t(item.label) })] }, item.id))) })) : null, running ? (_jsx("button", { type: "button", className: "jini-composer-send jini-composer-send--stop", onClick: onCancel, title: t('Stop run'), "aria-label": t('Stop run'), children: _jsx(RemixIcon, { name: "stop-fill", size: 14 }) })) : (_jsx("button", { type: "button", className: "jini-composer-send", disabled: disabled || sendDisabled || !composer.canSubmit, onClick: onSend, title: t('Send'), "aria-label": t('Send'), children: _jsx(RemixIcon, { name: "send-plane-2-line", size: 16 }) }))] })] }));
|
|
299
349
|
}
|
|
300
350
|
//# sourceMappingURL=Composer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.js","sourceRoot":"","sources":["../../../src/react/components/Composer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,SAAS,EACT,eAAe,EACf,MAAM,EACN,QAAQ,GAKT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AA2BjC,SAAS,+BAA+B,CAAC,UAAkB,EAAE,KAAc;IACzE,OAAO,CAAC,KAAK,CAAC,4BAA4B,UAAU,sBAAsB,EAAE,KAAK,CAAC,CAAC;AACrF,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,qBAAqB,CAC5B,UAAkB,EAClB,MAAqB,EACrB,SAAsB,EACtB,UAAsC;IAEtC,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,EAAE,CAAC;IACpB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,+BAA+B,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACnD,SAAS,EAAE,EAAE,CAAC;QACd,OAAO;IACT,CAAC;IAED,MAAM,YAAY,GAAG,MA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essageListProps extends Pick<MessageRowProps, 'projectFileName
|
|
|
10
10
|
activeQuestionFormMessageId?: string | null;
|
|
11
11
|
questionFormSubmittedAnswersByMessageId?: Record<string, Record<string, string | string[]>>;
|
|
12
12
|
onQuestionFormSubmit?: (messageId: string, text: string, answers: Record<string, string | string[]>) => void;
|
|
13
|
+
/**
|
|
14
|
+
* A composer-driven turn typed while a run is in flight, mirroring `useChatPane().queuedPrompt` —
|
|
15
|
+
* rendered as the newest transcript entry (like Claude Code/ChatGPT's own pending-turn UI)
|
|
16
|
+
* instead of a banner bolted above the composer. Deliberately NOT a `ChatMessage`: it has no
|
|
17
|
+
* persisted id (nothing here could mint one without risking collision with a real message once
|
|
18
|
+
* this prompt is actually sent) and is never written to `messages`/storage — purely a rendering
|
|
19
|
+
* of `useChatPane`'s own in-memory queue slot. `null`/omitted renders nothing, matching the old
|
|
20
|
+
* strip's "shown only once something is actually queued" behavior.
|
|
21
|
+
*/
|
|
22
|
+
pendingPrompt?: {
|
|
23
|
+
text: string;
|
|
24
|
+
onCancel: () => void;
|
|
25
|
+
} | null;
|
|
13
26
|
}
|
|
14
|
-
export declare function MessageList({ messages, isStreaming, scrollIntent, onScrolled, activeQuestionFormMessageId, questionFormSubmittedAnswersByMessageId, onQuestionFormSubmit, projectFileNames, onRequestOpenFile, renderAttachment, }: MessageListProps): import("react").JSX.Element;
|
|
27
|
+
export declare function MessageList({ messages, isStreaming, scrollIntent, onScrolled, activeQuestionFormMessageId, questionFormSubmittedAnswersByMessageId, onQuestionFormSubmit, projectFileNames, onRequestOpenFile, renderAttachment, pendingPrompt, }: MessageListProps): import("react").JSX.Element;
|
|
15
28
|
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../src/react/components/MessageList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../src/react/components/MessageList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,eAAe,EAAE,kBAAkB,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;IAC5H,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,uCAAuC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5F,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7G;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC/D;AAUD,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAmB,EACnB,YAAoB,EACpB,UAAU,EACV,2BAAkC,EAClC,uCAAuC,EACvC,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAoB,GACrB,EAAE,gBAAgB,+BAwGlB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* @module MessageList
|
|
4
4
|
*
|
|
@@ -13,6 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
*/
|
|
14
14
|
import { useEffect, useRef } from 'react';
|
|
15
15
|
import { isTerminalRunStatus } from '../../core/index.js';
|
|
16
|
+
import { useT } from '../hooks/context.js';
|
|
16
17
|
import { MessageRow } from './MessageRow.js';
|
|
17
18
|
/** Slack, in px, for treating "close enough to the bottom" as "at the bottom" — a fractional
|
|
18
19
|
* scrollHeight/clientHeight rounding difference should not by itself stop the sticky-follow below. */
|
|
@@ -20,7 +21,8 @@ const AT_BOTTOM_THRESHOLD_PX = 4;
|
|
|
20
21
|
function isScrolledToBottom(el) {
|
|
21
22
|
return el.scrollHeight - el.scrollTop - el.clientHeight <= AT_BOTTOM_THRESHOLD_PX;
|
|
22
23
|
}
|
|
23
|
-
export function MessageList({ messages, isStreaming = false, scrollIntent = false, onScrolled, activeQuestionFormMessageId = null, questionFormSubmittedAnswersByMessageId, onQuestionFormSubmit, projectFileNames, onRequestOpenFile, renderAttachment, }) {
|
|
24
|
+
export function MessageList({ messages, isStreaming = false, scrollIntent = false, onScrolled, activeQuestionFormMessageId = null, questionFormSubmittedAnswersByMessageId, onQuestionFormSubmit, projectFileNames, onRequestOpenFile, renderAttachment, pendingPrompt = null, }) {
|
|
25
|
+
const t = useT();
|
|
24
26
|
const containerRef = useRef(null);
|
|
25
27
|
// Whether the transcript was scrolled to its bottom as of the last user scroll or programmatic
|
|
26
28
|
// scroll-to-bottom — read by the ResizeObserver effect below, which only ever sees the DOM AFTER a
|
|
@@ -70,12 +72,12 @@ export function MessageList({ messages, isStreaming = false, scrollIntent = fals
|
|
|
70
72
|
observer.observe(child);
|
|
71
73
|
return () => observer.disconnect();
|
|
72
74
|
}, [messages]);
|
|
73
|
-
return (
|
|
75
|
+
return (_jsxs("div", { className: "jini-message-list", ref: containerRef, onScroll: (event) => {
|
|
74
76
|
stickToBottomRef.current = isScrolledToBottom(event.currentTarget);
|
|
75
|
-
}, "data-agent-element": "chat-transcript", "data-agent-role": "list", "data-agent-label": "The conversation transcript, oldest message first", children: messages.map((message) => {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
}, "data-agent-element": "chat-transcript", "data-agent-role": "list", "data-agent-label": "The conversation transcript, oldest message first", children: [messages.map((message) => {
|
|
78
|
+
const isLast = message.id === messages[messages.length - 1]?.id;
|
|
79
|
+
const runStreaming = isLast && isStreaming && !isTerminalRunStatus(message.runStatus);
|
|
80
|
+
return (_jsx(MessageRow, { message: message, runStreaming: runStreaming, runSucceeded: message.runStatus === 'succeeded', questionFormInteractive: message.id === activeQuestionFormMessageId, ...(questionFormSubmittedAnswersByMessageId?.[message.id] !== undefined ? { questionFormSubmittedAnswers: questionFormSubmittedAnswersByMessageId[message.id] } : {}), ...(onQuestionFormSubmit !== undefined ? { onQuestionFormSubmit: (text, answers) => onQuestionFormSubmit(message.id, text, answers) } : {}), ...(projectFileNames !== undefined ? { projectFileNames } : {}), ...(onRequestOpenFile !== undefined ? { onRequestOpenFile } : {}), ...(renderAttachment !== undefined ? { renderAttachment } : {}) }, message.id));
|
|
81
|
+
}), pendingPrompt ? (_jsxs("div", { className: "jini-chat-pane__queued", role: "status", "aria-label": t('Message queued — not yet sent, will send once the current run finishes'), "data-testid": "chat-pane-queued", "data-agent-element": "chat-message-pending", "data-agent-role": "region", "data-agent-label": "A message queued to send once the current run finishes", children: [_jsx("div", { className: "jini-chat-pane__queued-text", children: pendingPrompt.text }), _jsx("div", { className: "jini-chat-pane__queued-actions", children: _jsx("button", { type: "button", className: "jini-chat-pane__queued-cancel", onClick: pendingPrompt.onCancel, title: t('Cancel queued message'), children: t('Cancel') }) })] })) : null] }));
|
|
80
82
|
}
|
|
81
83
|
//# sourceMappingURL=MessageList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.js","sourceRoot":"","sources":["../../../src/react/components/MessageList.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAwB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageList.js","sourceRoot":"","sources":["../../../src/react/components/MessageList.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAwB,MAAM,iBAAiB,CAAC;AAwBnE;sGACsG;AACtG,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAEjC,SAAS,kBAAkB,CAAC,EAAe;IACzC,OAAO,EAAE,CAAC,YAAY,GAAG,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,YAAY,IAAI,sBAAsB,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,GAAG,KAAK,EACnB,YAAY,GAAG,KAAK,EACpB,UAAU,EACV,2BAA2B,GAAG,IAAI,EAClC,uCAAuC,EACvC,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,GAAG,IAAI,GACH;IACjB,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;IACjB,MAAM,YAAY,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IACzD,+FAA+F;IAC/F,mGAAmG;IACnG,gGAAgG;IAChG,oGAAoG;IACpG,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CA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C,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC9D,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAT3D,OAAO,CAAC,EAAE,CAUf,CACH,CAAC;YACJ,CAAC,CAAC,EACD,aAAa,CAAC,CAAC,CAAC,CACf,eACE,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAC,QAAQ,gBACD,CAAC,CAAC,wEAAwE,CAAC,iBAC3E,kBAAkB,wBACX,sBAAsB,qBACzB,QAAQ,sBACP,wDAAwD,aAEzE,cAAK,SAAS,EAAC,6BAA6B,YAAE,aAAa,CAAC,IAAI,GAAO,EACvE,cAAK,SAAS,EAAC,gCAAgC,YAC7C,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,aAAa,CAAC,QAAQ,EAC/B,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,YAEhC,CAAC,CAAC,QAAQ,CAAC,GACL,GACL,IACF,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRuntimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/react/features/chat-pane/components/AgentRuntimePicker.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,uBAAuB,EAEvB,aAAa,EAEd,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,CAAC;AAEtD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAI/D;
|
|
1
|
+
{"version":3,"file":"AgentRuntimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/react/features/chat-pane/components/AgentRuntimePicker.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,uBAAuB,EAEvB,aAAa,EAEd,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,CAAC;AAEtD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAI/D;AAkQD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,YAAmB,EACnB,SAAgB,EAChB,aAAuB,EACvB,gBAAwB,EACxB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EAIjB,iBAAiB,GAClB,EAAE,uBAAuB,+BA0HzB"}
|
|
@@ -24,7 +24,7 @@ function RuntimeAgentList({ orderedAgents, value, onChange, agentIconBasePath, t
|
|
|
24
24
|
return (_jsx(_Fragment, { children: orderedAgents.map((agent) => {
|
|
25
25
|
const active = agent.id === value.agentId;
|
|
26
26
|
const status = runtimeAgentStatus(agent);
|
|
27
|
-
return (_jsxs("button", { type: "button", role: "radio", "aria-checked": active, className: `jini-runtime-agent${active ? ' is-active' : ''}`, "aria-current": active ? 'true' : undefined, "aria-label": `${agent.name} · ${status}`, onClick: () => onChange(defaultChatPaneSelection(agent)), children: [_jsx(AgentIcon, { id: agent.id, size: 20, className: "jini-runtime-agent-icon", ...(agentIconBasePath === undefined ? {} : { basePath: agentIconBasePath }) }), _jsx("span", { className: "jini-runtime-agent__copy", children: _jsx("strong", { children: agent.name }) }), _jsx("span", { className: "jini-runtime-agent__status", children: active ? t('selected') : status }), active ? (_jsx(RemixIcon, { name: "check-line", size: 19, className: "jini-runtime-check" })) : null] }, agent.id));
|
|
27
|
+
return (_jsxs("button", { type: "button", role: "radio", "aria-checked": active, className: `jini-runtime-agent${active ? ' is-active' : ''}`, "aria-current": active ? 'true' : undefined, "aria-label": `${agent.name} · ${status}`, onClick: () => onChange(defaultChatPaneSelection(agent)), children: [_jsx(AgentIcon, { id: agent.id, size: 20, className: "jini-runtime-agent-icon", ...(agentIconBasePath === undefined ? {} : { basePath: agentIconBasePath }) }), _jsx("span", { className: "jini-runtime-agent__copy", children: _jsx("strong", { children: agent.name }) }), agent.supportsTools === false ? (_jsx("span", { className: "jini-runtime-agent__badge", title: t('This CLI has no MCP support, so it cannot use Tovu tools.'), children: t('No tools') })) : null, _jsx("span", { className: "jini-runtime-agent__status", children: active ? t('selected') : status }), active ? (_jsx(RemixIcon, { name: "check-line", size: 19, className: "jini-runtime-check" })) : null] }, agent.id));
|
|
28
28
|
}) }));
|
|
29
29
|
}
|
|
30
30
|
function RuntimeModelSelects({ selectedAgent, value, onChange, t }) {
|