ghostykit 0.11.0 → 0.11.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.
|
@@ -21,8 +21,10 @@ function namedVerb(t, verbs) {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
function stepLabel(t, verbs, fallback = "Paso") {
|
|
24
|
-
|
|
24
|
+
const rawLabel = !!t.label && !/\s/.test(t.label);
|
|
25
|
+
if (t.label && !rawLabel) return t.label;
|
|
25
26
|
const named = namedVerb(t, verbs);
|
|
27
|
+
if (!named && t.label) return t.label;
|
|
26
28
|
if (named) return isRunning(t) && named.verb.running ? named.verb.running : named.verb.one;
|
|
27
29
|
return t.title ?? t.kind ?? fallback;
|
|
28
30
|
}
|
|
@@ -72,6 +74,8 @@ var TOOL_VERBS_ES = {
|
|
|
72
74
|
glob: { one: "Busqu\xE9 archivos", many: "Busqu\xE9 archivos" },
|
|
73
75
|
search: { one: "Busqu\xE9", many: "Busqu\xE9 %n veces" },
|
|
74
76
|
tool_search: { one: "Busqu\xE9 una herramienta", many: "Busqu\xE9 %n herramientas" },
|
|
77
|
+
ToolSearch: { one: "Busqu\xE9 una herramienta", many: "Busqu\xE9 %n herramientas" },
|
|
78
|
+
create_document: { one: "Arm\xE9 el documento", many: "Arm\xE9 %n documentos" },
|
|
75
79
|
web_search: { one: "Busqu\xE9 en la web", many: "Busqu\xE9 en la web" },
|
|
76
80
|
web_fetch: { one: "Abr\xED una p\xE1gina", many: "Abr\xED %n p\xE1ginas" },
|
|
77
81
|
fetch: { one: "Abr\xED una p\xE1gina", many: "Abr\xED %n p\xE1ginas" },
|
package/dist/core/index.js
CHANGED
package/dist/plugins/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
definePlugin,
|
|
4
4
|
pluginPoints,
|
|
5
5
|
pluginRequires
|
|
6
|
-
} from "../chunks/chunk-
|
|
7
|
-
import "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-MGRCZENR.js";
|
|
7
|
+
import "../chunks/chunk-EJPAMT4B.js";
|
|
8
8
|
import "../chunks/chunk-6U545WJG.js";
|
|
9
9
|
import "../chunks/chunk-5DVFSEQM.js";
|
|
10
10
|
|
package/dist/react/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolvePlugins,
|
|
49
49
|
rootProps,
|
|
50
50
|
usePiloto
|
|
51
|
-
} from "../chunks/chunk-
|
|
51
|
+
} from "../chunks/chunk-MGRCZENR.js";
|
|
52
52
|
import {
|
|
53
53
|
TOOL_VERBS_EN,
|
|
54
54
|
TOOL_VERBS_ES,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
summarizeTools,
|
|
59
59
|
toolName,
|
|
60
60
|
toolNames
|
|
61
|
-
} from "../chunks/chunk-
|
|
61
|
+
} from "../chunks/chunk-EJPAMT4B.js";
|
|
62
62
|
import {
|
|
63
63
|
applyReferences,
|
|
64
64
|
cleanUserText,
|
|
@@ -834,14 +834,18 @@ function DeliveryCard({ entry, locale = "es" }) {
|
|
|
834
834
|
const name = d.nombre || d.titulo || "archivo";
|
|
835
835
|
const download = d.url + (d.url.includes("?") ? "&" : "?") + "download=1";
|
|
836
836
|
const meta = [kind(d.mime, name), kb(d.size)].filter(Boolean).join(" \xB7 ");
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
/* @__PURE__ */ jsx7("
|
|
837
|
+
const openLabel = locale === "en" ? "Open" : "Abrir";
|
|
838
|
+
const downloadLabel = locale === "en" ? `Download ${name}` : `Descargar ${name}`;
|
|
839
|
+
return /* @__PURE__ */ jsxs5("div", { className: "piloto-delivery mt-3 flex max-w-md items-center gap-1 rounded-xl border border-irongray/20 bg-irongray/5 pr-2 transition-colors hover:border-brand-500/40 hover:bg-brand-500/5", children: [
|
|
840
|
+
/* @__PURE__ */ jsxs5("a", { href: download, download: name, className: "flex min-w-0 flex-1 items-center gap-3 p-3", title: downloadLabel, "aria-label": downloadLabel, children: [
|
|
841
|
+
/* @__PURE__ */ jsx7("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-brand-500/10 text-brand-500", children: /* @__PURE__ */ jsx7(FileText, { size: 20, strokeWidth: 1.8 }) }),
|
|
842
|
+
/* @__PURE__ */ jsxs5("span", { className: "min-w-0 flex-1", children: [
|
|
843
|
+
/* @__PURE__ */ jsx7("span", { className: "block truncate text-sm font-medium text-dark", children: d.titulo || name }),
|
|
844
|
+
/* @__PURE__ */ jsx7("span", { className: "block truncate text-xs text-metal", children: meta })
|
|
845
|
+
] }),
|
|
846
|
+
/* @__PURE__ */ jsx7(Download, { size: 16, className: "shrink-0 text-metal" })
|
|
842
847
|
] }),
|
|
843
|
-
/* @__PURE__ */ jsx7("a", { href: d.url, target: "_blank", rel: "noopener noreferrer", className: "inline-flex h-8 w-8 items-center justify-center rounded-full text-metal hover:bg-irongray/10 hover:text-dark", title:
|
|
844
|
-
/* @__PURE__ */ jsx7("a", { href: download, className: "inline-flex h-8 w-8 items-center justify-center rounded-full text-metal hover:bg-irongray/10 hover:text-dark", title: locale === "en" ? "Download" : "Descargar", "aria-label": locale === "en" ? "Download" : "Descargar", children: /* @__PURE__ */ jsx7(Download, { size: 16 }) })
|
|
848
|
+
/* @__PURE__ */ jsx7("a", { href: d.url, target: "_blank", rel: "noopener noreferrer", className: "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-metal hover:bg-irongray/10 hover:text-dark", title: openLabel, "aria-label": openLabel, children: /* @__PURE__ */ jsx7(ExternalLink, { size: 16 }) })
|
|
845
849
|
] });
|
|
846
850
|
}
|
|
847
851
|
|
package/dist/styles.css
CHANGED
|
@@ -1004,6 +1004,9 @@
|
|
|
1004
1004
|
.piloto .pr-1:not([data-piloto-isolate] *) {
|
|
1005
1005
|
padding-right: var(--spacing);
|
|
1006
1006
|
}
|
|
1007
|
+
.piloto .pr-2:not([data-piloto-isolate] *) {
|
|
1008
|
+
padding-right: calc(var(--spacing) * 2);
|
|
1009
|
+
}
|
|
1007
1010
|
.piloto .pb-4:not([data-piloto-isolate] *) {
|
|
1008
1011
|
padding-bottom: calc(var(--spacing) * 4);
|
|
1009
1012
|
}
|
|
@@ -1382,6 +1385,14 @@
|
|
|
1382
1385
|
.piloto .hover\:border-brand-300:hover:not([data-piloto-isolate] *) {
|
|
1383
1386
|
border-color: var(--color-brand-300);
|
|
1384
1387
|
}
|
|
1388
|
+
.piloto .hover\:border-brand-500\/40:hover:not([data-piloto-isolate] *) {
|
|
1389
|
+
border-color: var(--color-brand-500);
|
|
1390
|
+
}
|
|
1391
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1392
|
+
.piloto .hover\:border-brand-500\/40:hover:not([data-piloto-isolate] *) {
|
|
1393
|
+
border-color: color-mix(in oklab, var(--color-brand-500) 40%, transparent);
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1385
1396
|
.piloto .hover\:border-text-tertiary:hover:not([data-piloto-isolate] *) {
|
|
1386
1397
|
border-color: var(--color-text-tertiary);
|
|
1387
1398
|
}
|
|
@@ -1413,6 +1424,14 @@
|
|
|
1413
1424
|
background-color: color-mix(in oklab, var(--color-black) 5%, transparent);
|
|
1414
1425
|
}
|
|
1415
1426
|
}
|
|
1427
|
+
.piloto .hover\:bg-brand-500\/5:hover:not([data-piloto-isolate] *) {
|
|
1428
|
+
background-color: var(--color-brand-500);
|
|
1429
|
+
}
|
|
1430
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1431
|
+
.piloto .hover\:bg-brand-500\/5:hover:not([data-piloto-isolate] *) {
|
|
1432
|
+
background-color: color-mix(in oklab, var(--color-brand-500) 5%, transparent);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1416
1435
|
.piloto .hover\:bg-brand-600:hover:not([data-piloto-isolate] *) {
|
|
1417
1436
|
background-color: var(--color-brand-600);
|
|
1418
1437
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghostykit",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Ghosty Autopilot — the autopilot chat for your React app, on AG-UI: works with LangGraph, Mastra, CrewAI or any AG-UI agent. Streaming text, agent steps, human approval cards (interrupt/resume), attachments and voice.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/core/index.js",
|