@stigmer/react 0.0.36
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 +190 -0
- package/README.md +248 -0
- package/agent/components/AgentCard.d.ts +9 -0
- package/agent/components/AgentCard.d.ts.map +1 -0
- package/agent/components/AgentCard.js +26 -0
- package/agent/components/AgentCard.js.map +1 -0
- package/agent/components/AgentOverview.d.ts +7 -0
- package/agent/components/AgentOverview.d.ts.map +1 -0
- package/agent/components/AgentOverview.js +36 -0
- package/agent/components/AgentOverview.js.map +1 -0
- package/agent/components/AgentPicker.d.ts +17 -0
- package/agent/components/AgentPicker.d.ts.map +1 -0
- package/agent/components/AgentPicker.js +86 -0
- package/agent/components/AgentPicker.js.map +1 -0
- package/agent/hooks/useAgentSearch.d.ts +28 -0
- package/agent/hooks/useAgentSearch.d.ts.map +1 -0
- package/agent/hooks/useAgentSearch.js +63 -0
- package/agent/hooks/useAgentSearch.js.map +1 -0
- package/agent/index.d.ts +9 -0
- package/agent/index.d.ts.map +1 -0
- package/agent/index.js +7 -0
- package/agent/index.js.map +1 -0
- package/agent-execution/components/ApprovalControls.d.ts +10 -0
- package/agent-execution/components/ApprovalControls.d.ts.map +1 -0
- package/agent-execution/components/ApprovalControls.js +19 -0
- package/agent-execution/components/ApprovalControls.js.map +1 -0
- package/agent-execution/components/ExecutionStatus.d.ts +8 -0
- package/agent-execution/components/ExecutionStatus.d.ts.map +1 -0
- package/agent-execution/components/ExecutionStatus.js +14 -0
- package/agent-execution/components/ExecutionStatus.js.map +1 -0
- package/agent-execution/components/ExecutionStream.d.ts +16 -0
- package/agent-execution/components/ExecutionStream.d.ts.map +1 -0
- package/agent-execution/components/ExecutionStream.js +39 -0
- package/agent-execution/components/ExecutionStream.js.map +1 -0
- package/agent-execution/components/MessageEntry.d.ts +17 -0
- package/agent-execution/components/MessageEntry.d.ts.map +1 -0
- package/agent-execution/components/MessageEntry.js +36 -0
- package/agent-execution/components/MessageEntry.js.map +1 -0
- package/agent-execution/components/MessageInput.d.ts +10 -0
- package/agent-execution/components/MessageInput.d.ts.map +1 -0
- package/agent-execution/components/MessageInput.js +27 -0
- package/agent-execution/components/MessageInput.js.map +1 -0
- package/agent-execution/components/OutputBlock.d.ts +9 -0
- package/agent-execution/components/OutputBlock.d.ts.map +1 -0
- package/agent-execution/components/OutputBlock.js +15 -0
- package/agent-execution/components/OutputBlock.js.map +1 -0
- package/agent-execution/components/SubAgentCard.d.ts +11 -0
- package/agent-execution/components/SubAgentCard.d.ts.map +1 -0
- package/agent-execution/components/SubAgentCard.js +19 -0
- package/agent-execution/components/SubAgentCard.js.map +1 -0
- package/agent-execution/components/ToolCallCard.d.ts +11 -0
- package/agent-execution/components/ToolCallCard.d.ts.map +1 -0
- package/agent-execution/components/ToolCallCard.js +25 -0
- package/agent-execution/components/ToolCallCard.js.map +1 -0
- package/agent-execution/helpers.d.ts +35 -0
- package/agent-execution/helpers.d.ts.map +1 -0
- package/agent-execution/helpers.js +157 -0
- package/agent-execution/helpers.js.map +1 -0
- package/agent-execution/hooks/useAgentExecution.d.ts +21 -0
- package/agent-execution/hooks/useAgentExecution.d.ts.map +1 -0
- package/agent-execution/hooks/useAgentExecution.js +99 -0
- package/agent-execution/hooks/useAgentExecution.js.map +1 -0
- package/agent-execution/hooks/useApproval.d.ts +12 -0
- package/agent-execution/hooks/useApproval.d.ts.map +1 -0
- package/agent-execution/hooks/useApproval.js +32 -0
- package/agent-execution/hooks/useApproval.js.map +1 -0
- package/agent-execution/index.d.ts +14 -0
- package/agent-execution/index.d.ts.map +1 -0
- package/agent-execution/index.js +15 -0
- package/agent-execution/index.js.map +1 -0
- package/catalog/components/ResourceSearchCard.d.ts +23 -0
- package/catalog/components/ResourceSearchCard.d.ts.map +1 -0
- package/catalog/components/ResourceSearchCard.js +36 -0
- package/catalog/components/ResourceSearchCard.js.map +1 -0
- package/catalog/index.d.ts +4 -0
- package/catalog/index.d.ts.map +1 -0
- package/catalog/index.js +5 -0
- package/catalog/index.js.map +1 -0
- package/catalog/internal/time.d.ts +13 -0
- package/catalog/internal/time.d.ts.map +1 -0
- package/catalog/internal/time.js +41 -0
- package/catalog/internal/time.js.map +1 -0
- package/context.d.ts +12 -0
- package/context.d.ts.map +1 -0
- package/context.js +13 -0
- package/context.js.map +1 -0
- package/hooks.d.ts +19 -0
- package/hooks.d.ts.map +1 -0
- package/hooks.js +28 -0
- package/hooks.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +6 -0
- package/index.js.map +1 -0
- package/internal/badge.d.ts +8 -0
- package/internal/badge.d.ts.map +1 -0
- package/internal/badge.js +34 -0
- package/internal/badge.js.map +1 -0
- package/internal/button.d.ts +9 -0
- package/internal/button.d.ts.map +1 -0
- package/internal/button.js +36 -0
- package/internal/button.js.map +1 -0
- package/internal/collapsible.d.ts +6 -0
- package/internal/collapsible.d.ts.map +1 -0
- package/internal/collapsible.js +14 -0
- package/internal/collapsible.js.map +1 -0
- package/internal/section.d.ts +8 -0
- package/internal/section.d.ts.map +1 -0
- package/internal/section.js +6 -0
- package/internal/section.js.map +1 -0
- package/internal/textarea.d.ts +4 -0
- package/internal/textarea.d.ts.map +1 -0
- package/internal/textarea.js +9 -0
- package/internal/textarea.js.map +1 -0
- package/mcp-server/hooks/useMcpServerSearch.d.ts +25 -0
- package/mcp-server/hooks/useMcpServerSearch.d.ts.map +1 -0
- package/mcp-server/hooks/useMcpServerSearch.js +57 -0
- package/mcp-server/hooks/useMcpServerSearch.js.map +1 -0
- package/mcp-server/index.d.ts +3 -0
- package/mcp-server/index.d.ts.map +1 -0
- package/mcp-server/index.js +3 -0
- package/mcp-server/index.js.map +1 -0
- package/package.json +75 -0
- package/provider.d.ts +55 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +34 -0
- package/provider.js.map +1 -0
- package/session/components/AgentSessionHistory.d.ts +8 -0
- package/session/components/AgentSessionHistory.d.ts.map +1 -0
- package/session/components/AgentSessionHistory.js +11 -0
- package/session/components/AgentSessionHistory.js.map +1 -0
- package/session/components/SessionCard.d.ts +8 -0
- package/session/components/SessionCard.d.ts.map +1 -0
- package/session/components/SessionCard.js +57 -0
- package/session/components/SessionCard.js.map +1 -0
- package/session/hooks/useAgentSessionList.d.ts +21 -0
- package/session/hooks/useAgentSessionList.d.ts.map +1 -0
- package/session/hooks/useAgentSessionList.js +90 -0
- package/session/hooks/useAgentSessionList.js.map +1 -0
- package/session/index.d.ts +7 -0
- package/session/index.d.ts.map +1 -0
- package/session/index.js +6 -0
- package/session/index.js.map +1 -0
- package/skill/hooks/useSkillSearch.d.ts +25 -0
- package/skill/hooks/useSkillSearch.d.ts.map +1 -0
- package/skill/hooks/useSkillSearch.js +57 -0
- package/skill/hooks/useSkillSearch.js.map +1 -0
- package/skill/index.d.ts +3 -0
- package/skill/index.d.ts.map +1 -0
- package/skill/index.js +3 -0
- package/skill/index.js.map +1 -0
- package/src/agent/components/AgentCard.tsx +125 -0
- package/src/agent/components/AgentOverview.tsx +209 -0
- package/src/agent/components/AgentPicker.tsx +255 -0
- package/src/agent/hooks/useAgentSearch.ts +94 -0
- package/src/agent/index.ts +17 -0
- package/src/agent-execution/components/ApprovalControls.tsx +99 -0
- package/src/agent-execution/components/ExecutionStatus.tsx +33 -0
- package/src/agent-execution/components/ExecutionStream.tsx +148 -0
- package/src/agent-execution/components/MessageEntry.tsx +125 -0
- package/src/agent-execution/components/MessageInput.tsx +70 -0
- package/src/agent-execution/components/OutputBlock.tsx +43 -0
- package/src/agent-execution/components/SubAgentCard.tsx +138 -0
- package/src/agent-execution/components/ToolCallCard.tsx +153 -0
- package/src/agent-execution/helpers.ts +193 -0
- package/src/agent-execution/hooks/useAgentExecution.ts +147 -0
- package/src/agent-execution/hooks/useApproval.ts +56 -0
- package/src/agent-execution/index.ts +46 -0
- package/src/catalog/components/ResourceSearchCard.tsx +137 -0
- package/src/catalog/index.ts +6 -0
- package/src/catalog/internal/time.ts +40 -0
- package/src/context.ts +15 -0
- package/src/hooks.ts +32 -0
- package/src/index.ts +6 -0
- package/src/internal/badge.tsx +52 -0
- package/src/internal/button.tsx +60 -0
- package/src/internal/collapsible.tsx +21 -0
- package/src/internal/section.tsx +18 -0
- package/src/internal/textarea.tsx +23 -0
- package/src/mcp-server/hooks/useMcpServerSearch.ts +79 -0
- package/src/mcp-server/index.ts +6 -0
- package/src/provider.tsx +73 -0
- package/src/session/components/AgentSessionHistory.tsx +109 -0
- package/src/session/components/SessionCard.tsx +113 -0
- package/src/session/hooks/useAgentSessionList.ts +117 -0
- package/src/session/index.ts +13 -0
- package/src/skill/hooks/useSkillSearch.ts +79 -0
- package/src/skill/index.ts +6 -0
- package/src/styles.css +72 -0
- package/styles.css +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
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 reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and 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 Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Stigmer Contributors
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# @stigmer/react
|
|
2
|
+
|
|
3
|
+
React hooks and embeddable components for the Stigmer platform. Drop pre-built agent UIs into any React application with full theming control and style isolation.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @stigmer/react @stigmer/sdk @stigmer/protos
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Peer dependencies (install alongside):
|
|
12
|
+
|
|
13
|
+
| Package | Version |
|
|
14
|
+
|---------|---------|
|
|
15
|
+
| `react` | `^19.0.0` |
|
|
16
|
+
| `react-dom` | `^19.0.0` |
|
|
17
|
+
| `@stigmer/sdk` | `*` |
|
|
18
|
+
| `@stigmer/protos` | `*` |
|
|
19
|
+
| `@bufbuild/protobuf` | `^2.0.0` |
|
|
20
|
+
| `@base-ui/react` | `^1.0.0` |
|
|
21
|
+
| `class-variance-authority` | `^0.7.0` |
|
|
22
|
+
| `lucide-react` | `>=0.400.0` |
|
|
23
|
+
| `react-markdown` | `^10.0.0` |
|
|
24
|
+
| `remark-gfm` | `^4.0.0` |
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { Stigmer } from "@stigmer/sdk";
|
|
30
|
+
import { StigmerProvider } from "@stigmer/react";
|
|
31
|
+
import { AgentPicker } from "@stigmer/react/agent";
|
|
32
|
+
import "@stigmer/react/styles.css";
|
|
33
|
+
|
|
34
|
+
const client = new Stigmer({
|
|
35
|
+
baseUrl: "https://api.stigmer.io",
|
|
36
|
+
getAccessToken: () => auth.getToken(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
function App() {
|
|
40
|
+
return (
|
|
41
|
+
<StigmerProvider client={client} preset="corporate">
|
|
42
|
+
<AgentPicker onSelect={(agent) => console.log(agent)} />
|
|
43
|
+
</StigmerProvider>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Three things are required:
|
|
49
|
+
|
|
50
|
+
1. **A `Stigmer` client** — see [`@stigmer/sdk`](../typescript/README.md) for configuration options.
|
|
51
|
+
2. **`<StigmerProvider>`** — distributes the client to all descendant components and scopes styles.
|
|
52
|
+
3. **`@stigmer/react/styles.css`** — the compiled stylesheet. Import once at your application root.
|
|
53
|
+
|
|
54
|
+
## Provider
|
|
55
|
+
|
|
56
|
+
`StigmerProvider` wraps your component tree, supplies the SDK client via React context, and renders a `<div class="stgm">` container that scopes all Stigmer styles.
|
|
57
|
+
|
|
58
|
+
### Props
|
|
59
|
+
|
|
60
|
+
| Prop | Type | Required | Description |
|
|
61
|
+
|------|------|----------|-------------|
|
|
62
|
+
| `client` | `Stigmer` | Yes | A configured `@stigmer/sdk` client instance. |
|
|
63
|
+
| `preset` | `ThemePresetId` | No | Built-in theme preset to apply. Omit for the default Stigmer palette. |
|
|
64
|
+
| `className` | `string` | No | Additional CSS classes on the scoping container. |
|
|
65
|
+
|
|
66
|
+
### `useStigmer()` Hook
|
|
67
|
+
|
|
68
|
+
Access the client from any descendant component:
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
import { useStigmer } from "@stigmer/react";
|
|
72
|
+
|
|
73
|
+
function MyComponent() {
|
|
74
|
+
const stigmer = useStigmer();
|
|
75
|
+
// stigmer.agent.get(id), stigmer.session.list(...), etc.
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Throws if called outside a `<StigmerProvider>`.
|
|
80
|
+
|
|
81
|
+
## Theming
|
|
82
|
+
|
|
83
|
+
### Built-in Presets
|
|
84
|
+
|
|
85
|
+
Pass a `preset` prop to apply a complete design language — colors, border radius, shadows, transitions, and sidebar appearance for both light and dark modes.
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
<StigmerProvider client={client} preset="fintech">
|
|
89
|
+
{children}
|
|
90
|
+
</StigmerProvider>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
| Preset | Archetype | Description |
|
|
94
|
+
|--------|-----------|-------------|
|
|
95
|
+
| `"default"` | Stigmer identity | Teal palette, balanced radius (omit the prop for this) |
|
|
96
|
+
| `"corporate"` | Enterprise SaaS | Tight radius, blue accent, cool grays, dark sidebar |
|
|
97
|
+
| `"startup"` | Dev tools | Monochrome, violet accent, minimal shadows, snappy transitions |
|
|
98
|
+
| `"friendly"` | Consumer SaaS | Very rounded, warm coral, cream surfaces, soft shadows |
|
|
99
|
+
| `"fintech"` | Premium financial | Sharp corners, indigo accent, crisp shadows, precise transitions |
|
|
100
|
+
|
|
101
|
+
Each preset overrides the full token surface. See [`@stigmer/theme` README](../theme/README.md) for the complete token reference and preset details.
|
|
102
|
+
|
|
103
|
+
### Custom Token Overrides
|
|
104
|
+
|
|
105
|
+
Override any `--stgm-*` CSS custom property to match your product's design language. Only override what you need — everything else falls through to defaults (or the active preset).
|
|
106
|
+
|
|
107
|
+
```css
|
|
108
|
+
.my-brand {
|
|
109
|
+
--stgm-primary: oklch(0.6 0.2 220);
|
|
110
|
+
--stgm-primary-foreground: oklch(0.985 0 0);
|
|
111
|
+
--stgm-radius: 0.5rem;
|
|
112
|
+
--stgm-shadow-md: 0 4px 12px rgb(0 0 0 / 0.08);
|
|
113
|
+
--stgm-transition-duration: 120ms;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.my-brand.dark,
|
|
117
|
+
.dark .my-brand {
|
|
118
|
+
--stgm-primary: oklch(0.75 0.18 220);
|
|
119
|
+
--stgm-primary-foreground: oklch(0.145 0 0);
|
|
120
|
+
--stgm-shadow-md: 0 4px 12px rgb(0 0 0 / 0.3);
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Apply the class via `className`:
|
|
125
|
+
|
|
126
|
+
```tsx
|
|
127
|
+
<StigmerProvider client={client} className="my-brand">
|
|
128
|
+
{children}
|
|
129
|
+
</StigmerProvider>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
You can combine `preset` and `className`. The `className` overrides cascade on top of the preset.
|
|
133
|
+
|
|
134
|
+
### Dark Mode
|
|
135
|
+
|
|
136
|
+
Stigmer components respond to the `.dark` class on `<html>` (or any ancestor). The provider uses a descendant selector (`&:is(.dark *)`) so dark mode works regardless of where the provider is mounted in the DOM.
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<!-- Host application controls dark mode -->
|
|
140
|
+
<html class="dark">
|
|
141
|
+
<body>
|
|
142
|
+
<!-- StigmerProvider inherits dark mode automatically -->
|
|
143
|
+
</body>
|
|
144
|
+
</html>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
No additional configuration is needed. If your host application toggles `.dark` on `document.documentElement`, Stigmer components follow automatically.
|
|
148
|
+
|
|
149
|
+
### Token Categories
|
|
150
|
+
|
|
151
|
+
All tokens use the `--stgm-*` namespace. The full reference is in [`@stigmer/theme` README](../theme/README.md). Key categories:
|
|
152
|
+
|
|
153
|
+
| Category | Tokens | Notes |
|
|
154
|
+
|----------|--------|-------|
|
|
155
|
+
| Colors (core) | `--stgm-background`, `--stgm-foreground`, `--stgm-primary`, `--stgm-secondary`, `--stgm-muted`, `--stgm-accent`, `--stgm-card`, `--stgm-popover` | Each has a `-foreground` counterpart |
|
|
156
|
+
| Colors (semantic) | `--stgm-destructive`, `--stgm-success`, `--stgm-warning`, `--stgm-info` | Each has a `-foreground` counterpart |
|
|
157
|
+
| Colors (form) | `--stgm-border`, `--stgm-input`, `--stgm-ring` | |
|
|
158
|
+
| Colors (chart) | `--stgm-chart-1` through `--stgm-chart-5` | Data visualization palette |
|
|
159
|
+
| Typography | `--stgm-font-sans`, `--stgm-font-mono` | |
|
|
160
|
+
| Shape | `--stgm-radius` | Base border radius |
|
|
161
|
+
| Shadows | `--stgm-shadow-sm`, `--stgm-shadow-md`, `--stgm-shadow-lg` | Override per mode — dark surfaces need higher opacity |
|
|
162
|
+
| Transitions | `--stgm-transition-duration`, `--stgm-transition-timing` | Applied to all `transition-*` Tailwind utilities |
|
|
163
|
+
| Z-index | `--stgm-z-popover` | Stacking context for overlay components |
|
|
164
|
+
|
|
165
|
+
## Style Isolation
|
|
166
|
+
|
|
167
|
+
`@stigmer/react` is designed to embed inside any host application without style conflicts.
|
|
168
|
+
|
|
169
|
+
- **CSS layer scoping.** All Stigmer styles live inside `@layer stgm`. Host styles in higher-priority layers (or no layer) take precedence over Tailwind's base resets — Stigmer's reset only applies inside the `.stgm` container.
|
|
170
|
+
- **Container scoping.** `StigmerProvider` renders a `<div class="stgm">` wrapper. The CSS reset (`box-sizing`, `border-style`, font smoothing) is scoped to `.stgm` and its descendants. Host elements outside this container are unaffected.
|
|
171
|
+
- **Token namespacing.** All design tokens use the `--stgm-*` prefix. No collision with host application CSS variables.
|
|
172
|
+
|
|
173
|
+
This means you can mount `<StigmerProvider>` inside a sidebar, modal, or any section of your page and Stigmer's styles stay contained.
|
|
174
|
+
|
|
175
|
+
## Components and Hooks
|
|
176
|
+
|
|
177
|
+
Components are organized by domain and available via subpath imports.
|
|
178
|
+
|
|
179
|
+
### `@stigmer/react/agent`
|
|
180
|
+
|
|
181
|
+
| Export | Type | Description |
|
|
182
|
+
|--------|------|-------------|
|
|
183
|
+
| `AgentPicker` | Component | Searchable agent picker with keyboard navigation |
|
|
184
|
+
| `AgentCard` | Component | Card displaying agent name, icon, badges, and resource counts |
|
|
185
|
+
| `AgentOverview` | Component | Detailed agent view with collapsible instructions |
|
|
186
|
+
| `useAgentSearch` | Hook | Search agents with debounced query and pagination |
|
|
187
|
+
|
|
188
|
+
### `@stigmer/react/session`
|
|
189
|
+
|
|
190
|
+
| Export | Type | Description |
|
|
191
|
+
|--------|------|-------------|
|
|
192
|
+
| `AgentSessionHistory` | Component | Paginated list of recent sessions for an agent |
|
|
193
|
+
| `SessionCard` | Component | Card displaying session subject and timestamps |
|
|
194
|
+
| `useAgentSessionList` | Hook | Fetch paginated session list for an agent |
|
|
195
|
+
|
|
196
|
+
### `@stigmer/react/agent-execution`
|
|
197
|
+
|
|
198
|
+
| Export | Type | Description |
|
|
199
|
+
|--------|------|-------------|
|
|
200
|
+
| `ExecutionStream` | Component | Scrollable message stream with tool calls and approval controls |
|
|
201
|
+
| `ExecutionStatus` | Component | Badge displaying execution phase (running, waiting, completed) |
|
|
202
|
+
| `OutputBlock` | Component | Markdown output with optional streaming cursor |
|
|
203
|
+
| `ToolCallCard` | Component | Collapsible card for a tool call with input/output and approval |
|
|
204
|
+
| `ApprovalControls` | Component | Approve / reject / skip controls for HITL (Human-in-the-Loop) |
|
|
205
|
+
| `SubAgentCard` | Component | Collapsible card for sub-agent execution |
|
|
206
|
+
| `MessageInput` | Component | Textarea with send button for user messages |
|
|
207
|
+
| `MessageEntry` | Component | Routes a message to the appropriate renderer |
|
|
208
|
+
| `HumanMessageBubble` | Component | Styled bubble for human messages |
|
|
209
|
+
| `SystemMessageBlock` | Component | Block for system messages |
|
|
210
|
+
| `useAgentExecution` | Hook | Manage execution lifecycle — create, stream, and track phase |
|
|
211
|
+
| `useApproval` | Hook | Submit approval decisions for tool calls requiring HITL |
|
|
212
|
+
|
|
213
|
+
### `@stigmer/react/catalog`
|
|
214
|
+
|
|
215
|
+
| Export | Type | Description |
|
|
216
|
+
|--------|------|-------------|
|
|
217
|
+
| `ResourceSearchCard` | Component | Card for cross-resource search results (agents, skills, MCP servers) |
|
|
218
|
+
| `formatRelativeTime` | Utility | Format a timestamp as relative time (e.g., "3 hours ago") |
|
|
219
|
+
| `toDate` | Utility | Convert protobuf `Timestamp` to a JavaScript `Date` |
|
|
220
|
+
|
|
221
|
+
### `@stigmer/react/skill`
|
|
222
|
+
|
|
223
|
+
| Export | Type | Description |
|
|
224
|
+
|--------|------|-------------|
|
|
225
|
+
| `useSkillSearch` | Hook | Search skills with debounced query and pagination |
|
|
226
|
+
|
|
227
|
+
### `@stigmer/react/mcp-server`
|
|
228
|
+
|
|
229
|
+
| Export | Type | Description |
|
|
230
|
+
|--------|------|-------------|
|
|
231
|
+
| `useMcpServerSearch` | Hook | Search MCP (Model Context Protocol) servers with debounced query and pagination |
|
|
232
|
+
|
|
233
|
+
## Exports
|
|
234
|
+
|
|
235
|
+
| Import path | Content |
|
|
236
|
+
|-------------|---------|
|
|
237
|
+
| `@stigmer/react` | `StigmerProvider`, `StigmerContext`, `useStigmer` |
|
|
238
|
+
| `@stigmer/react/agent` | Agent components and `useAgentSearch` hook |
|
|
239
|
+
| `@stigmer/react/session` | Session components and `useAgentSessionList` hook |
|
|
240
|
+
| `@stigmer/react/agent-execution` | Execution stream components, `useAgentExecution`, `useApproval`, helpers |
|
|
241
|
+
| `@stigmer/react/catalog` | `ResourceSearchCard`, time utilities |
|
|
242
|
+
| `@stigmer/react/skill` | `useSkillSearch` hook |
|
|
243
|
+
| `@stigmer/react/mcp-server` | `useMcpServerSearch` hook |
|
|
244
|
+
| `@stigmer/react/styles.css` | Compiled stylesheet (import once at app root) |
|
|
245
|
+
|
|
246
|
+
## License
|
|
247
|
+
|
|
248
|
+
Apache-2.0
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Agent } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
2
|
+
export interface AgentCardProps {
|
|
3
|
+
agent: Agent;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
href?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function AgentCard({ agent, onClick, href, className }: AgentCardProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=AgentCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentCard.d.ts","sourceRoot":"","sources":["../../../src/agent/components/AgentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAQhF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,cAAc,2CA6G5E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
3
|
+
import { Bot, Globe, Server, FileCode2, Users } from "lucide-react";
|
|
4
|
+
import { cn } from "@stigmer/theme";
|
|
5
|
+
import { Badge } from "../../internal/badge";
|
|
6
|
+
export function AgentCard({ agent, onClick, href, className }) {
|
|
7
|
+
const meta = agent.metadata;
|
|
8
|
+
const spec = agent.spec;
|
|
9
|
+
const isPublic = meta?.visibility === ApiResourceVisibility.visibility_public;
|
|
10
|
+
const qualifiedSlug = meta?.org ? `${meta.org}/${meta.slug}` : meta?.slug;
|
|
11
|
+
const mcpServerCount = spec?.mcpServerUsages?.length ?? 0;
|
|
12
|
+
const skillCount = spec?.skillRefs?.length ?? 0;
|
|
13
|
+
const subAgentCount = spec?.subAgents?.length ?? 0;
|
|
14
|
+
const Tag = href ? "a" : "div";
|
|
15
|
+
const interactive = !!(onClick || href);
|
|
16
|
+
return (_jsxs(Tag, { href: href, onClick: onClick, role: interactive ? "button" : undefined, tabIndex: interactive ? 0 : undefined, onKeyDown: interactive
|
|
17
|
+
? (e) => {
|
|
18
|
+
if (onClick && (e.key === "Enter" || e.key === " ")) {
|
|
19
|
+
e.preventDefault();
|
|
20
|
+
onClick();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
: undefined, className: cn("bg-card text-card-foreground flex flex-col rounded-xl border p-4", interactive &&
|
|
24
|
+
"hover:bg-accent/50 focus-visible:ring-ring cursor-pointer transition-colors focus-visible:ring-2 focus-visible:outline-none", className), children: [_jsxs("div", { className: "flex items-start gap-3", children: [spec?.iconUrl ? (_jsx("img", { src: spec.iconUrl, alt: "", className: "size-9 shrink-0 rounded-lg object-cover" })) : (_jsx("div", { className: "bg-muted flex size-9 shrink-0 items-center justify-center rounded-lg", children: _jsx(Bot, { className: "text-muted-foreground size-4" }) })), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "truncate text-sm font-semibold", children: meta?.name }), isPublic && (_jsxs(Badge, { variant: "outline", className: "shrink-0 text-[10px]", children: [_jsx(Globe, { className: "size-2.5" }), "Public"] }))] }), _jsx("p", { className: "text-muted-foreground truncate font-mono text-[11px]", children: qualifiedSlug })] })] }), spec?.description && (_jsx("p", { className: "text-muted-foreground mt-2 line-clamp-2 text-xs leading-relaxed", children: spec.description })), (mcpServerCount > 0 || skillCount > 0 || subAgentCount > 0) && (_jsxs("div", { className: "text-muted-foreground mt-3 flex items-center gap-3 text-[11px]", children: [mcpServerCount > 0 && (_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Server, { className: "size-3" }), mcpServerCount] })), skillCount > 0 && (_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(FileCode2, { className: "size-3" }), skillCount] })), subAgentCount > 0 && (_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Users, { className: "size-3" }), subAgentCount] }))] })), meta?.tags && meta.tags.length > 0 && (_jsxs("div", { className: "mt-3 flex flex-wrap gap-1", children: [meta.tags.slice(0, 4).map((tag) => (_jsx(Badge, { variant: "secondary", className: "text-[10px]", children: tag }, tag))), meta.tags.length > 4 && (_jsxs("span", { className: "text-muted-foreground self-center text-[10px]", children: ["+", meta.tags.length - 4] }))] }))] }));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=AgentCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentCard.js","sourceRoot":"","sources":["../../../src/agent/components/AgentCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAS7C,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAkB;IAC3E,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC5B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,EAAE,UAAU,KAAK,qBAAqB,CAAC,iBAAiB,CAAC;IAC9E,MAAM,aAAa,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC;IAE1E,MAAM,cAAc,GAAG,IAAI,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC,CAAC;IAC1D,MAAM,UAAU,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC,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AAC,IAAI,CACvB,gBAAM,SAAS,EAAC,+CAA+C,kBAC3D,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IACjB,CACR,IACG,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Agent } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
2
|
+
export interface AgentOverviewProps {
|
|
3
|
+
agent: Agent;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function AgentOverview({ agent, className }: AgentOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=AgentOverview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentOverview.d.ts","sourceRoot":"","sources":["../../../src/agent/components/AgentOverview.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAwBhF,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CA2JrE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
5
|
+
import { Bot, Globe, Users, Server, FileCode2, Wrench, ChevronDown, } from "lucide-react";
|
|
6
|
+
import { cn } from "@stigmer/theme";
|
|
7
|
+
import { Badge } from "../../internal/badge";
|
|
8
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent, } from "../../internal/collapsible";
|
|
9
|
+
import { Section } from "../../internal/section";
|
|
10
|
+
const INSTRUCTIONS_COLLAPSE_THRESHOLD = 300;
|
|
11
|
+
export function AgentOverview({ agent, className }) {
|
|
12
|
+
const meta = agent.metadata;
|
|
13
|
+
const spec = agent.spec;
|
|
14
|
+
const isPublic = meta?.visibility === ApiResourceVisibility.visibility_public;
|
|
15
|
+
const qualifiedSlug = meta?.org ? `${meta.org}/${meta.slug}` : meta?.slug;
|
|
16
|
+
const hasLongInstructions = (spec?.instructions?.length ?? 0) > INSTRUCTIONS_COLLAPSE_THRESHOLD;
|
|
17
|
+
return (_jsxs("div", { className: cn("space-y-8", className), children: [_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-center gap-3", children: [spec?.iconUrl ? (_jsx("img", { src: spec.iconUrl, alt: "", className: "size-10 rounded-lg object-cover" })) : (_jsx("div", { className: "bg-muted flex size-10 items-center justify-center rounded-lg", children: _jsx(Bot, { className: "text-muted-foreground size-5" }) })), _jsxs("div", { children: [_jsx("h2", { className: "text-xl font-semibold", children: meta?.name }), _jsx("p", { className: "text-muted-foreground font-mono text-xs", children: qualifiedSlug })] })] }), spec?.description && (_jsx("p", { className: "text-muted-foreground max-w-prose text-sm", children: spec.description })), _jsxs("div", { className: "flex items-center gap-2", children: [isPublic ? (_jsxs(Badge, { variant: "outline", className: "gap-1", children: [_jsx(Globe, { className: "size-3" }), "Public"] })) : (_jsxs(Badge, { variant: "secondary", className: "gap-1", children: [_jsx(Users, { className: "size-3" }), "Private"] })), meta?.tags?.map((tag) => (_jsx(Badge, { variant: "secondary", children: tag }, tag)))] })] }), spec?.instructions && (_jsx(Section, { title: "Instructions", children: hasLongInstructions ? (_jsx(CollapsibleInstructions, { instructions: spec.instructions })) : (_jsx("pre", { className: "bg-muted rounded-lg p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap", children: spec.instructions })) })), spec?.mcpServerUsages && spec.mcpServerUsages.length > 0 && (_jsx(Section, { title: "MCP Servers", children: _jsx("div", { className: "space-y-3", children: spec.mcpServerUsages.map((usage, i) => {
|
|
18
|
+
const ref = usage.mcpServerRef;
|
|
19
|
+
const slug = ref
|
|
20
|
+
? ref.org
|
|
21
|
+
? `${ref.org}/${ref.slug}`
|
|
22
|
+
: ref.slug
|
|
23
|
+
: `server-${i}`;
|
|
24
|
+
return (_jsxs("div", { className: "rounded-lg border p-3 text-sm", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Server, { className: "text-muted-foreground size-4 shrink-0" }), _jsx("span", { className: "font-mono font-medium", children: slug })] }), usage.enabledTools.length > 0 && (_jsx("div", { className: "mt-2 flex flex-wrap gap-1", children: usage.enabledTools.map((tool) => (_jsxs(Badge, { variant: "secondary", className: "text-[10px]", children: [_jsx(Wrench, { className: "mr-0.5 size-2.5" }), tool] }, tool))) })), usage.toolApprovalOverrides.length > 0 && (_jsxs("div", { className: "text-muted-foreground mt-2 text-xs", children: [usage.toolApprovalOverrides.length, " approval override", usage.toolApprovalOverrides.length !== 1 ? "s" : ""] }))] }, slug));
|
|
25
|
+
}) }) })), spec?.skillRefs && spec.skillRefs.length > 0 && (_jsx(Section, { title: "Skills", children: _jsx("div", { className: "space-y-2", children: spec.skillRefs.map((ref, i) => {
|
|
26
|
+
const slug = ref.org ? `${ref.org}/${ref.slug}` : ref.slug;
|
|
27
|
+
return (_jsxs("div", { className: "flex items-center gap-2 rounded-lg border p-3 text-sm", children: [_jsx(FileCode2, { className: "text-muted-foreground size-4 shrink-0" }), _jsx("span", { className: "font-mono font-medium", children: slug })] }, slug || i));
|
|
28
|
+
}) }) })), spec?.subAgents && spec.subAgents.length > 0 && (_jsx(Section, { title: "Sub-Agents", children: _jsx("div", { className: "space-y-3", children: spec.subAgents.map((sub) => (_jsxs("div", { className: "rounded-lg border p-3 text-sm", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Bot, { className: "text-muted-foreground size-4 shrink-0" }), _jsx("span", { className: "font-medium", children: sub.name }), sub.modelOverride && (_jsx(Badge, { variant: "outline", className: "text-[10px]", children: sub.modelOverride }))] }), sub.description && (_jsx("p", { className: "text-muted-foreground mt-1 text-xs", children: sub.description }))] }, sub.name))) }) }))] }));
|
|
29
|
+
}
|
|
30
|
+
function CollapsibleInstructions({ instructions }) {
|
|
31
|
+
const [open, setOpen] = useState(false);
|
|
32
|
+
return (_jsxs(Collapsible, { open: open, onOpenChange: setOpen, children: [_jsx("pre", { className: "bg-muted rounded-lg p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap", children: open
|
|
33
|
+
? instructions
|
|
34
|
+
: instructions.slice(0, INSTRUCTIONS_COLLAPSE_THRESHOLD) + "..." }), _jsx(CollapsibleContent, {}), _jsxs(CollapsibleTrigger, { className: "text-muted-foreground hover:text-foreground mt-2 flex items-center gap-1 text-xs", children: [_jsx(ChevronDown, { className: cn("size-3.5 transition-transform", open && "rotate-180") }), open ? "Show less" : "Show full instructions"] })] }));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=AgentOverview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentOverview.js","sourceRoot":"","sources":["../../../src/agent/components/AgentOverview.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EACL,GAAG,EACH,KAAK,EACL,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,GACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAO5C,MAAM,UAAU,aAAa,CAAC,EAAE,KAAK,EA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G,KAAC,WAAW,IACV,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,IAAI,IAAI,YAAY,CAAC,GACpE,EACD,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,wBAAwB,IAC3B,IACT,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface SelectedAgent {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
qualifiedSlug: string;
|
|
5
|
+
org: string;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AgentPickerProps {
|
|
9
|
+
org: string;
|
|
10
|
+
onSelect: (agent: SelectedAgent) => void;
|
|
11
|
+
onClear: () => void;
|
|
12
|
+
selected: SelectedAgent | null;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function AgentPicker({ org, onSelect, onClear, selected, disabled, className, }: AgentPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=AgentPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentPicker.d.ts","sourceRoot":"","sources":["../../../src/agent/components/AgentPicker.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAgB,EAChB,SAAS,GACV,EAAE,gBAAgB,2CAyNlB"}
|