pxengine 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +21 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.mjs +21 -25
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37653,7 +37653,7 @@ var AgentCard = ({
|
|
|
37653
37653
|
rows: 2,
|
|
37654
37654
|
placeholder: "Describe this agent..."
|
|
37655
37655
|
}
|
|
37656
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("p", { className: "text-xs text-[var(--foreground)]/60 leading-relaxed", children: agent.description }) }),
|
|
37656
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("p", { className: "text-xs text-[var(--foreground)]/60 leading-relaxed whitespace-normal", children: agent.description }) }),
|
|
37657
37657
|
isEditing && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
37658
37658
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)("span", { className: "text-[10px] text-[var(--foreground)]/30 uppercase font-semibold", children: "Avatar:" }),
|
|
37659
37659
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
@@ -37798,7 +37798,9 @@ var WorkflowVisualizer = ({
|
|
|
37798
37798
|
steps,
|
|
37799
37799
|
className
|
|
37800
37800
|
}) => {
|
|
37801
|
-
const [expandedStep, setExpandedStep] = (0, import_react70.useState)(
|
|
37801
|
+
const [expandedStep, setExpandedStep] = (0, import_react70.useState)(
|
|
37802
|
+
steps[0]?.id || null
|
|
37803
|
+
);
|
|
37802
37804
|
return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
37803
37805
|
"div",
|
|
37804
37806
|
{
|
|
@@ -37849,15 +37851,9 @@ var WorkflowVisualizer = ({
|
|
|
37849
37851
|
"button",
|
|
37850
37852
|
{
|
|
37851
37853
|
onClick: () => setExpandedStep(isExpanded ? null : step.id),
|
|
37852
|
-
className: "w-full text-left px-3 py-2.5 flex items-center gap-2",
|
|
37854
|
+
className: "w-full text-left px-3 py-2.5 flex items-center gap-2 whitespace-normal",
|
|
37853
37855
|
children: [
|
|
37854
|
-
/* @__PURE__ */ (0, import_jsx_runtime130.
|
|
37855
|
-
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "text-[13px] font-medium text-[var(--foreground)]", children: step.name }),
|
|
37856
|
-
step.description && !isExpanded && /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("span", { className: "text-xs text-[var(--foreground)]/40 ml-2", children: [
|
|
37857
|
-
"\u2014 ",
|
|
37858
|
-
step.description
|
|
37859
|
-
] })
|
|
37860
|
-
] }),
|
|
37856
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "text-[13px] font-medium text-[var(--foreground)]", children: step.name }) }),
|
|
37861
37857
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
37862
37858
|
"svg",
|
|
37863
37859
|
{
|
|
@@ -37878,7 +37874,7 @@ var WorkflowVisualizer = ({
|
|
|
37878
37874
|
}
|
|
37879
37875
|
),
|
|
37880
37876
|
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { className: "px-3 pb-3 space-y-2.5", children: [
|
|
37881
|
-
step.description && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("p", { className: "text-xs text-[var(--foreground)]/50 leading-relaxed", children: step.description }),
|
|
37877
|
+
step.description && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("p", { className: "text-xs text-[var(--foreground)]/50 leading-relaxed whitespace-normal", children: step.description }),
|
|
37882
37878
|
step.sub_steps && step.sub_steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("div", { className: "space-y-1", children: step.sub_steps.map((sub) => /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
37883
37879
|
"div",
|
|
37884
37880
|
{
|
|
@@ -37901,7 +37897,7 @@ var WorkflowVisualizer = ({
|
|
|
37901
37897
|
tool
|
|
37902
37898
|
))
|
|
37903
37899
|
] }),
|
|
37904
|
-
step.on_failure && /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { className: "flex items-start gap-2 text-xs bg-[#ef4444]/[0.06] border border-[#ef4444]/10 rounded-md px-2.5 py-2", children: [
|
|
37900
|
+
step.on_failure && /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("div", { className: "flex items-start gap-2 text-xs bg-[#ef4444]/[0.06] border border-[#ef4444]/10 rounded-md px-2.5 py-2 whitespace-normal", children: [
|
|
37905
37901
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "shrink-0 text-[10px] font-semibold text-[#ef4444]/70 uppercase tracking-wider mt-px", children: "On failure:" }),
|
|
37906
37902
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "text-[var(--foreground)]/50", children: step.on_failure })
|
|
37907
37903
|
] })
|
|
@@ -37963,7 +37959,7 @@ var InstructionPreview = ({
|
|
|
37963
37959
|
) }),
|
|
37964
37960
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
37965
37961
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)("h4", { className: "text-sm font-semibold text-[var(--foreground)]", children: agent_name }),
|
|
37966
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { className: "text-[11px] text-[var(--foreground)]/40 mt-0.5", children: description })
|
|
37962
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { className: "text-[11px] text-[var(--foreground)]/40 mt-0.5 whitespace-normal", children: description })
|
|
37967
37963
|
] })
|
|
37968
37964
|
] }) }),
|
|
37969
37965
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", { className: "px-4 py-3 space-y-3", children: [
|
|
@@ -38010,7 +38006,8 @@ function UIComponentSelector({
|
|
|
38010
38006
|
components,
|
|
38011
38007
|
onSelect,
|
|
38012
38008
|
onPreview,
|
|
38013
|
-
className
|
|
38009
|
+
className,
|
|
38010
|
+
isLatestMessage = true
|
|
38014
38011
|
}) {
|
|
38015
38012
|
const [selected, setSelected] = (0, import_react72.useState)(/* @__PURE__ */ new Set());
|
|
38016
38013
|
const [submitted, setSubmitted] = (0, import_react72.useState)(false);
|
|
@@ -38024,7 +38021,7 @@ function UIComponentSelector({
|
|
|
38024
38021
|
{}
|
|
38025
38022
|
);
|
|
38026
38023
|
const toggle = (name) => {
|
|
38027
|
-
if (submitted) return;
|
|
38024
|
+
if (submitted || !isLatestMessage) return;
|
|
38028
38025
|
setSelected((prev) => {
|
|
38029
38026
|
const next = new Set(prev);
|
|
38030
38027
|
if (next.has(name)) next.delete(name);
|
|
@@ -38056,7 +38053,7 @@ function UIComponentSelector({
|
|
|
38056
38053
|
{
|
|
38057
38054
|
className: cn(
|
|
38058
38055
|
"flex items-start gap-3 px-3 py-2 rounded-lg cursor-pointer transition-colors",
|
|
38059
|
-
submitted ? "cursor-default opacity-70" : "hover:bg-muted/50",
|
|
38056
|
+
submitted || !isLatestMessage ? "cursor-default opacity-70" : "hover:bg-muted/50",
|
|
38060
38057
|
selected.has(comp.name) && !submitted && "bg-interactive/5 border border-interactive/20",
|
|
38061
38058
|
selected.has(comp.name) && submitted && "bg-interactive/5"
|
|
38062
38059
|
),
|
|
@@ -38067,7 +38064,7 @@ function UIComponentSelector({
|
|
|
38067
38064
|
type: "checkbox",
|
|
38068
38065
|
checked: selected.has(comp.name),
|
|
38069
38066
|
onChange: () => toggle(comp.name),
|
|
38070
|
-
disabled: submitted,
|
|
38067
|
+
disabled: submitted || !isLatestMessage,
|
|
38071
38068
|
className: "mt-0.5 h-4 w-4 rounded border-border text-interactive focus:ring-interactive/50 disabled:opacity-50"
|
|
38072
38069
|
}
|
|
38073
38070
|
),
|
|
@@ -38114,7 +38111,7 @@ function UIComponentSelector({
|
|
|
38114
38111
|
comp.name
|
|
38115
38112
|
)) })
|
|
38116
38113
|
] }, category)) }),
|
|
38117
|
-
!submitted && /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "px-4 py-3 border-t border-border flex items-center justify-between", children: [
|
|
38114
|
+
!submitted && isLatestMessage && /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "px-4 py-3 border-t border-border flex items-center justify-between", children: [
|
|
38118
38115
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "text-xs text-muted-foreground", children: [
|
|
38119
38116
|
selected.size,
|
|
38120
38117
|
" selected"
|
|
@@ -38287,7 +38284,8 @@ var MultiAgentUISelector = ({
|
|
|
38287
38284
|
components = [],
|
|
38288
38285
|
onSelect,
|
|
38289
38286
|
onPreview,
|
|
38290
|
-
className
|
|
38287
|
+
className,
|
|
38288
|
+
isLatestMessage = true
|
|
38291
38289
|
}) => {
|
|
38292
38290
|
const [activeStageId, setActiveStageId] = (0, import_react73.useState)(stages[0]?.id || "");
|
|
38293
38291
|
const [selections, setSelections] = (0, import_react73.useState)(
|
|
@@ -38308,7 +38306,7 @@ var MultiAgentUISelector = ({
|
|
|
38308
38306
|
}, {});
|
|
38309
38307
|
const toggleComponent = (0, import_react73.useCallback)(
|
|
38310
38308
|
(stageId, compName) => {
|
|
38311
|
-
if (submitted) return;
|
|
38309
|
+
if (submitted || !isLatestMessage) return;
|
|
38312
38310
|
setSelections((prev) => {
|
|
38313
38311
|
const updated = { ...prev };
|
|
38314
38312
|
const set = new Set(updated[stageId] || []);
|
|
@@ -38367,11 +38365,9 @@ var MultiAgentUISelector = ({
|
|
|
38367
38365
|
"button",
|
|
38368
38366
|
{
|
|
38369
38367
|
onClick: () => setActiveStageId(stage.id),
|
|
38370
|
-
disabled: submitted,
|
|
38371
38368
|
className: cn(
|
|
38372
38369
|
"px-3 py-2 text-[11px] font-medium border-b-2 -mb-px transition-colors",
|
|
38373
|
-
activeStageId === stage.id ? "border-interactive text-interactive" : "border-transparent text-[var(--foreground)]/50 hover:text-[var(--foreground)]"
|
|
38374
|
-
submitted && "opacity-60 cursor-default"
|
|
38370
|
+
activeStageId === stage.id ? "border-interactive text-interactive" : "border-transparent text-[var(--foreground)]/50 hover:text-[var(--foreground)]"
|
|
38375
38371
|
),
|
|
38376
38372
|
children: stage.name
|
|
38377
38373
|
},
|
|
@@ -38404,7 +38400,7 @@ var MultiAgentUISelector = ({
|
|
|
38404
38400
|
className: cn(
|
|
38405
38401
|
"text-left p-2.5 rounded-lg border text-[11px] transition-all overflow-hidden cursor-pointer",
|
|
38406
38402
|
isSelected ? "border-interactive bg-interactive/5" : "border-[var(--border-color)] hover:border-interactive/50",
|
|
38407
|
-
submitted && "opacity-60 cursor-default
|
|
38403
|
+
(submitted || !isLatestMessage) && "opacity-60 cursor-default"
|
|
38408
38404
|
),
|
|
38409
38405
|
children: [
|
|
38410
38406
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
@@ -38470,7 +38466,7 @@ var MultiAgentUISelector = ({
|
|
|
38470
38466
|
}) })
|
|
38471
38467
|
] }, category))
|
|
38472
38468
|
] }),
|
|
38473
|
-
!submitted && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "px-4 pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
38469
|
+
!submitted && isLatestMessage && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "px-4 pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
38474
38470
|
"button",
|
|
38475
38471
|
{
|
|
38476
38472
|
onClick: handleContinue,
|