@tangle-network/agent-app 0.60.178 → 0.60.179

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.
Files changed (44) hide show
  1. package/dist/agent-profiles/d1.js +3 -3
  2. package/dist/agent-profiles/index.js +3 -3
  3. package/dist/assistant/index.js +5 -5
  4. package/dist/channels/index.js +1 -1
  5. package/dist/chat-routes/index.js +4 -4
  6. package/dist/{chunk-GIJY3YCH.js → chunk-3RHAF2P5.js} +11 -13
  7. package/dist/chunk-3RHAF2P5.js.map +1 -0
  8. package/dist/{chunk-ER3KSBA4.js → chunk-75ZIWV4U.js} +4 -4
  9. package/dist/{chunk-7PSYT35Z.js → chunk-7BYY7QKC.js} +5 -5
  10. package/dist/{chunk-7PSYT35Z.js.map → chunk-7BYY7QKC.js.map} +1 -1
  11. package/dist/chunk-A2GG4D4A.js +43 -0
  12. package/dist/chunk-A2GG4D4A.js.map +1 -0
  13. package/dist/{chunk-6CKNC32J.js → chunk-AJZ3EJB5.js} +2 -2
  14. package/dist/{chunk-4WEUWCA4.js → chunk-EQRVOMMS.js} +2 -2
  15. package/dist/{chunk-ARBBJWZA.js → chunk-KOTNMTHV.js} +3 -3
  16. package/dist/{chunk-LSUELMHY.js → chunk-LN5RBVGP.js} +6 -33
  17. package/dist/{chunk-LSUELMHY.js.map → chunk-LN5RBVGP.js.map} +1 -1
  18. package/dist/{chunk-IAFPBYQQ.js → chunk-QGOGX3DL.js} +52 -67
  19. package/dist/chunk-QGOGX3DL.js.map +1 -0
  20. package/dist/{chunk-NO2YNV5C.js → chunk-YXLN4PXK.js} +2 -2
  21. package/dist/integrations-react/index.js +1 -1
  22. package/dist/preset-cloudflare/index.js +2 -2
  23. package/dist/sandbox/index.js +4 -4
  24. package/dist/stories/app-shell/interaction-evidence.d.ts +31 -0
  25. package/dist/studio-react/index.js +2 -2
  26. package/dist/theme/tokens.css +158 -0
  27. package/dist/tools/index.js +4 -4
  28. package/dist/web-react/action-dialog.d.ts +2 -2
  29. package/dist/web-react/agent-profile-editor.js +1 -1
  30. package/dist/web-react/agent-profile-form-kit.d.ts +1 -1
  31. package/dist/web-react/async/index.js +1 -1
  32. package/dist/web-react/index.js +5 -5
  33. package/dist/work-product/index.js +2 -2
  34. package/dist/workspace-react/index.js +1 -1
  35. package/package.json +2 -2
  36. package/dist/chunk-GIJY3YCH.js.map +0 -1
  37. package/dist/chunk-IAFPBYQQ.js.map +0 -1
  38. package/dist/chunk-QJYJOMMO.js +0 -78
  39. package/dist/chunk-QJYJOMMO.js.map +0 -1
  40. /package/dist/{chunk-ER3KSBA4.js.map → chunk-75ZIWV4U.js.map} +0 -0
  41. /package/dist/{chunk-6CKNC32J.js.map → chunk-AJZ3EJB5.js.map} +0 -0
  42. /package/dist/{chunk-4WEUWCA4.js.map → chunk-EQRVOMMS.js.map} +0 -0
  43. /package/dist/{chunk-ARBBJWZA.js.map → chunk-KOTNMTHV.js.map} +0 -0
  44. /package/dist/{chunk-NO2YNV5C.js.map → chunk-YXLN4PXK.js.map} +0 -0
@@ -2,11 +2,11 @@ import {
2
2
  ProfileConflictError,
3
3
  parseProfileRevisionDiff,
4
4
  serializeProfileRevisionDiff
5
- } from "../chunk-ARBBJWZA.js";
5
+ } from "../chunk-KOTNMTHV.js";
6
6
  import "../chunk-I6BZVIRH.js";
7
- import "../chunk-6CKNC32J.js";
7
+ import "../chunk-AJZ3EJB5.js";
8
8
  import "../chunk-UGWQLQDS.js";
9
- import "../chunk-7PSYT35Z.js";
9
+ import "../chunk-7BYY7QKC.js";
10
10
 
11
11
  // src/agent-profiles/d1.ts
12
12
  import { snapshotAgentProfile } from "@tangle-network/agent-interface";
@@ -31,14 +31,14 @@ import {
31
31
  selfMountTable,
32
32
  serializeProfileRevisionDiff,
33
33
  switchProfile
34
- } from "../chunk-ARBBJWZA.js";
34
+ } from "../chunk-KOTNMTHV.js";
35
35
  import {
36
36
  normalizeProfileName,
37
37
  parseProfileSwitch
38
38
  } from "../chunk-I6BZVIRH.js";
39
- import "../chunk-6CKNC32J.js";
39
+ import "../chunk-AJZ3EJB5.js";
40
40
  import "../chunk-UGWQLQDS.js";
41
- import "../chunk-7PSYT35Z.js";
41
+ import "../chunk-7BYY7QKC.js";
42
42
  export {
43
43
  PERMITTED_SELF_MOUNT_DIMENSIONS,
44
44
  PROFILE_CHANGE_POLICY,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  ReasoningRow,
3
3
  chatToolCallPart
4
- } from "../chunk-IAFPBYQQ.js";
5
- import "../chunk-4WEUWCA4.js";
4
+ } from "../chunk-QGOGX3DL.js";
5
+ import "../chunk-EQRVOMMS.js";
6
6
  import "../chunk-3HUFJ5LO.js";
7
7
  import "../chunk-FBVLEGEG.js";
8
8
  import "../chunk-UDLA3NGY.js";
9
- import "../chunk-QJYJOMMO.js";
9
+ import "../chunk-A2GG4D4A.js";
10
10
  import "../chunk-E4AY62T2.js";
11
- import "../chunk-GIJY3YCH.js";
11
+ import "../chunk-3RHAF2P5.js";
12
12
  import "../chunk-Y6PRDUFJ.js";
13
13
  import "../chunk-GEYACSFW.js";
14
14
  import {
@@ -24,7 +24,7 @@ import {
24
24
  import "../chunk-RASGKEAL.js";
25
25
  import {
26
26
  AsyncView
27
- } from "../chunk-LSUELMHY.js";
27
+ } from "../chunk-LN5RBVGP.js";
28
28
  import "../chunk-FQYAJYPW.js";
29
29
  import "../chunk-WTC6AOPL.js";
30
30
  import "../chunk-VBRUG4N5.js";
@@ -4,7 +4,7 @@ import {
4
4
  confirmWrite,
5
5
  useAsyncResource,
6
6
  useConfirmedMutation
7
- } from "../chunk-LSUELMHY.js";
7
+ } from "../chunk-LN5RBVGP.js";
8
8
 
9
9
  // src/channels/context.tsx
10
10
  import { createContext, useContext } from "react";
@@ -46,13 +46,13 @@ import {
46
46
  import "../chunk-4LBCTFBP.js";
47
47
  import "../chunk-VBRUG4N5.js";
48
48
  import "../chunk-LWSJK546.js";
49
- import "../chunk-ER3KSBA4.js";
49
+ import "../chunk-75ZIWV4U.js";
50
50
  import "../chunk-6A7MYOUI.js";
51
51
  import "../chunk-S5SRJJQG.js";
52
- import "../chunk-NO2YNV5C.js";
53
- import "../chunk-6CKNC32J.js";
52
+ import "../chunk-YXLN4PXK.js";
53
+ import "../chunk-AJZ3EJB5.js";
54
54
  import "../chunk-UGWQLQDS.js";
55
- import "../chunk-7PSYT35Z.js";
55
+ import "../chunk-7BYY7QKC.js";
56
56
  import {
57
57
  runProtectedRouterTurn
58
58
  } from "../chunk-XJEIGVMQ.js";
@@ -240,7 +240,7 @@ function AgentProfileRegistryMcpSearch({ registry, disabled, existingNames, vali
240
240
 
241
241
  // src/web-react/agent-profile-form-kit.tsx
242
242
  import { useId, useState as useState2 } from "react";
243
- import { Tooltip, TooltipContent, TooltipTrigger } from "@tangle-network/ui/primitives";
243
+ import { Card, CardContent, Collapsible, CollapsibleContent, CollapsibleTrigger, StatusPill as SharedStatusPill, Tooltip, TooltipContent, TooltipTrigger } from "@tangle-network/ui/primitives";
244
244
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
245
245
  var formText = {
246
246
  body: "text-sm leading-6 text-foreground",
@@ -305,6 +305,7 @@ function Chevron({ className }) {
305
305
  }
306
306
  function Section({ title, description, summary, defaultOpen = false, collapsible = false, children }) {
307
307
  const headingId = useId();
308
+ const [open, setOpen] = useState2(defaultOpen);
308
309
  const header = /* @__PURE__ */ jsxs2("span", { className: "flex min-w-0 flex-1 items-start justify-between gap-3", children: [
309
310
  /* @__PURE__ */ jsxs2("span", { className: "min-w-0 space-y-0.5", children: [
310
311
  /* @__PURE__ */ jsx2("span", { id: headingId, className: `block ${formText.title}`, children: title }),
@@ -312,19 +313,19 @@ function Section({ title, description, summary, defaultOpen = false, collapsible
312
313
  ] }),
313
314
  (summary || collapsible) && /* @__PURE__ */ jsxs2("span", { className: `flex shrink-0 items-center gap-2 ${formText.muted}`, children: [
314
315
  summary,
315
- collapsible && /* @__PURE__ */ jsx2(Chevron, { className: "size-4 transition-transform group-open:rotate-180" })
316
+ collapsible && /* @__PURE__ */ jsx2(Chevron, { className: "size-4 group-data-[state=open]:rotate-180" })
316
317
  ] })
317
318
  ] });
318
319
  if (!collapsible) {
319
- return /* @__PURE__ */ jsxs2("section", { "aria-labelledby": headingId, className: "min-w-0 rounded-xl border border-border bg-card", children: [
320
+ return /* @__PURE__ */ jsxs2(Card, { role: "region", "aria-labelledby": headingId, className: "min-w-0", children: [
320
321
  /* @__PURE__ */ jsx2("header", { className: "flex px-4 pt-4", children: header }),
321
- /* @__PURE__ */ jsx2("div", { className: "min-w-0 space-y-4 p-4", children })
322
+ /* @__PURE__ */ jsx2(CardContent, { className: "min-w-0 space-y-4 p-4", children })
322
323
  ] });
323
324
  }
324
- return /* @__PURE__ */ jsxs2("details", { open: defaultOpen || void 0, className: "group min-w-0 rounded-xl border border-border bg-card", children: [
325
- /* @__PURE__ */ jsx2("summary", { "aria-labelledby": headingId, className: "flex cursor-pointer list-none rounded-xl p-4 marker:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring [&::-webkit-details-marker]:hidden", children: header }),
326
- /* @__PURE__ */ jsx2("div", { className: "min-w-0 space-y-4 border-t border-border p-4", children })
327
- ] });
325
+ return /* @__PURE__ */ jsx2(Collapsible, { open, onOpenChange: setOpen, asChild: true, children: /* @__PURE__ */ jsxs2(Card, { className: "group min-w-0", children: [
326
+ /* @__PURE__ */ jsx2(CollapsibleTrigger, { "aria-labelledby": headingId, className: "flex w-full cursor-pointer rounded-xl p-4 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", children: header }),
327
+ /* @__PURE__ */ jsx2(CollapsibleContent, { forceMount: true, hidden: !open, asChild: true, children: /* @__PURE__ */ jsx2(CardContent, { className: "min-w-0 space-y-4 border-t border-border p-4", children }) })
328
+ ] }) });
328
329
  }
329
330
  var toneClass = {
330
331
  neutral: "text-muted-foreground",
@@ -358,10 +359,7 @@ function StatusLine({ tone, children, id }) {
358
359
  ] });
359
360
  }
360
361
  function StatusPill({ tone, children }) {
361
- return /* @__PURE__ */ jsxs2("span", { className: `inline-flex shrink-0 items-center gap-1.5 text-sm leading-6 ${toneClass[tone]}`, children: [
362
- tone === "pending" ? /* @__PURE__ */ jsx2(StatusGlyph, { tone: "pending" }) : /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", className: "size-2 rounded-full bg-current" }),
363
- children
364
- ] });
362
+ return /* @__PURE__ */ jsx2(SharedStatusPill, { bare: true, size: "md", tone: tone === "pending" ? "running" : tone === "error" ? "danger" : tone, children });
365
363
  }
366
364
  function Notice({ tone, children }) {
367
365
  return /* @__PURE__ */ jsx2("div", { role: tone === "error" ? "alert" : "status", className: `rounded-lg border p-3 text-sm leading-6 ${tone === "error" ? "border-destructive/40 bg-destructive/5 text-foreground" : "border-border bg-muted/50 text-foreground"}`, children });
@@ -2214,4 +2212,4 @@ export {
2214
2212
  AGENT_PROFILE_EDITOR_SECTIONS,
2215
2213
  AgentProfileEditor
2216
2214
  };
2217
- //# sourceMappingURL=chunk-GIJY3YCH.js.map
2215
+ //# sourceMappingURL=chunk-3RHAF2P5.js.map