@trops/dash-core 0.1.695 → 0.1.696
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.esm.js +88 -74
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +88 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -55704,7 +55704,9 @@ var BotDetail = function BotDetail(_ref) {
|
|
|
55704
55704
|
_ref$gaps = _ref.gaps,
|
|
55705
55705
|
gaps = _ref$gaps === void 0 ? null : _ref$gaps,
|
|
55706
55706
|
_ref$canShowOnDashboa = _ref.canShowOnDashboard,
|
|
55707
|
-
canShowOnDashboard = _ref$canShowOnDashboa === void 0 ? false : _ref$canShowOnDashboa
|
|
55707
|
+
canShowOnDashboard = _ref$canShowOnDashboa === void 0 ? false : _ref$canShowOnDashboa,
|
|
55708
|
+
_ref$header = _ref.header,
|
|
55709
|
+
header = _ref$header === void 0 ? null : _ref$header;
|
|
55708
55710
|
var _useState = useState(true),
|
|
55709
55711
|
_useState2 = _slicedToArray(_useState, 2),
|
|
55710
55712
|
showOnDashboard = _useState2[0],
|
|
@@ -56242,7 +56244,7 @@ var BotDetail = function BotDetail(_ref) {
|
|
|
56242
56244
|
className: "flex flex-col flex-1 min-h-0",
|
|
56243
56245
|
children: [/*#__PURE__*/jsxs("div", {
|
|
56244
56246
|
className: "flex-1 overflow-y-auto px-6 py-4 flex flex-col gap-4",
|
|
56245
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
56247
|
+
children: [header, /*#__PURE__*/jsxs("div", {
|
|
56246
56248
|
className: "flex flex-col gap-2",
|
|
56247
56249
|
children: [/*#__PURE__*/jsx("span", {
|
|
56248
56250
|
className: "text-sm font-medium",
|
|
@@ -56262,6 +56264,10 @@ var BotDetail = function BotDetail(_ref) {
|
|
|
56262
56264
|
onChange: setInstructions,
|
|
56263
56265
|
placeholder: "What should this bot do?",
|
|
56264
56266
|
rows: 5
|
|
56267
|
+
// Grow with the text — the form already scrolls; no scroll
|
|
56268
|
+
// inside a scroll.
|
|
56269
|
+
,
|
|
56270
|
+
autoGrow: true
|
|
56265
56271
|
})]
|
|
56266
56272
|
}), /*#__PURE__*/jsxs("div", {
|
|
56267
56273
|
className: "flex flex-col gap-2",
|
|
@@ -56619,76 +56625,81 @@ var DraftBanner = function DraftBanner(_ref) {
|
|
|
56619
56625
|
});
|
|
56620
56626
|
var dropped = draft.dropped || [];
|
|
56621
56627
|
var notes = draft.notes || [];
|
|
56622
|
-
return
|
|
56623
|
-
|
|
56624
|
-
|
|
56625
|
-
|
|
56628
|
+
return (
|
|
56629
|
+
/*#__PURE__*/
|
|
56630
|
+
// Rendered at the top of the bot form's scroll area (BotDetail header),
|
|
56631
|
+
// which supplies the side padding — no outer margin of its own.
|
|
56632
|
+
jsxs("div", {
|
|
56633
|
+
className: "rounded-lg border px-4 py-3 flex flex-col gap-2 text-sm ".concat(hairline),
|
|
56626
56634
|
children: [/*#__PURE__*/jsxs("div", {
|
|
56627
|
-
className: "flex flex-
|
|
56635
|
+
className: "flex flex-row items-start justify-between gap-3",
|
|
56636
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
56637
|
+
className: "flex flex-col gap-1",
|
|
56638
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
56639
|
+
className: "font-medium",
|
|
56640
|
+
children: "Drafted by your team lead"
|
|
56641
|
+
}), draft.reasoning ? /*#__PURE__*/jsx("span", {
|
|
56642
|
+
className: muted,
|
|
56643
|
+
children: draft.reasoning
|
|
56644
|
+
}) : null]
|
|
56645
|
+
}), /*#__PURE__*/jsx(Button3, {
|
|
56646
|
+
title: "Discard draft",
|
|
56647
|
+
size: "xs",
|
|
56648
|
+
onClick: onDiscard
|
|
56649
|
+
})]
|
|
56650
|
+
}), draft.duplicateOf ? /*#__PURE__*/jsxs("span", {
|
|
56651
|
+
className: "text-amber-300",
|
|
56652
|
+
children: ["The team already has a bot named \"", draft.duplicateOf, "\" \u2014 you may want to adjust that one instead."]
|
|
56653
|
+
}) : null, suggestions.length ? /*#__PURE__*/jsxs("div", {
|
|
56654
|
+
className: "flex flex-col gap-0.5",
|
|
56628
56655
|
children: [/*#__PURE__*/jsx("span", {
|
|
56629
|
-
className: "
|
|
56630
|
-
children: "
|
|
56631
|
-
}),
|
|
56632
|
-
|
|
56633
|
-
|
|
56656
|
+
className: "text-xs ".concat(muted),
|
|
56657
|
+
children: "Suggested providers and tools"
|
|
56658
|
+
}), suggestions.map(function (s) {
|
|
56659
|
+
return /*#__PURE__*/jsx("span", {
|
|
56660
|
+
className: "font-mono text-xs",
|
|
56661
|
+
children: "".concat(s.provider, ": ").concat(s.tools.length ? s.tools.join(", ") : "any tools").concat(s.toolsChecked ? "" : " (couldn't check these tools)")
|
|
56662
|
+
}, s.provider);
|
|
56663
|
+
})]
|
|
56664
|
+
}) : null, missing.length ? /*#__PURE__*/jsxs("div", {
|
|
56665
|
+
className: "flex flex-row flex-wrap items-center gap-2",
|
|
56666
|
+
children: [/*#__PURE__*/jsxs("span", {
|
|
56667
|
+
className: "text-amber-300",
|
|
56668
|
+
children: ["Needs a provider you don't have: ", missing.join(", ")]
|
|
56669
|
+
}), onOpenSettings ? /*#__PURE__*/jsx(Button3, {
|
|
56670
|
+
title: "Open Settings \u203A Providers",
|
|
56671
|
+
size: "xs",
|
|
56672
|
+
onClick: function onClick() {
|
|
56673
|
+
return onOpenSettings("providers");
|
|
56674
|
+
}
|
|
56634
56675
|
}) : null]
|
|
56635
|
-
}), /*#__PURE__*/
|
|
56636
|
-
|
|
56637
|
-
|
|
56638
|
-
onClick: onDiscard
|
|
56639
|
-
})]
|
|
56640
|
-
}), draft.duplicateOf ? /*#__PURE__*/jsxs("span", {
|
|
56641
|
-
className: "text-amber-300",
|
|
56642
|
-
children: ["The team already has a bot named \"", draft.duplicateOf, "\" \u2014 you may want to adjust that one instead."]
|
|
56643
|
-
}) : null, suggestions.length ? /*#__PURE__*/jsxs("div", {
|
|
56644
|
-
className: "flex flex-col gap-0.5",
|
|
56645
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
56646
|
-
className: "text-xs ".concat(muted),
|
|
56647
|
-
children: "Suggested providers and tools"
|
|
56648
|
-
}), suggestions.map(function (s) {
|
|
56649
|
-
return /*#__PURE__*/jsx("span", {
|
|
56650
|
-
className: "font-mono text-xs",
|
|
56651
|
-
children: "".concat(s.provider, ": ").concat(s.tools.length ? s.tools.join(", ") : "any tools").concat(s.toolsChecked ? "" : " (couldn't check these tools)")
|
|
56652
|
-
}, s.provider);
|
|
56653
|
-
})]
|
|
56654
|
-
}) : null, missing.length ? /*#__PURE__*/jsxs("div", {
|
|
56655
|
-
className: "flex flex-row flex-wrap items-center gap-2",
|
|
56656
|
-
children: [/*#__PURE__*/jsxs("span", {
|
|
56657
|
-
className: "text-amber-300",
|
|
56658
|
-
children: ["Needs a provider you don't have: ", missing.join(", ")]
|
|
56659
|
-
}), onOpenSettings ? /*#__PURE__*/jsx(Button3, {
|
|
56660
|
-
title: "Open Settings \u203A Providers",
|
|
56661
|
-
size: "xs",
|
|
56662
|
-
onClick: function onClick() {
|
|
56663
|
-
return onOpenSettings("providers");
|
|
56664
|
-
}
|
|
56665
|
-
}) : null]
|
|
56666
|
-
}) : null, notes.length ? /*#__PURE__*/jsxs("div", {
|
|
56667
|
-
className: "flex flex-col gap-0.5",
|
|
56668
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
56669
|
-
className: "text-xs ".concat(muted),
|
|
56670
|
-
children: "Notes from the lead"
|
|
56671
|
-
}), notes.map(function (n, i) {
|
|
56672
|
-
return /*#__PURE__*/jsx("span", {
|
|
56673
|
-
children: n
|
|
56674
|
-
}, i);
|
|
56675
|
-
})]
|
|
56676
|
-
}) : null, dropped.length ? /*#__PURE__*/jsxs("div", {
|
|
56677
|
-
className: "flex flex-col gap-0.5",
|
|
56678
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
56679
|
-
className: "text-xs ".concat(muted),
|
|
56680
|
-
children: "Left out"
|
|
56681
|
-
}), dropped.map(function (d, i) {
|
|
56682
|
-
return /*#__PURE__*/jsx("span", {
|
|
56676
|
+
}) : null, notes.length ? /*#__PURE__*/jsxs("div", {
|
|
56677
|
+
className: "flex flex-col gap-0.5",
|
|
56678
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
56683
56679
|
className: "text-xs ".concat(muted),
|
|
56684
|
-
children:
|
|
56685
|
-
}, i)
|
|
56680
|
+
children: "Notes from the lead"
|
|
56681
|
+
}), notes.map(function (n, i) {
|
|
56682
|
+
return /*#__PURE__*/jsx("span", {
|
|
56683
|
+
children: n
|
|
56684
|
+
}, i);
|
|
56685
|
+
})]
|
|
56686
|
+
}) : null, dropped.length ? /*#__PURE__*/jsxs("div", {
|
|
56687
|
+
className: "flex flex-col gap-0.5",
|
|
56688
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
56689
|
+
className: "text-xs ".concat(muted),
|
|
56690
|
+
children: "Left out"
|
|
56691
|
+
}), dropped.map(function (d, i) {
|
|
56692
|
+
return /*#__PURE__*/jsx("span", {
|
|
56693
|
+
className: "text-xs ".concat(muted),
|
|
56694
|
+
children: d
|
|
56695
|
+
}, i);
|
|
56696
|
+
})]
|
|
56697
|
+
}) : null, /*#__PURE__*/jsx("span", {
|
|
56698
|
+
className: "text-xs ".concat(muted),
|
|
56699
|
+
children: "Nothing is turned on until you accept it below and Save. Providers and tools start unselected."
|
|
56686
56700
|
})]
|
|
56687
|
-
})
|
|
56688
|
-
|
|
56689
|
-
children: "Nothing is turned on until you accept it below and Save. Providers and tools start unselected."
|
|
56690
|
-
})]
|
|
56691
|
-
});
|
|
56701
|
+
})
|
|
56702
|
+
);
|
|
56692
56703
|
};
|
|
56693
56704
|
|
|
56694
56705
|
function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -58811,13 +58822,16 @@ var BotsView = function BotsView(_ref3) {
|
|
|
58811
58822
|
onChangeModel: function onChangeModel() {
|
|
58812
58823
|
return switchTab("settings");
|
|
58813
58824
|
}
|
|
58814
|
-
}) : null, tab === "settings" ? /*#__PURE__*/
|
|
58825
|
+
}) : null, tab === "settings" ? /*#__PURE__*/jsx("div", {
|
|
58815
58826
|
className: "flex-1 min-h-0 flex flex-col",
|
|
58816
|
-
children:
|
|
58817
|
-
|
|
58818
|
-
|
|
58819
|
-
|
|
58820
|
-
|
|
58827
|
+
children: /*#__PURE__*/jsx(BotDetail
|
|
58828
|
+
// The lead's banner scrolls with the form (not pinned).
|
|
58829
|
+
, {
|
|
58830
|
+
header: selectedDraft ? /*#__PURE__*/jsx(DraftBanner, {
|
|
58831
|
+
draft: selectedDraft,
|
|
58832
|
+
onDiscard: discardDraft,
|
|
58833
|
+
onOpenSettings: onOpenSettings
|
|
58834
|
+
}) : null,
|
|
58821
58835
|
bot: selected || selectedDraft && selectedDraft.definition || null,
|
|
58822
58836
|
isCreating: !selected,
|
|
58823
58837
|
suggestions: selectedDraft ? selectedDraft.suggestions : null,
|
|
@@ -58836,7 +58850,7 @@ var BotsView = function BotsView(_ref3) {
|
|
|
58836
58850
|
return k + 1;
|
|
58837
58851
|
});
|
|
58838
58852
|
}
|
|
58839
|
-
}, "".concat(selected ? selected.id : selectedId || NEW_BOT, "-").concat(formKey))
|
|
58853
|
+
}, "".concat(selected ? selected.id : selectedId || NEW_BOT, "-").concat(formKey))
|
|
58840
58854
|
}) : null]
|
|
58841
58855
|
})]
|
|
58842
58856
|
}), /*#__PURE__*/jsx(ConfirmationModal, {
|