@tangle-network/agent-app 0.46.35 → 0.46.37
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/README.md +6 -6
- package/dist/assets/index.js +18 -0
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/schema.d.ts +657 -0
- package/dist/assistant/index.js +6 -6
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/index.js +1 -1
- package/dist/chat-store/index.js +1 -1
- package/dist/{chunk-MWEX2M6M.js → chunk-7ZPEJWDI.js} +27 -12
- package/dist/{chunk-MWEX2M6M.js.map → chunk-7ZPEJWDI.js.map} +1 -1
- package/dist/{chunk-YDOQE47G.js → chunk-PYDMEYWA.js} +20 -6
- package/dist/chunk-PYDMEYWA.js.map +1 -0
- package/dist/{chunk-EDTWGSQT.js → chunk-SJWIZT7B.js} +6 -2
- package/dist/{chunk-EDTWGSQT.js.map → chunk-SJWIZT7B.js.map} +1 -1
- package/dist/{chunk-JAYKCWW4.js → chunk-U2UAQTFY.js} +3 -3
- package/dist/chunk-U2UAQTFY.js.map +1 -0
- package/dist/{chunk-KKBTPZIE.js → chunk-Z4TPWP6A.js} +14 -4
- package/dist/chunk-Z4TPWP6A.js.map +1 -0
- package/dist/{chunk-4SGGSXI7.js → chunk-ZMMIQOFI.js} +6 -5
- package/dist/chunk-ZMMIQOFI.js.map +1 -0
- package/dist/{mention-editor-NDJAEMRP.js → mention-editor-CBLT6LE3.js} +2 -2
- package/dist/session-shell/index.js +1 -1
- package/dist/stream/index.js +1 -1
- package/dist/studio-react/index.js +3 -3
- package/dist/web-react/agent-session-controls.d.ts +11 -1
- package/dist/web-react/controls.d.ts +36 -2
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +6 -6
- package/dist/workspace-react/index.js +1 -1
- package/package.json +13 -13
- package/dist/chunk-4SGGSXI7.js.map +0 -1
- package/dist/chunk-JAYKCWW4.js.map +0 -1
- package/dist/chunk-KKBTPZIE.js.map +0 -1
- package/dist/chunk-YDOQE47G.js.map +0 -1
- /package/dist/{mention-editor-NDJAEMRP.js.map → mention-editor-CBLT6LE3.js.map} +0 -0
package/dist/assistant/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChatEmptyState,
|
|
3
3
|
ChatMessages
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-U2UAQTFY.js";
|
|
5
|
+
import "../chunk-Z4TPWP6A.js";
|
|
6
6
|
import "../chunk-3HUFJ5LO.js";
|
|
7
7
|
import "../chunk-FBVLEGEG.js";
|
|
8
8
|
import "../chunk-ENLRJYVW.js";
|
|
9
9
|
import "../chunk-GEYACSFW.js";
|
|
10
10
|
import {
|
|
11
11
|
ChatComposer
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-7ZPEJWDI.js";
|
|
13
13
|
import "../chunk-L7MB2LLM.js";
|
|
14
14
|
import {
|
|
15
15
|
ModelPicker
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-PYDMEYWA.js";
|
|
17
17
|
import "../chunk-BATKJP3P.js";
|
|
18
18
|
import {
|
|
19
19
|
AsyncView
|
|
20
20
|
} from "../chunk-3UBAO3N5.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-SJWIZT7B.js";
|
|
22
22
|
import "../chunk-QY4BRKRJ.js";
|
|
23
23
|
import "../chunk-YNMPMW3G.js";
|
|
24
24
|
import "../chunk-5ZTFZBS6.js";
|
|
25
25
|
import "../chunk-ZVEEWGDK.js";
|
|
26
26
|
import "../chunk-KWXUBMXU.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-ZMMIQOFI.js";
|
|
28
28
|
import "../chunk-M3K2HVQD.js";
|
|
29
29
|
import "../chunk-YJMCRXQQ.js";
|
|
30
30
|
import "../chunk-TH7L265V.js";
|
package/dist/chat-react/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerModeControls,
|
|
3
3
|
EntryComposer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7ZPEJWDI.js";
|
|
5
5
|
import "../chunk-L7MB2LLM.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-PYDMEYWA.js";
|
|
7
|
+
import "../chunk-SJWIZT7B.js";
|
|
8
8
|
import "../chunk-YNMPMW3G.js";
|
|
9
9
|
import "../chunk-KWXUBMXU.js";
|
|
10
10
|
import "../chunk-TH7L265V.js";
|
package/dist/chat-store/index.js
CHANGED
|
@@ -9,11 +9,12 @@ import {
|
|
|
9
9
|
POPOVER_OPTION_FOCUS,
|
|
10
10
|
PopoverSurface,
|
|
11
11
|
pickerRootClass,
|
|
12
|
+
quietPickerTriggerClass,
|
|
12
13
|
usePopover
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PYDMEYWA.js";
|
|
14
15
|
import {
|
|
15
16
|
filterCommandPaletteItems
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SJWIZT7B.js";
|
|
17
18
|
import {
|
|
18
19
|
ATTACHMENT_ACCEPT,
|
|
19
20
|
ATTACHMENT_MAX_COUNT,
|
|
@@ -272,7 +273,7 @@ import {
|
|
|
272
273
|
} from "react";
|
|
273
274
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
274
275
|
function createLazyMentionEditor() {
|
|
275
|
-
return lazy(() => import("./mention-editor-
|
|
276
|
+
return lazy(() => import("./mention-editor-CBLT6LE3.js").then((m) => m.loadMentionEditor()));
|
|
276
277
|
}
|
|
277
278
|
var MentionEditorBoundary = class extends Component {
|
|
278
279
|
state = { failed: false };
|
|
@@ -1505,7 +1506,8 @@ function HarnessPicker({
|
|
|
1505
1506
|
onChange,
|
|
1506
1507
|
available,
|
|
1507
1508
|
fullWidth = false,
|
|
1508
|
-
lockReason
|
|
1509
|
+
lockReason,
|
|
1510
|
+
variant = "chip"
|
|
1509
1511
|
}) {
|
|
1510
1512
|
const [open, setOpen] = useState4(false);
|
|
1511
1513
|
const [hintOpen, setHintOpen] = useState4(false);
|
|
@@ -1534,10 +1536,11 @@ function HarnessPicker({
|
|
|
1534
1536
|
onFocus: locked ? showHint : void 0,
|
|
1535
1537
|
onBlur: locked ? hideHint : void 0,
|
|
1536
1538
|
title: "Agent backend",
|
|
1537
|
-
|
|
1539
|
+
"data-state": !locked && open ? "open" : "closed",
|
|
1540
|
+
className: variant === "quiet" ? `${quietPickerTriggerClass({ interactive: !locked })} w-full justify-between` : `inline-flex min-h-[36px] w-full items-center justify-between gap-1.5 rounded-full border border-border bg-card px-3 py-1.5 text-sm font-medium text-foreground transition ${locked ? "cursor-default" : "hover:bg-accent"} ${FOCUS_RING}`,
|
|
1538
1541
|
children: [
|
|
1539
1542
|
/* @__PURE__ */ jsxs3("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
1540
|
-
/* @__PURE__ */ jsx3(HarnessGlyph, { harness: value, className: "h-4 w-4 shrink-0 text-foreground" }),
|
|
1543
|
+
/* @__PURE__ */ jsx3(HarnessGlyph, { harness: value, className: variant === "quiet" ? "h-4 w-4 shrink-0" : "h-4 w-4 shrink-0 text-foreground" }),
|
|
1541
1544
|
/* @__PURE__ */ jsx3("span", { className: "truncate", children: harnessLabel(value) })
|
|
1542
1545
|
] }),
|
|
1543
1546
|
locked ? /* @__PURE__ */ jsx3(LockGlyph, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx3(ChevronDown, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" })
|
|
@@ -1622,6 +1625,7 @@ function AgentSessionControls(props) {
|
|
|
1622
1625
|
layout = "inline",
|
|
1623
1626
|
showHarness = true,
|
|
1624
1627
|
harnessLockReason,
|
|
1628
|
+
variant = "chip",
|
|
1625
1629
|
renderProviderBadge,
|
|
1626
1630
|
className
|
|
1627
1631
|
} = props;
|
|
@@ -1638,14 +1642,24 @@ function AgentSessionControls(props) {
|
|
|
1638
1642
|
onChange: onModel,
|
|
1639
1643
|
models,
|
|
1640
1644
|
loading: modelsLoading,
|
|
1641
|
-
renderProviderBadge
|
|
1645
|
+
renderProviderBadge,
|
|
1646
|
+
variant
|
|
1642
1647
|
}
|
|
1643
1648
|
);
|
|
1644
1649
|
if (layout === "inline") {
|
|
1645
1650
|
return /* @__PURE__ */ jsxs3("div", { className: `flex items-center gap-1.5 ${className ?? ""}`, children: [
|
|
1646
1651
|
modelPicker,
|
|
1647
|
-
showHarness && /* @__PURE__ */ jsx3(
|
|
1648
|
-
|
|
1652
|
+
showHarness && /* @__PURE__ */ jsx3(
|
|
1653
|
+
HarnessPicker,
|
|
1654
|
+
{
|
|
1655
|
+
value: harness,
|
|
1656
|
+
onChange: onHarness,
|
|
1657
|
+
available: availableHarnesses,
|
|
1658
|
+
lockReason: harnessLockReason,
|
|
1659
|
+
variant
|
|
1660
|
+
}
|
|
1661
|
+
),
|
|
1662
|
+
showEffort && /* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, variant })
|
|
1649
1663
|
] });
|
|
1650
1664
|
}
|
|
1651
1665
|
const hasAdvanced = showHarness || showEffort;
|
|
@@ -1683,14 +1697,15 @@ function AgentSessionControls(props) {
|
|
|
1683
1697
|
onChange: onHarness,
|
|
1684
1698
|
available: availableHarnesses,
|
|
1685
1699
|
fullWidth: true,
|
|
1686
|
-
lockReason: harnessLockReason
|
|
1700
|
+
lockReason: harnessLockReason,
|
|
1701
|
+
variant
|
|
1687
1702
|
}
|
|
1688
1703
|
),
|
|
1689
1704
|
/* @__PURE__ */ jsx3("p", { className: "text-xs leading-snug text-muted-foreground", children: "The engine that runs the agent. Switching it keeps your model choice compatible." })
|
|
1690
1705
|
] }),
|
|
1691
1706
|
showEffort && /* @__PURE__ */ jsxs3("div", { className: "space-y-1.5", children: [
|
|
1692
1707
|
/* @__PURE__ */ jsx3("p", { className: "text-xs font-medium text-foreground", children: "Thinking" }),
|
|
1693
|
-
/* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true }),
|
|
1708
|
+
/* @__PURE__ */ jsx3(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true, variant }),
|
|
1694
1709
|
/* @__PURE__ */ jsx3("p", { className: "text-xs leading-snug text-muted-foreground", children: "How hard the agent thinks before answering. Higher is slower but more thorough." })
|
|
1695
1710
|
] })
|
|
1696
1711
|
]
|
|
@@ -1837,4 +1852,4 @@ export {
|
|
|
1837
1852
|
ComposerModeControls,
|
|
1838
1853
|
EntryComposer
|
|
1839
1854
|
};
|
|
1840
|
-
//# sourceMappingURL=chunk-
|
|
1855
|
+
//# sourceMappingURL=chunk-7ZPEJWDI.js.map
|