orbital-ds 0.40.0 → 0.44.1
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/AGENTS.md +29 -10
- package/components.manifest.json +6469 -3349
- package/dist/auth-form-B1hgbXkI.d.ts +144 -0
- package/dist/hooks/use-ds-messages.d.ts +89 -0
- package/dist/lib/a2ui-catalog.d.ts +42 -0
- package/dist/lib/a2ui-catalog.js +558 -0
- package/dist/lib/a2ui.d.ts +289 -0
- package/dist/lib/a2ui.js +215 -0
- package/dist/lib/ai-events.d.ts +15 -0
- package/dist/lib/ai-events.js +202 -0
- package/dist/lib/auth-flow.d.ts +3 -1
- package/dist/lib/auth-flow.js +24 -3
- package/dist/lib/format.d.ts +57 -0
- package/dist/lib/format.js +177 -0
- package/dist/lib/i18n.d.ts +96 -2
- package/dist/lib/i18n.js +278 -2
- package/dist/lib/locales/de.d.ts +7 -0
- package/dist/lib/locales/de.js +535 -0
- package/dist/lib/locales/fr.d.ts +7 -0
- package/dist/lib/locales/fr.js +535 -0
- package/dist/lib/locales/he.d.ts +7 -0
- package/dist/lib/locales/he.js +535 -0
- package/dist/lib/locales/it.d.ts +7 -0
- package/dist/lib/locales/it.js +535 -0
- package/dist/styles.css +62 -2
- package/dist/ui/a2ui-renderer.d.ts +44 -0
- package/dist/ui/a2ui-renderer.js +793 -0
- package/dist/ui/agent-events.d.ts +49 -0
- package/dist/ui/agent-events.js +108 -0
- package/dist/ui/ai-tag.d.ts +16 -0
- package/dist/ui/alert-dialog.d.ts +37 -0
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/animated-number.d.ts +11 -0
- package/dist/ui/app-bar.d.ts +22 -0
- package/dist/ui/attachment.d.ts +1 -1
- package/dist/ui/auth-backdrop.d.ts +17 -0
- package/dist/ui/auth-form.d.ts +3 -110
- package/dist/ui/auth-form.js +46 -11
- package/dist/ui/auth-layout.d.ts +38 -0
- package/dist/ui/avatar.d.ts +27 -0
- package/dist/ui/ayuda.d.ts +1 -1
- package/dist/ui/ayuda.js +4 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/bottom-nav.d.ts +22 -0
- package/dist/ui/breadcrumb.d.ts +22 -0
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/bubble.d.ts +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/calendar.d.ts +13 -0
- package/dist/ui/calendar.js +3 -0
- package/dist/ui/card-stack.d.ts +27 -0
- package/dist/ui/card.d.ts +33 -0
- package/dist/ui/carousel.d.ts +35 -0
- package/dist/ui/carousel.js +10 -5
- package/dist/ui/chain-of-thought.d.ts +34 -0
- package/dist/ui/chain-of-thought.js +90 -0
- package/dist/ui/chart-card.d.ts +19 -0
- package/dist/ui/chart.d.ts +19 -0
- package/dist/ui/chat-composer.d.ts +58 -0
- package/dist/ui/chat-composer.js +192 -0
- package/dist/ui/choice-card.d.ts +33 -0
- package/dist/ui/code-block.d.ts +15 -0
- package/dist/ui/combobox.d.ts +48 -0
- package/dist/ui/command-palette.d.ts +18 -0
- package/dist/ui/command.d.ts +34 -0
- package/dist/ui/confirm-action.d.ts +30 -0
- package/dist/ui/confirm-dialog.d.ts +23 -0
- package/dist/ui/content-card.d.ts +14 -0
- package/dist/ui/context-menu.d.ts +35 -0
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/conversation-list.d.ts +44 -0
- package/dist/ui/conversation-list.js +141 -0
- package/dist/ui/copy-button.d.ts +11 -0
- package/dist/ui/date-time.d.ts +40 -0
- package/dist/ui/date-time.js +55 -0
- package/dist/ui/description-list.d.ts +49 -0
- package/dist/ui/description-list.js +86 -0
- package/dist/ui/detail-panel.d.ts +22 -0
- package/dist/ui/dialog.d.ts +35 -0
- package/dist/ui/dock.d.ts +17 -0
- package/dist/ui/drawer.d.ts +41 -0
- package/dist/ui/dropdown-menu.d.ts +32 -0
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/echart.d.ts +15 -0
- package/dist/ui/empty.d.ts +1 -1
- package/dist/ui/entity-list.d.ts +32 -0
- package/dist/ui/form-layout.d.ts +24 -0
- package/dist/ui/gauge.d.ts +26 -0
- package/dist/ui/generated-image.d.ts +33 -0
- package/dist/ui/generated-image.js +65 -0
- package/dist/ui/generated-table.d.ts +29 -0
- package/dist/ui/generated-table.js +59 -0
- package/dist/ui/heatmap-grid.d.ts +20 -0
- package/dist/ui/hero.d.ts +58 -0
- package/dist/ui/hero.js +145 -0
- package/dist/ui/i18n-provider.d.ts +16 -0
- package/dist/ui/icon-tile.d.ts +2 -2
- package/dist/ui/input-group.d.ts +1 -1
- package/dist/ui/input-otp.d.ts +23 -0
- package/dist/ui/input.d.ts +16 -0
- package/dist/ui/instruction-editor.d.ts +17 -0
- package/dist/ui/item.d.ts +3 -3
- package/dist/ui/label.d.ts +17 -0
- package/dist/ui/legend.d.ts +25 -0
- package/dist/ui/level-meter.d.ts +12 -0
- package/dist/ui/load-more.d.ts +17 -0
- package/dist/ui/loading-state.d.ts +12 -0
- package/dist/ui/markdown.d.ts +29 -0
- package/dist/ui/markdown.js +123 -0
- package/dist/ui/media-card.d.ts +16 -0
- package/dist/ui/menubar.d.ts +39 -0
- package/dist/ui/message-actions.d.ts +21 -0
- package/dist/ui/message-actions.js +79 -0
- package/dist/ui/message-scroller.d.ts +30 -0
- package/dist/ui/message.d.ts +33 -0
- package/dist/ui/mfa-challenge.d.ts +3 -32
- package/dist/ui/mfa-challenge.js +1 -1
- package/dist/ui/mfa-setup.d.ts +1 -1
- package/dist/ui/mosaic.d.ts +23 -0
- package/dist/ui/motion-provider.d.ts +17 -0
- package/dist/ui/native-select.d.ts +22 -0
- package/dist/ui/next-step-card.d.ts +55 -0
- package/dist/ui/next-step-card.js +92 -0
- package/dist/ui/notice-review.d.ts +32 -0
- package/dist/ui/oauth-consent.d.ts +1 -1
- package/dist/ui/page-header.d.ts +46 -4
- package/dist/ui/page-header.js +20 -11
- package/dist/ui/page-loader.d.ts +17 -0
- package/dist/ui/page-shell.d.ts +17 -0
- package/dist/ui/pagination.d.ts +20 -0
- package/dist/ui/pagination.js +2 -2
- package/dist/ui/panel.d.ts +1 -1
- package/dist/ui/password-strength.d.ts +14 -0
- package/dist/ui/popover.d.ts +32 -0
- package/dist/ui/proportion-bar.d.ts +25 -0
- package/dist/ui/quantity.d.ts +25 -0
- package/dist/ui/quantity.js +27 -0
- package/dist/ui/questionnaire.d.ts +38 -0
- package/dist/ui/reasoning.d.ts +24 -0
- package/dist/ui/reasoning.js +62 -0
- package/dist/ui/reveal.d.ts +17 -0
- package/dist/ui/sheet.d.ts +39 -2
- package/dist/ui/sheet.js +6 -2
- package/dist/ui/shield.d.ts +14 -0
- package/dist/ui/show-more.d.ts +14 -0
- package/dist/ui/sidebar.d.ts +4 -2
- package/dist/ui/sidebar.js +7 -3
- package/dist/ui/sparkline.d.ts +1 -1
- package/dist/ui/stat-group.d.ts +32 -0
- package/dist/ui/stat.d.ts +1 -1
- package/dist/ui/status-badge.d.ts +3 -3
- package/dist/ui/status-hero.d.ts +18 -0
- package/dist/ui/step-dots.d.ts +12 -0
- package/dist/ui/step-ring.d.ts +14 -0
- package/dist/ui/suggestions.d.ts +17 -0
- package/dist/ui/suggestions.js +39 -0
- package/dist/ui/table.d.ts +26 -0
- package/dist/ui/tag-input.d.ts +21 -0
- package/dist/ui/tag-input.js +169 -0
- package/dist/ui/task-loader.d.ts +15 -0
- package/dist/ui/task-progress.d.ts +14 -0
- package/dist/ui/textarea.d.ts +22 -1
- package/dist/ui/textarea.js +7 -1
- package/dist/ui/timeline.d.ts +26 -0
- package/dist/ui/toggle-group.d.ts +24 -0
- package/dist/ui/tool-call.d.ts +27 -0
- package/dist/ui/tool-call.js +74 -0
- package/dist/ui/usage-meter.d.ts +42 -0
- package/dist/ui/usage-meter.js +116 -0
- package/dist/ui/week-strip.d.ts +11 -0
- package/dist/ui/week-strip.js +2 -2
- package/dist/ui/workflow-run.d.ts +51 -0
- package/dist/ui/workflow-run.js +185 -0
- package/docs/adr/0001-rtl-clases-logicas.md +14 -1
- package/docs/designer/criterio.md +87 -87
- package/docs/designer/flujo.md +1 -1
- package/docs/designer/patrones.md +43 -2
- package/manifest/actions.json +364 -0
- package/manifest/agents.json +399 -0
- package/manifest/ai.json +128 -0
- package/manifest/auth.json +1547 -0
- package/manifest/chat.json +612 -0
- package/manifest/content.json +2298 -0
- package/manifest/data.json +2904 -0
- package/manifest/feedback.json +1005 -0
- package/manifest/forms.json +1954 -0
- package/manifest/motion.json +196 -0
- package/manifest/navigation.json +1792 -0
- package/manifest/overlays.json +931 -0
- package/package.json +35 -21
- package/scripts/cli.mjs +105 -8
- package/scripts/doctor.mjs +126 -1
- package/scripts/eslint-plugin.mjs +93 -0
- package/scripts/i18n.mjs +1 -1
- package/scripts/manifest.mjs +159 -7
- package/skill/SKILL.md +8 -3
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
{
|
|
2
|
+
"package": "orbital-ds",
|
|
3
|
+
"version": "0.44.1",
|
|
4
|
+
"group": "agents",
|
|
5
|
+
"about": "Lo que hace un agente: razonamiento, herramientas, eventos, flujos y A2UI.",
|
|
6
|
+
"components": {
|
|
7
|
+
"a2ui-renderer": {
|
|
8
|
+
"import": "orbital-ds/ui/a2ui-renderer",
|
|
9
|
+
"group": "agents",
|
|
10
|
+
"summary": "Pinta la interfaz que genera un agente con el protocolo A2UI 1.0 (formularios, paneles, listas, gráficos, confirmaciones) con componentes del sistema; las acciones vuelven al agente por onAction.",
|
|
11
|
+
"see": [
|
|
12
|
+
{
|
|
13
|
+
"component": "generated-table",
|
|
14
|
+
"when": "solo una tabla de resultados, sin protocolo A2UI"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"component": "markdown",
|
|
18
|
+
"when": "una respuesta en texto (y los Text de A2UI con `renderMarkdown`)"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"exports": [
|
|
22
|
+
"A2UIRenderer"
|
|
23
|
+
],
|
|
24
|
+
"slots": [
|
|
25
|
+
"a2ui",
|
|
26
|
+
"a2ui-alert",
|
|
27
|
+
"a2ui-audio",
|
|
28
|
+
"a2ui-badge",
|
|
29
|
+
"a2ui-button",
|
|
30
|
+
"a2ui-card",
|
|
31
|
+
"a2ui-chart",
|
|
32
|
+
"a2ui-checkbox",
|
|
33
|
+
"a2ui-checks",
|
|
34
|
+
"a2ui-choice-picker",
|
|
35
|
+
"a2ui-column",
|
|
36
|
+
"a2ui-date-time",
|
|
37
|
+
"a2ui-heading",
|
|
38
|
+
"a2ui-icon",
|
|
39
|
+
"a2ui-icon-tile",
|
|
40
|
+
"a2ui-image",
|
|
41
|
+
"a2ui-list",
|
|
42
|
+
"a2ui-list-item",
|
|
43
|
+
"a2ui-modal",
|
|
44
|
+
"a2ui-modal-trigger",
|
|
45
|
+
"a2ui-panel",
|
|
46
|
+
"a2ui-progress",
|
|
47
|
+
"a2ui-row",
|
|
48
|
+
"a2ui-slider",
|
|
49
|
+
"a2ui-stat",
|
|
50
|
+
"a2ui-surface",
|
|
51
|
+
"a2ui-tabs",
|
|
52
|
+
"a2ui-text",
|
|
53
|
+
"a2ui-text-field",
|
|
54
|
+
"a2ui-unknown",
|
|
55
|
+
"a2ui-video",
|
|
56
|
+
"a2ui-weighted"
|
|
57
|
+
],
|
|
58
|
+
"optionalPeers": [],
|
|
59
|
+
"props": {
|
|
60
|
+
"A2UIRenderer": {
|
|
61
|
+
"messages": {
|
|
62
|
+
"type": "readonly A2UIMessage[]",
|
|
63
|
+
"required": true
|
|
64
|
+
},
|
|
65
|
+
"onAction": {
|
|
66
|
+
"type": "(event: A2UIActionEvent) => void"
|
|
67
|
+
},
|
|
68
|
+
"onIssues": {
|
|
69
|
+
"type": "(issues: A2UIIssue[]) => void"
|
|
70
|
+
},
|
|
71
|
+
"catalog": {
|
|
72
|
+
"type": "A2UICatalog"
|
|
73
|
+
},
|
|
74
|
+
"renderMarkdown": {
|
|
75
|
+
"type": "(text: string) => React.ReactNode"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"notes": [
|
|
80
|
+
"Para respuestas de agente con interfaz (formularios, paneles, listas, confirmaciones). Describe el catálogo al"
|
|
81
|
+
],
|
|
82
|
+
"examples": [
|
|
83
|
+
{
|
|
84
|
+
"title": "Mensajes en streaming con Markdown",
|
|
85
|
+
"code": "<A2UIRenderer messages={messages} onAction={(e) => agent.send(e)} renderMarkdown={(t) => <Markdown>{t}</Markdown>} />"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"title": "Devolver al agente los problemas de su salida",
|
|
89
|
+
"code": "<A2UIRenderer messages={messages} onAction={sendAction} onIssues={(issues) => agent.report(issues)} />"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"agent-events": {
|
|
94
|
+
"import": "orbital-ds/ui/agent-events",
|
|
95
|
+
"group": "agents",
|
|
96
|
+
"summary": "Traza en línea de tiempo de lo que hizo un agente (pensar, herramientas, mensajes, traspasos, error y fin) con hora y datos; para seguirlo en vivo o auditarlo después.",
|
|
97
|
+
"see": [
|
|
98
|
+
{
|
|
99
|
+
"component": "chain-of-thought",
|
|
100
|
+
"when": "resumen compacto de los pasos dentro de la respuesta"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"component": "tool-call",
|
|
104
|
+
"when": "detalle de una sola llamada con entrada, salida y aprobación"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"component": "timeline",
|
|
108
|
+
"when": "eventos genéricos que no vienen de un agente"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"exports": [
|
|
112
|
+
"AgentEvents"
|
|
113
|
+
],
|
|
114
|
+
"slots": [
|
|
115
|
+
"agent-event",
|
|
116
|
+
"agent-event-title",
|
|
117
|
+
"agent-events"
|
|
118
|
+
],
|
|
119
|
+
"optionalPeers": [],
|
|
120
|
+
"props": {
|
|
121
|
+
"AgentEvents": {
|
|
122
|
+
"events": {
|
|
123
|
+
"type": "AgentEvent[]",
|
|
124
|
+
"required": true
|
|
125
|
+
},
|
|
126
|
+
"density": {
|
|
127
|
+
"type": "\"default\" | \"compact\"",
|
|
128
|
+
"values": [
|
|
129
|
+
"default",
|
|
130
|
+
"compact"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"now": {
|
|
134
|
+
"type": "Date",
|
|
135
|
+
"doc": "Referencia para el tiempo relativo (fíjala en SSR)."
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"notes": [
|
|
140
|
+
"Para seguir a un agente en vivo o auditarlo después; la app mapea sus eventos (streaming, trazas) a `AgentEvent`."
|
|
141
|
+
],
|
|
142
|
+
"examples": [
|
|
143
|
+
{
|
|
144
|
+
"title": "Traza en vivo",
|
|
145
|
+
"code": "<AgentEvents\n events={[\n { id: \"1\", type: \"thinking\", summary: \"Planifica la búsqueda\", time: \"2026-11-21T10:00:00Z\" },\n { id: \"2\", type: \"tool\", title: \"search_docs\", summary: \"3 resultados\", status: \"running\" },\n ]}\n/>"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"title": "Compacta, con tiempo relativo fijo en SSR",
|
|
149
|
+
"code": "<AgentEvents density=\"compact\" events={events} now={now} />"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"chain-of-thought": {
|
|
154
|
+
"import": "orbital-ds/ui/chain-of-thought",
|
|
155
|
+
"group": "agents",
|
|
156
|
+
"summary": "Resumen plegable de los pasos que dio un agente para responder («Completado en 3 pasos»), cada uno con su estado y resultados; vista compacta dentro del mensaje.",
|
|
157
|
+
"see": [
|
|
158
|
+
{
|
|
159
|
+
"component": "reasoning",
|
|
160
|
+
"when": "el texto libre del pensamiento del modelo, sin pasos"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"component": "agent-events",
|
|
164
|
+
"when": "la traza completa con tiempos, datos y traspasos"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"component": "workflow-run",
|
|
168
|
+
"when": "la ejecución de un workflow definido (nodos, ramas, cancelar y reintentar)"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"exports": [
|
|
172
|
+
"ChainOfThought"
|
|
173
|
+
],
|
|
174
|
+
"slots": [
|
|
175
|
+
"chain-of-thought",
|
|
176
|
+
"chain-step"
|
|
177
|
+
],
|
|
178
|
+
"optionalPeers": [],
|
|
179
|
+
"props": {
|
|
180
|
+
"ChainOfThought": {
|
|
181
|
+
"steps": {
|
|
182
|
+
"type": "ChainStep[]",
|
|
183
|
+
"required": true
|
|
184
|
+
},
|
|
185
|
+
"summary": {
|
|
186
|
+
"type": "string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |…"
|
|
187
|
+
},
|
|
188
|
+
"defaultOpen": {
|
|
189
|
+
"type": "boolean"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"notes": [
|
|
194
|
+
"Para mostrar de forma compacta cómo llegó el agente a su respuesta; si necesitas la traza completa con"
|
|
195
|
+
],
|
|
196
|
+
"examples": [
|
|
197
|
+
{
|
|
198
|
+
"title": "Pasos con resultados",
|
|
199
|
+
"code": "<ChainOfThought\n steps={[\n { id: \"1\", title: \"Busca «tarifas 2026»\", results: [\"docs.acme.com\"], status: \"done\" },\n { id: \"2\", title: \"Compara los planes\", status: \"running\" },\n ]}\n/>"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"reasoning": {
|
|
204
|
+
"import": "orbital-ds/ui/reasoning",
|
|
205
|
+
"group": "agents",
|
|
206
|
+
"summary": "El razonamiento en texto libre del modelo, plegable: «Pensando…» mientras llega y «Razonado» al terminar; no muestra pasos ni herramientas.",
|
|
207
|
+
"see": [
|
|
208
|
+
{
|
|
209
|
+
"component": "chain-of-thought",
|
|
210
|
+
"when": "los pasos que dio el agente, uno por línea con resultados"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"component": "tool-call",
|
|
214
|
+
"when": "una llamada concreta a una herramienta con su entrada y salida"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"component": "agent-events",
|
|
218
|
+
"when": "la traza completa con tiempos (pensar, herramientas, traspasos)"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"exports": [
|
|
222
|
+
"Reasoning"
|
|
223
|
+
],
|
|
224
|
+
"slots": [
|
|
225
|
+
"reasoning",
|
|
226
|
+
"reasoning-content",
|
|
227
|
+
"reasoning-trigger"
|
|
228
|
+
],
|
|
229
|
+
"optionalPeers": [],
|
|
230
|
+
"props": {
|
|
231
|
+
"Reasoning": {
|
|
232
|
+
"streaming": {
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
},
|
|
235
|
+
"title": {
|
|
236
|
+
"type": "string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |…"
|
|
237
|
+
},
|
|
238
|
+
"defaultOpen": {
|
|
239
|
+
"type": "boolean"
|
|
240
|
+
},
|
|
241
|
+
"onOpenChange": {
|
|
242
|
+
"type": "(open: boolean) => void"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"notes": [
|
|
247
|
+
"Úsalo dentro de `Message` antes de la respuesta; el texto del razonamiento lo pone la app."
|
|
248
|
+
],
|
|
249
|
+
"examples": [
|
|
250
|
+
{
|
|
251
|
+
"title": "Mientras el modelo piensa",
|
|
252
|
+
"code": "<Reasoning streaming={isThinking}>{thoughts}</Reasoning>"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"title": "Con Markdown y título propio",
|
|
256
|
+
"code": "<Reasoning streaming={isThinking} title=\"Cómo lo he calculado\">\n <Markdown streaming={isThinking}>{thoughts}</Markdown>\n</Reasoning>"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"tool-call": {
|
|
261
|
+
"import": "orbital-ds/ui/tool-call",
|
|
262
|
+
"group": "agents",
|
|
263
|
+
"summary": "Una llamada a herramienta de un agente: nombre, estado y, plegables, su entrada y su salida; con status=\"approval\" pide a la persona Aprobar o Denegar.",
|
|
264
|
+
"see": [
|
|
265
|
+
{
|
|
266
|
+
"component": "agent-events",
|
|
267
|
+
"when": "la secuencia completa de lo que hizo el agente"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"component": "chain-of-thought",
|
|
271
|
+
"when": "resumen de pasos sin entrada ni salida"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"component": "confirm-action",
|
|
275
|
+
"when": "confirmar una acción de la propia persona, no de un agente"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"exports": [
|
|
279
|
+
"ToolCall"
|
|
280
|
+
],
|
|
281
|
+
"slots": [
|
|
282
|
+
"tool-call",
|
|
283
|
+
"tool-call-content",
|
|
284
|
+
"tool-call-trigger"
|
|
285
|
+
],
|
|
286
|
+
"optionalPeers": [],
|
|
287
|
+
"props": {
|
|
288
|
+
"ToolCall": {
|
|
289
|
+
"name": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"required": true
|
|
292
|
+
},
|
|
293
|
+
"status": {
|
|
294
|
+
"type": "ToolCallStatus",
|
|
295
|
+
"values": [
|
|
296
|
+
"done",
|
|
297
|
+
"error",
|
|
298
|
+
"running",
|
|
299
|
+
"approval"
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"input": {
|
|
303
|
+
"type": "{}"
|
|
304
|
+
},
|
|
305
|
+
"output": {
|
|
306
|
+
"type": "{}"
|
|
307
|
+
},
|
|
308
|
+
"defaultOpen": {
|
|
309
|
+
"type": "boolean"
|
|
310
|
+
},
|
|
311
|
+
"onApprove": {
|
|
312
|
+
"type": "() => void",
|
|
313
|
+
"doc": "Con `status=\"approval\"`: la persona autoriza o rechaza la ejecución (human-in-the-loop)."
|
|
314
|
+
},
|
|
315
|
+
"onDeny": {
|
|
316
|
+
"type": "() => void"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"notes": [
|
|
321
|
+
"Una por herramienta usada, dentro de `Message`; el estado lo da la app según los eventos del agente."
|
|
322
|
+
],
|
|
323
|
+
"examples": [
|
|
324
|
+
{
|
|
325
|
+
"title": "Llamada terminada",
|
|
326
|
+
"code": "<ToolCall name=\"search_docs\" status=\"done\" input={{ q: \"tarifas 2026\" }} output={result} />"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"title": "Espera aprobación (human-in-the-loop)",
|
|
330
|
+
"code": "<ToolCall name=\"delete_invoice\" status=\"approval\" input={{ id: \"F-2026-118\" }} onApprove={approve} onDeny={deny} />"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
"workflow-run": {
|
|
335
|
+
"import": "orbital-ds/ui/workflow-run",
|
|
336
|
+
"group": "agents",
|
|
337
|
+
"summary": "Ejecución de un workflow o automatización ya definida: nodos en orden con estado y duración, ramas en paralelo, progreso y Cancelar o Reintentar.",
|
|
338
|
+
"see": [
|
|
339
|
+
{
|
|
340
|
+
"component": "chain-of-thought",
|
|
341
|
+
"when": "pasos que decide el agente sobre la marcha, dentro de un mensaje"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"component": "agent-events",
|
|
345
|
+
"when": "traza con tiempos de un agente"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"component": "stepper",
|
|
349
|
+
"when": "pasos de un proceso que recorre la persona"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"exports": [
|
|
353
|
+
"WorkflowRun"
|
|
354
|
+
],
|
|
355
|
+
"slots": [
|
|
356
|
+
"workflow-branch",
|
|
357
|
+
"workflow-node",
|
|
358
|
+
"workflow-run"
|
|
359
|
+
],
|
|
360
|
+
"optionalPeers": [],
|
|
361
|
+
"props": {
|
|
362
|
+
"WorkflowRun": {
|
|
363
|
+
"name": {
|
|
364
|
+
"type": "string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |…",
|
|
365
|
+
"required": true
|
|
366
|
+
},
|
|
367
|
+
"status": {
|
|
368
|
+
"type": "WorkflowRunStatus",
|
|
369
|
+
"values": [
|
|
370
|
+
"running",
|
|
371
|
+
"succeeded",
|
|
372
|
+
"failed",
|
|
373
|
+
"cancelled"
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"nodes": {
|
|
377
|
+
"type": "WorkflowNode[]",
|
|
378
|
+
"required": true
|
|
379
|
+
},
|
|
380
|
+
"onCancel": {
|
|
381
|
+
"type": "() => void"
|
|
382
|
+
},
|
|
383
|
+
"onRetry": {
|
|
384
|
+
"type": "() => void"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"notes": [
|
|
389
|
+
"Para ver cómo avanza un agente o una automatización; la app traduce su motor (Workflows, colas…) a `WorkflowNode`."
|
|
390
|
+
],
|
|
391
|
+
"examples": [
|
|
392
|
+
{
|
|
393
|
+
"title": "Ejecución con una rama en paralelo",
|
|
394
|
+
"code": "<WorkflowRun\n name=\"Resumir incidencias\"\n status=\"running\"\n nodes={[\n { id: \"fetch\", title: \"Leer incidencias\", status: \"done\", duration: \"1,2 s\" },\n {\n id: \"classify\",\n title: \"Clasificar\",\n status: \"running\",\n branches: [\n { id: \"client\", title: \"Por cliente\", status: \"done\" },\n { id: \"severity\", title: \"Por gravedad\", status: \"running\" },\n ],\n },\n { id: \"send\", title: \"Enviar resumen\", status: \"pending\" },\n ]}\n onCancel={cancel}\n onRetry={retry}\n/>"
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
package/manifest/ai.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"package": "orbital-ds",
|
|
3
|
+
"version": "0.44.1",
|
|
4
|
+
"group": "ai",
|
|
5
|
+
"about": "Piezas de contenido generado.",
|
|
6
|
+
"components": {
|
|
7
|
+
"generated-image": {
|
|
8
|
+
"import": "orbital-ds/ui/generated-image",
|
|
9
|
+
"group": "ai",
|
|
10
|
+
"summary": "Imagen creada por IA dentro de un mensaje, con sus estados (generando, lista con descargar y regenerar, error) y la proporción fija para que la página no salte.",
|
|
11
|
+
"see": [
|
|
12
|
+
{
|
|
13
|
+
"component": "media-card",
|
|
14
|
+
"when": "imagen de contenido de la app, no generada"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"component": "aspect-ratio",
|
|
18
|
+
"when": "cualquier imagen con proporción fija"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"exports": [
|
|
22
|
+
"GeneratedImage"
|
|
23
|
+
],
|
|
24
|
+
"slots": [
|
|
25
|
+
"generated-image"
|
|
26
|
+
],
|
|
27
|
+
"optionalPeers": [],
|
|
28
|
+
"props": {
|
|
29
|
+
"GeneratedImage": {
|
|
30
|
+
"status": {
|
|
31
|
+
"type": "\"done\" | \"error\" | \"loading\"",
|
|
32
|
+
"values": [
|
|
33
|
+
"done",
|
|
34
|
+
"error",
|
|
35
|
+
"loading"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"src": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"alt": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"required": true
|
|
44
|
+
},
|
|
45
|
+
"prompt": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"ratio": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"doc": "Proporción del hueco, p. ej. `\"1/1\"`, `\"16/9\"`."
|
|
51
|
+
},
|
|
52
|
+
"downloadName": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"onRetry": {
|
|
56
|
+
"type": "() => void"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"notes": [
|
|
61
|
+
"Dentro de `Message` como resultado de una herramienta de imagen; el modelo y el envío son de la app."
|
|
62
|
+
],
|
|
63
|
+
"examples": [
|
|
64
|
+
{
|
|
65
|
+
"title": "Imagen lista",
|
|
66
|
+
"code": "<GeneratedImage\n status=\"done\"\n src={url}\n alt=\"Un faro al amanecer sobre el mar\"\n prompt={prompt}\n ratio=\"16/9\"\n downloadName=\"faro.png\"\n onRetry={regenerate}\n/>"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"title": "Generando",
|
|
70
|
+
"code": "<GeneratedImage status=\"loading\" alt=\"Un faro al amanecer\" ratio=\"1/1\" />"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"generated-table": {
|
|
75
|
+
"import": "orbital-ds/ui/generated-table",
|
|
76
|
+
"group": "ai",
|
|
77
|
+
"summary": "Tabla de solo lectura que produce una herramienta del agente dentro de un mensaje, con descarga CSV opcional; para ordenar, filtrar o paginar, DataTable.",
|
|
78
|
+
"see": [
|
|
79
|
+
{
|
|
80
|
+
"component": "data-table",
|
|
81
|
+
"when": "tabla de la app con orden, filtros y paginación"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"component": "table",
|
|
85
|
+
"when": "tabla estática que la app compone a mano"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"exports": [
|
|
89
|
+
"GeneratedTable"
|
|
90
|
+
],
|
|
91
|
+
"slots": [
|
|
92
|
+
"generated-table",
|
|
93
|
+
"generated-table-download"
|
|
94
|
+
],
|
|
95
|
+
"optionalPeers": [],
|
|
96
|
+
"props": {
|
|
97
|
+
"GeneratedTable": {
|
|
98
|
+
"columns": {
|
|
99
|
+
"type": "string[]",
|
|
100
|
+
"required": true
|
|
101
|
+
},
|
|
102
|
+
"rows": {
|
|
103
|
+
"type": "Record<string, React.ReactNode>[]",
|
|
104
|
+
"required": true
|
|
105
|
+
},
|
|
106
|
+
"caption": {
|
|
107
|
+
"type": "string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |…"
|
|
108
|
+
},
|
|
109
|
+
"downloadable": {
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
},
|
|
112
|
+
"downloadName": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"notes": [
|
|
118
|
+
"Resultado de una herramienta tipo `generateTable` en el hilo del chat; `caption` describe qué contiene."
|
|
119
|
+
],
|
|
120
|
+
"examples": [
|
|
121
|
+
{
|
|
122
|
+
"title": "Resultado descargable",
|
|
123
|
+
"code": "<GeneratedTable\n caption=\"Planes disponibles\"\n columns={[\"Plan\", \"Precio\"]}\n rows={[\n { Plan: \"Básico\", Precio: \"0 €\" },\n { Plan: \"Pro\", Precio: \"9 €\" },\n ]}\n downloadable\n downloadName=\"planes.csv\"\n/>"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|