@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.
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/assistant/index.js +5 -5
- package/dist/channels/index.js +1 -1
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-GIJY3YCH.js → chunk-3RHAF2P5.js} +11 -13
- package/dist/chunk-3RHAF2P5.js.map +1 -0
- package/dist/{chunk-ER3KSBA4.js → chunk-75ZIWV4U.js} +4 -4
- package/dist/{chunk-7PSYT35Z.js → chunk-7BYY7QKC.js} +5 -5
- package/dist/{chunk-7PSYT35Z.js.map → chunk-7BYY7QKC.js.map} +1 -1
- package/dist/chunk-A2GG4D4A.js +43 -0
- package/dist/chunk-A2GG4D4A.js.map +1 -0
- package/dist/{chunk-6CKNC32J.js → chunk-AJZ3EJB5.js} +2 -2
- package/dist/{chunk-4WEUWCA4.js → chunk-EQRVOMMS.js} +2 -2
- package/dist/{chunk-ARBBJWZA.js → chunk-KOTNMTHV.js} +3 -3
- package/dist/{chunk-LSUELMHY.js → chunk-LN5RBVGP.js} +6 -33
- package/dist/{chunk-LSUELMHY.js.map → chunk-LN5RBVGP.js.map} +1 -1
- package/dist/{chunk-IAFPBYQQ.js → chunk-QGOGX3DL.js} +52 -67
- package/dist/chunk-QGOGX3DL.js.map +1 -0
- package/dist/{chunk-NO2YNV5C.js → chunk-YXLN4PXK.js} +2 -2
- package/dist/integrations-react/index.js +1 -1
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/sandbox/index.js +4 -4
- package/dist/stories/app-shell/interaction-evidence.d.ts +31 -0
- package/dist/studio-react/index.js +2 -2
- package/dist/theme/tokens.css +158 -0
- package/dist/tools/index.js +4 -4
- package/dist/web-react/action-dialog.d.ts +2 -2
- package/dist/web-react/agent-profile-editor.js +1 -1
- package/dist/web-react/agent-profile-form-kit.d.ts +1 -1
- package/dist/web-react/async/index.js +1 -1
- package/dist/web-react/index.js +5 -5
- package/dist/work-product/index.js +2 -2
- package/dist/workspace-react/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-GIJY3YCH.js.map +0 -1
- package/dist/chunk-IAFPBYQQ.js.map +0 -1
- package/dist/chunk-QJYJOMMO.js +0 -78
- package/dist/chunk-QJYJOMMO.js.map +0 -1
- /package/dist/{chunk-ER3KSBA4.js.map → chunk-75ZIWV4U.js.map} +0 -0
- /package/dist/{chunk-6CKNC32J.js.map → chunk-AJZ3EJB5.js.map} +0 -0
- /package/dist/{chunk-4WEUWCA4.js.map → chunk-EQRVOMMS.js.map} +0 -0
- /package/dist/{chunk-ARBBJWZA.js.map → chunk-KOTNMTHV.js.map} +0 -0
- /package/dist/{chunk-NO2YNV5C.js.map → chunk-YXLN4PXK.js.map} +0 -0
package/dist/chunk-QJYJOMMO.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OVERLAY_SHADOW
|
|
3
|
-
} from "./chunk-TJ4DYKF2.js";
|
|
4
|
-
|
|
5
|
-
// src/web-react/action-dialog.tsx
|
|
6
|
-
import { useEffect } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
function ActionDialogButton({
|
|
9
|
-
children,
|
|
10
|
-
onClick,
|
|
11
|
-
disabled,
|
|
12
|
-
variant = "primary"
|
|
13
|
-
}) {
|
|
14
|
-
const tone = variant === "ghost" ? "text-muted-foreground hover:bg-accent hover:text-foreground" : variant === "destructive" ? "bg-destructive text-destructive-foreground hover:opacity-90" : "bg-primary text-primary-foreground hover:opacity-90";
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
"button",
|
|
17
|
-
{
|
|
18
|
-
type: "button",
|
|
19
|
-
onClick,
|
|
20
|
-
disabled,
|
|
21
|
-
className: `h-9 rounded-md px-3 text-sm font-medium transition disabled:opacity-50 ${tone}`,
|
|
22
|
-
children
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
function ActionDialog({
|
|
27
|
-
title,
|
|
28
|
-
children,
|
|
29
|
-
footer,
|
|
30
|
-
onClose,
|
|
31
|
-
busy,
|
|
32
|
-
error
|
|
33
|
-
}) {
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
const opener = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
36
|
-
return () => opener?.focus();
|
|
37
|
-
}, []);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
const onKey = (e) => {
|
|
40
|
-
if (e.key === "Escape" && !busy) onClose();
|
|
41
|
-
};
|
|
42
|
-
document.addEventListener("keydown", onKey);
|
|
43
|
-
return () => document.removeEventListener("keydown", onKey);
|
|
44
|
-
}, [busy, onClose]);
|
|
45
|
-
return /* @__PURE__ */ jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
47
|
-
"div",
|
|
48
|
-
{
|
|
49
|
-
className: "absolute inset-0 bg-black/50",
|
|
50
|
-
onClick: () => {
|
|
51
|
-
if (!busy) onClose();
|
|
52
|
-
},
|
|
53
|
-
"aria-hidden": true
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
/* @__PURE__ */ jsxs(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
role: "dialog",
|
|
60
|
-
"aria-modal": "true",
|
|
61
|
-
"aria-label": title,
|
|
62
|
-
className: `relative w-full max-w-sm rounded-xl border border-card-edge bg-popover p-5 ${OVERLAY_SHADOW}`,
|
|
63
|
-
children: [
|
|
64
|
-
/* @__PURE__ */ jsx("h2", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
65
|
-
/* @__PURE__ */ jsx("div", { className: "mt-3", children }),
|
|
66
|
-
error && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-3 rounded-md bg-destructive/10 px-3 py-2 text-xs text-destructive", children: error }),
|
|
67
|
-
/* @__PURE__ */ jsx("div", { className: "mt-5 flex justify-end gap-2", children: footer })
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
] });
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export {
|
|
75
|
-
ActionDialogButton,
|
|
76
|
-
ActionDialog
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=chunk-QJYJOMMO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/web-react/action-dialog.tsx"],"sourcesContent":["import { useEffect, type ReactNode } from 'react'\n\nimport { OVERLAY_SHADOW } from './controls'\n\n// The one confirm/edit dialog behind every rename and delete in the shell —\n// session history and the workspace listing share it so the two never drift\n// into subtly different destructive confirmations.\n\nexport function ActionDialogButton({\n children,\n onClick,\n disabled,\n variant = 'primary',\n}: {\n children: ReactNode\n onClick: () => void\n disabled?: boolean\n variant?: 'primary' | 'ghost' | 'destructive'\n}) {\n const tone =\n variant === 'ghost'\n ? 'text-muted-foreground hover:bg-accent hover:text-foreground'\n : variant === 'destructive'\n ? 'bg-destructive text-destructive-foreground hover:opacity-90'\n : 'bg-primary text-primary-foreground hover:opacity-90'\n return (\n <button\n type=\"button\"\n onClick={onClick}\n disabled={disabled}\n className={`h-9 rounded-md px-3 text-sm font-medium transition disabled:opacity-50 ${tone}`}\n >\n {children}\n </button>\n )\n}\n\nexport function ActionDialog({\n title,\n children,\n footer,\n onClose,\n busy,\n error,\n}: {\n title: string\n children: ReactNode\n footer: ReactNode\n onClose: () => void\n busy: boolean\n error: string | null\n}) {\n // Hand focus back to whatever opened the dialog when it closes.\n useEffect(() => {\n const opener = document.activeElement instanceof HTMLElement ? document.activeElement : null\n return () => opener?.focus()\n }, [])\n\n // Escape closes unless a mutation is in flight — closing mid-write would hide\n // the error the user needs to see.\n useEffect(() => {\n const onKey = (e: KeyboardEvent) => {\n if (e.key === 'Escape' && !busy) onClose()\n }\n document.addEventListener('keydown', onKey)\n return () => document.removeEventListener('keydown', onKey)\n }, [busy, onClose])\n\n return (\n <div className=\"fixed inset-0 z-50 flex items-center justify-center p-4\">\n <div\n className=\"absolute inset-0 bg-black/50\"\n onClick={() => {\n if (!busy) onClose()\n }}\n aria-hidden\n />\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={title}\n className={`relative w-full max-w-sm rounded-xl border border-card-edge bg-popover p-5 ${OVERLAY_SHADOW}`}\n >\n <h2 className=\"text-sm font-semibold text-foreground\">{title}</h2>\n <div className=\"mt-3\">{children}</div>\n {error && (\n <p role=\"alert\" className=\"mt-3 rounded-md bg-destructive/10 px-3 py-2 text-xs text-destructive\">\n {error}\n </p>\n )}\n <div className=\"mt-5 flex justify-end gap-2\">{footer}</div>\n </div>\n </div>\n )\n}\n"],"mappings":";;;;;AAAA,SAAS,iBAAiC;AA0BtC,cAmDE,YAnDF;AAlBG,SAAS,mBAAmB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AACZ,GAKG;AACD,QAAM,OACJ,YAAY,UACR,gEACA,YAAY,gBACV,gEACA;AACR,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,WAAW,0EAA0E,IAAI;AAAA,MAExF;AAAA;AAAA,EACH;AAEJ;AAEO,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAOG;AAED,YAAU,MAAM;AACd,UAAM,SAAS,SAAS,yBAAyB,cAAc,SAAS,gBAAgB;AACxF,WAAO,MAAM,QAAQ,MAAM;AAAA,EAC7B,GAAG,CAAC,CAAC;AAIL,YAAU,MAAM;AACd,UAAM,QAAQ,CAAC,MAAqB;AAClC,UAAI,EAAE,QAAQ,YAAY,CAAC,KAAM,SAAQ;AAAA,IAC3C;AACA,aAAS,iBAAiB,WAAW,KAAK;AAC1C,WAAO,MAAM,SAAS,oBAAoB,WAAW,KAAK;AAAA,EAC5D,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,qBAAC,SAAI,WAAU,2DACb;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,SAAS,MAAM;AACb,cAAI,CAAC,KAAM,SAAQ;AAAA,QACrB;AAAA,QACA,eAAW;AAAA;AAAA,IACb;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,cAAW;AAAA,QACX,cAAY;AAAA,QACZ,WAAW,8EAA8E,cAAc;AAAA,QAEvG;AAAA,8BAAC,QAAG,WAAU,yCAAyC,iBAAM;AAAA,UAC7D,oBAAC,SAAI,WAAU,QAAQ,UAAS;AAAA,UAC/B,SACC,oBAAC,OAAE,MAAK,SAAQ,WAAU,wEACvB,iBACH;AAAA,UAEF,oBAAC,SAAI,WAAU,+BAA+B,kBAAO;AAAA;AAAA;AAAA,IACvD;AAAA,KACF;AAEJ;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|