@tangle-network/agent-app 0.44.31 → 0.44.33
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/assistant/index.d.ts +2 -0
- package/dist/assistant/index.js +1 -1
- package/dist/billing-BibxgALe.d.ts +193 -0
- package/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-BAC2B2KI.js → chunk-7WXG4ZFP.js} +38 -1
- package/dist/chunk-7WXG4ZFP.js.map +1 -0
- package/dist/{chunk-GCH3BUAZ.js → chunk-NDVTYHLN.js} +46 -18
- package/dist/{chunk-GCH3BUAZ.js.map → chunk-NDVTYHLN.js.map} +1 -1
- package/dist/platform/index.d.ts +3 -177
- package/dist/platform/index.js +27 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +82 -1
- package/dist/sandbox/index.js +7 -1
- package/dist/web-react/index.d.ts +7 -4
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BAC2B2KI.js.map +0 -1
|
@@ -2687,7 +2687,15 @@ function AgentActivityPanel({ fetchActivity, renderMissionRef, title = "Agent ac
|
|
|
2687
2687
|
}
|
|
2688
2688
|
|
|
2689
2689
|
// src/web-react/seat-paywall.tsx
|
|
2690
|
-
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2690
|
+
import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2691
|
+
function usd(cents) {
|
|
2692
|
+
return new Intl.NumberFormat("en-US", {
|
|
2693
|
+
style: "currency",
|
|
2694
|
+
currency: "USD",
|
|
2695
|
+
minimumFractionDigits: cents % 100 === 0 ? 0 : 2,
|
|
2696
|
+
maximumFractionDigits: cents % 100 === 0 ? 0 : 2
|
|
2697
|
+
}).format(cents / 100);
|
|
2698
|
+
}
|
|
2691
2699
|
function CheckGlyph3() {
|
|
2692
2700
|
return /* @__PURE__ */ jsx11(
|
|
2693
2701
|
"svg",
|
|
@@ -2715,12 +2723,16 @@ function SeatPaywall({
|
|
|
2715
2723
|
onCheckout,
|
|
2716
2724
|
priceUsd = 100,
|
|
2717
2725
|
includedUsageUsd = 50,
|
|
2726
|
+
offer,
|
|
2718
2727
|
tagline,
|
|
2719
2728
|
ctaLabel,
|
|
2720
2729
|
benefits,
|
|
2721
2730
|
footnote
|
|
2722
2731
|
}) {
|
|
2723
2732
|
const { pending, run } = usePending();
|
|
2733
|
+
const recurringPrice = offer ? usd(offer.recurring.priceCents) : `$${priceUsd}`;
|
|
2734
|
+
const recurringUsage = offer ? usd(offer.recurring.includedCreditsCents) : `$${includedUsageUsd}`;
|
|
2735
|
+
const introductory = offer?.introductory ?? null;
|
|
2724
2736
|
return /* @__PURE__ */ jsx11("div", { className: "flex min-h-[60vh] w-full items-center justify-center p-6", children: /* @__PURE__ */ jsxs9("div", { className: "w-full max-w-md rounded-2xl border border-border bg-card p-8 shadow-sm", children: [
|
|
2725
2737
|
/* @__PURE__ */ jsx11("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: product }),
|
|
2726
2738
|
/* @__PURE__ */ jsxs9("h1", { className: "mt-2 text-2xl font-semibold tracking-tight text-foreground", children: [
|
|
@@ -2728,21 +2740,37 @@ function SeatPaywall({
|
|
|
2728
2740
|
product
|
|
2729
2741
|
] }),
|
|
2730
2742
|
tagline && /* @__PURE__ */ jsx11("p", { className: "mt-2 text-sm text-muted-foreground", children: tagline }),
|
|
2731
|
-
/* @__PURE__ */ jsxs9(
|
|
2732
|
-
/* @__PURE__ */ jsxs9("
|
|
2733
|
-
"
|
|
2734
|
-
|
|
2743
|
+
introductory ? /* @__PURE__ */ jsxs9(Fragment5, { children: [
|
|
2744
|
+
/* @__PURE__ */ jsxs9("div", { className: "mt-6 flex items-baseline gap-1.5", children: [
|
|
2745
|
+
/* @__PURE__ */ jsx11("span", { className: "text-3xl font-semibold text-foreground", children: usd(introductory.priceCents) }),
|
|
2746
|
+
/* @__PURE__ */ jsx11("span", { className: "text-sm text-muted-foreground", children: "first month" })
|
|
2735
2747
|
] }),
|
|
2736
|
-
/* @__PURE__ */
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
"
|
|
2748
|
+
/* @__PURE__ */ jsxs9("p", { className: "mt-1 text-sm text-muted-foreground", children: [
|
|
2749
|
+
"Includes ",
|
|
2750
|
+
usd(introductory.includedCreditsCents),
|
|
2751
|
+
" of AI usage in your first month"
|
|
2752
|
+
] }),
|
|
2753
|
+
/* @__PURE__ */ jsxs9("p", { className: "mt-1 text-sm text-muted-foreground", children: [
|
|
2754
|
+
"Then ",
|
|
2755
|
+
recurringPrice,
|
|
2756
|
+
"/mo \xB7 includes ",
|
|
2757
|
+
recurringUsage,
|
|
2758
|
+
"/mo of AI usage"
|
|
2759
|
+
] })
|
|
2760
|
+
] }) : /* @__PURE__ */ jsxs9(Fragment5, { children: [
|
|
2761
|
+
/* @__PURE__ */ jsxs9("div", { className: "mt-6 flex items-baseline gap-1.5", children: [
|
|
2762
|
+
/* @__PURE__ */ jsx11("span", { className: "text-3xl font-semibold text-foreground", children: recurringPrice }),
|
|
2763
|
+
/* @__PURE__ */ jsx11("span", { className: "text-sm text-muted-foreground", children: "/mo" })
|
|
2764
|
+
] }),
|
|
2765
|
+
/* @__PURE__ */ jsxs9("p", { className: "mt-1 text-sm text-muted-foreground", children: [
|
|
2766
|
+
"Includes ",
|
|
2767
|
+
recurringUsage,
|
|
2768
|
+
"/mo of AI usage"
|
|
2769
|
+
] })
|
|
2742
2770
|
] }),
|
|
2743
2771
|
/* @__PURE__ */ jsx11("ul", { className: "mt-6 space-y-2.5", children: (benefits ?? [
|
|
2744
2772
|
`Full access to ${product}`,
|
|
2745
|
-
|
|
2773
|
+
`${recurringUsage}/mo of AI usage included`
|
|
2746
2774
|
]).map((benefit, i) => /* @__PURE__ */ jsx11(Benefit, { children: benefit }, i)) }),
|
|
2747
2775
|
/* @__PURE__ */ jsx11(
|
|
2748
2776
|
"button",
|
|
@@ -2913,7 +2941,7 @@ function AgentSessionControls(props) {
|
|
|
2913
2941
|
}
|
|
2914
2942
|
|
|
2915
2943
|
// src/web-react/index.tsx
|
|
2916
|
-
import { Fragment as
|
|
2944
|
+
import { Fragment as Fragment6, jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2917
2945
|
function formatModelCost(msg, models) {
|
|
2918
2946
|
if (msg.promptTokens == null && msg.completionTokens == null) return null;
|
|
2919
2947
|
const pricing = models.find((m) => m.id === msg.modelUsed)?.pricing;
|
|
@@ -3143,7 +3171,7 @@ function ProposalCard({
|
|
|
3143
3171
|
] })
|
|
3144
3172
|
] }),
|
|
3145
3173
|
/* @__PURE__ */ jsxs11("div", { className: "flex flex-wrap items-center gap-2 px-4 pb-3.5 pt-3", children: [
|
|
3146
|
-
approval ? /* @__PURE__ */ jsxs11(
|
|
3174
|
+
approval ? /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
3147
3175
|
/* @__PURE__ */ jsx13(
|
|
3148
3176
|
"button",
|
|
3149
3177
|
{
|
|
@@ -3438,7 +3466,7 @@ function AssistantMessageImpl({
|
|
|
3438
3466
|
onToolCallClick,
|
|
3439
3467
|
toolRenderers
|
|
3440
3468
|
}
|
|
3441
|
-
) : /* @__PURE__ */ jsxs11(
|
|
3469
|
+
) : /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
3442
3470
|
/* @__PURE__ */ jsxs11("div", { className: "text-base leading-[1.75]", children: [
|
|
3443
3471
|
body,
|
|
3444
3472
|
streaming && content && !msg.toolCalls?.length && /* @__PURE__ */ jsx13(StreamingCaret, {})
|
|
@@ -3551,12 +3579,12 @@ function ChatMessages({
|
|
|
3551
3579
|
const lastIsUser = messages[messages.length - 1]?.role === "user";
|
|
3552
3580
|
if (messages.length === 0 && !loading && !error) {
|
|
3553
3581
|
const empty = renderEmpty ? renderEmpty() : /* @__PURE__ */ jsx13(ChatEmptyState, { ...emptyState });
|
|
3554
|
-
return /* @__PURE__ */ jsxs11(
|
|
3582
|
+
return /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
3555
3583
|
header,
|
|
3556
3584
|
empty
|
|
3557
3585
|
] });
|
|
3558
3586
|
}
|
|
3559
|
-
return /* @__PURE__ */ jsxs11(
|
|
3587
|
+
return /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
3560
3588
|
header,
|
|
3561
3589
|
messages.map(
|
|
3562
3590
|
(msg) => msg.role === "user" ? /* @__PURE__ */ jsx13("div", { className: "mx-auto w-full max-w-3xl px-6 py-3", children: /* @__PURE__ */ jsxs11("div", { className: "ml-auto w-fit max-w-[85%]", children: [
|
|
@@ -3670,4 +3698,4 @@ export {
|
|
|
3670
3698
|
useThinkingSeconds,
|
|
3671
3699
|
ChatMessages
|
|
3672
3700
|
};
|
|
3673
|
-
//# sourceMappingURL=chunk-
|
|
3701
|
+
//# sourceMappingURL=chunk-NDVTYHLN.js.map
|