@opengeni/react 7.4.0 → 7.5.0-canary.36919050519001
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 +124 -27
- package/dist/artifacts-document.js +3 -2
- package/dist/artifacts-presentation.js +3 -2
- package/dist/artifacts-spreadsheet.js +2 -2
- package/dist/artifacts.d.ts +1 -0
- package/dist/artifacts.js +516 -1413
- package/dist/artifacts.js.map +1 -1
- package/dist/{browser-viewer-2E6R2Y4W.js → browser-viewer-Z7S7QEJL.js} +6 -5
- package/dist/chat-interactive-block-UGBTNB3L.js +11 -0
- package/dist/{chunk-Y3QTZN2F.js → chunk-2VFNCX4E.js} +6 -6
- package/dist/{chunk-UDD6DLLT.js → chunk-3IJJEYW4.js} +15 -3
- package/dist/chunk-3IJJEYW4.js.map +1 -0
- package/dist/chunk-4RVYOY4O.js +379 -0
- package/dist/chunk-4RVYOY4O.js.map +1 -0
- package/dist/chunk-5CVXZA3Y.js +292 -0
- package/dist/chunk-5CVXZA3Y.js.map +1 -0
- package/dist/{chunk-5YK2ZDIG.js → chunk-5J4FOW6Q.js} +2 -10
- package/dist/chunk-5J4FOW6Q.js.map +1 -0
- package/dist/{chunk-KVERXCFY.js → chunk-5KYZIQFY.js} +40 -3
- package/dist/chunk-5KYZIQFY.js.map +1 -0
- package/dist/{chunk-KNDIXZN6.js → chunk-7UAMYXJY.js} +25 -18
- package/dist/{chunk-KNDIXZN6.js.map → chunk-7UAMYXJY.js.map} +1 -1
- package/dist/{chunk-SEEVCT36.js → chunk-A4UJB2MM.js} +2 -2
- package/dist/{chunk-X4HIN6TV.js → chunk-AFLPWUQ7.js} +71 -162
- package/dist/chunk-AFLPWUQ7.js.map +1 -0
- package/dist/chunk-B3V6TG77.js +41 -0
- package/dist/chunk-B3V6TG77.js.map +1 -0
- package/dist/{chunk-XEJEOAOV.js → chunk-B7WMS3CS.js} +51 -40
- package/dist/chunk-B7WMS3CS.js.map +1 -0
- package/dist/{chunk-S5JQ4R22.js → chunk-BDKR6BAR.js} +54 -24
- package/dist/chunk-BDKR6BAR.js.map +1 -0
- package/dist/{chunk-4MDLEHXL.js → chunk-DYWBUX5Q.js} +24 -12
- package/dist/chunk-DYWBUX5Q.js.map +1 -0
- package/dist/{chunk-YZ3YYMOM.js → chunk-E3G7SAYZ.js} +252 -624
- package/dist/chunk-E3G7SAYZ.js.map +1 -0
- package/dist/chunk-JT4JW7BC.js +54 -0
- package/dist/chunk-JT4JW7BC.js.map +1 -0
- package/dist/{chunk-5AZSK6MV.js → chunk-LWNLETQT.js} +5 -5
- package/dist/{chunk-USXVQACU.js → chunk-M7LBYP63.js} +5 -4
- package/dist/{chunk-USXVQACU.js.map → chunk-M7LBYP63.js.map} +1 -1
- package/dist/{chunk-L4OSXQ6H.js → chunk-NBOHNRLJ.js} +1289 -1060
- package/dist/chunk-NBOHNRLJ.js.map +1 -0
- package/dist/chunk-RHREZ7BO.js +11 -0
- package/dist/chunk-RHREZ7BO.js.map +1 -0
- package/dist/chunk-SCOTPE2I.js +589 -0
- package/dist/chunk-SCOTPE2I.js.map +1 -0
- package/dist/chunk-WEHMPOXK.js +39 -0
- package/dist/chunk-WEHMPOXK.js.map +1 -0
- package/dist/chunk-WRHIZYZF.js +988 -0
- package/dist/chunk-WRHIZYZF.js.map +1 -0
- package/dist/{chunk-3E2AITTZ.js → chunk-WUISZ3WU.js} +32 -28
- package/dist/{chunk-3E2AITTZ.js.map → chunk-WUISZ3WU.js.map} +1 -1
- package/dist/chunk-XCHWDJ22.js +107 -0
- package/dist/chunk-XCHWDJ22.js.map +1 -0
- package/dist/{chunk-DUEBTL3N.js → chunk-Y2PRMYLC.js} +4 -3
- package/dist/{chunk-DUEBTL3N.js.map → chunk-Y2PRMYLC.js.map} +1 -1
- package/dist/chunk-YBXQDQFX.js +1772 -0
- package/dist/chunk-YBXQDQFX.js.map +1 -0
- package/dist/chunk-YV4L3ILF.js +9 -0
- package/dist/chunk-YV4L3ILF.js.map +1 -0
- package/dist/{chunk-V2ABIVYJ.js → chunk-ZXSEDZP7.js} +70 -6
- package/dist/chunk-ZXSEDZP7.js.map +1 -0
- package/dist/components/artifacts/artifact-chrome.d.ts +120 -0
- package/dist/components/artifacts/artifact-sandbox.d.ts +27 -0
- package/dist/components/artifacts/chat-interactive-block.d.ts +29 -0
- package/dist/components/artifacts/deferred-chat-media.d.ts +15 -0
- package/dist/components/artifacts/editable-artifact-ui.d.ts +2 -1
- package/dist/components/artifacts/editable-artifact-view.d.ts +46 -0
- package/dist/components/artifacts/index.d.ts +7 -0
- package/dist/components/artifacts/latest-task-runner.d.ts +15 -0
- package/dist/components/artifacts/session-artifact-viewer.d.ts +39 -0
- package/dist/components/artifacts/site-view.d.ts +23 -0
- package/dist/components/browser-select-control.d.ts +3 -1
- package/dist/components/code-editor.d.ts +1 -4
- package/dist/components/desktop-viewer.d.ts +1 -1
- package/dist/components/message-timeline.d.ts +20 -3
- package/dist/components/open-geni-links.d.ts +16 -0
- package/dist/components/session-conversation.d.ts +20 -1
- package/dist/components/timeline-pill-geometry.d.ts +8 -0
- package/dist/components/timeline-pill-placement.d.ts +24 -0
- package/dist/components/usage-limit-notice.d.ts +49 -0
- package/dist/components/usage-member-list.d.ts +91 -0
- package/dist/components/usage-meter.d.ts +73 -0
- package/dist/composer.js +5 -5
- package/dist/{computer-viewer-WMJE6OA3.js → computer-viewer-KJWLH3GI.js} +7 -5
- package/dist/connect.js +7 -6
- package/dist/connect.js.map +1 -1
- package/dist/conversation-timeline.d.ts +1 -1
- package/dist/desktop.d.ts +7 -0
- package/dist/desktop.js +26 -0
- package/dist/desktop.js.map +1 -0
- package/dist/editor.d.ts +7 -0
- package/dist/editor.js +21 -0
- package/dist/editor.js.map +1 -0
- package/dist/hooks/latest-question.d.ts +1 -1
- package/dist/hooks/use-composer.d.ts +4 -0
- package/dist/hooks/use-desktop-stream.d.ts +1 -1
- package/dist/hooks/use-usage.d.ts +40 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +460 -1386
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +8 -6
- package/dist/interaction.js.map +1 -1
- package/dist/{latest-question-QB4EUCW5.js → latest-question-IS445HOW.js} +3 -3
- package/dist/lib/format.d.ts +6 -1
- package/dist/lib/workbench-peers.d.ts +36 -0
- package/dist/machines.js +2 -2
- package/dist/{markdown-table-layout-PFUEZ2U4.js → markdown-table-layout-QXSLK4BY.js} +37 -5
- package/dist/markdown-table-layout-QXSLK4BY.js.map +1 -0
- package/dist/{queue-surface-implementation-IM2HD3SK.js → queue-surface-implementation-2CAQAIHM.js} +2 -2
- package/dist/realtime.js +3 -3
- package/dist/{sandbox-files-PXPIZAFG.js → sandbox-files-AEJTWGT4.js} +8 -5
- package/dist/sandbox-files-AEJTWGT4.js.map +1 -0
- package/dist/session-ui.d.ts +9 -2
- package/dist/session-ui.js +39 -20
- package/dist/session-ui.js.map +1 -1
- package/dist/session.js +4 -4
- package/dist/sites.js +4 -289
- package/dist/sites.js.map +1 -1
- package/dist/terminal.d.ts +8 -0
- package/dist/terminal.js +31 -0
- package/dist/terminal.js.map +1 -0
- package/dist/timeline/allowance-exhausted-row.d.ts +24 -0
- package/dist/timeline/genie-loading.d.ts +3 -1
- package/dist/timeline/types.d.ts +8 -1
- package/dist/{timeline-annotation-selection-ODLVF4OI.js → timeline-annotation-selection-DMLMM2TX.js} +6 -1
- package/dist/timeline-annotation-selection-DMLMM2TX.js.map +1 -0
- package/dist/timeline-pill-geometry-Z23V243M.js +110 -0
- package/dist/timeline-pill-geometry-Z23V243M.js.map +1 -0
- package/dist/usage/allowance-copy.d.ts +25 -0
- package/dist/usage/summary.d.ts +35 -0
- package/dist/usage.d.ts +13 -0
- package/dist/usage.js +1073 -0
- package/dist/usage.js.map +1 -0
- package/package.json +19 -3
- package/src/artifacts.ts +37 -0
- package/src/components/artifacts/artifact-chrome.tsx +413 -0
- package/src/components/artifacts/artifact-sandbox.tsx +185 -0
- package/src/components/artifacts/chat-interactive-block.tsx +260 -0
- package/src/components/artifacts/deferred-chat-media.tsx +67 -0
- package/src/components/artifacts/editable-artifact-ui.tsx +3 -1
- package/src/components/artifacts/editable-artifact-view.tsx +187 -0
- package/src/components/artifacts/editable-artifact-workbench.tsx +5 -2
- package/src/components/artifacts/editable-document.tsx +34 -36
- package/src/components/artifacts/editable-presentation.tsx +21 -16
- package/src/components/artifacts/index.ts +41 -0
- package/src/components/artifacts/latest-task-runner.ts +49 -0
- package/src/components/artifacts/session-artifact-viewer.tsx +376 -0
- package/src/components/artifacts/site-view.tsx +116 -0
- package/src/components/browser-select-control.tsx +4 -1
- package/src/components/browser-viewer.tsx +81 -22
- package/src/components/code-editor.tsx +13 -16
- package/src/components/computer-viewer.tsx +51 -23
- package/src/components/desktop-viewer.tsx +1 -1
- package/src/components/markdown-table-layout.ts +49 -5
- package/src/components/markdown.tsx +5 -2
- package/src/components/message-timeline.tsx +557 -516
- package/src/components/open-geni-links.tsx +24 -0
- package/src/components/sandbox-terminal.tsx +48 -11
- package/src/components/session-chrome.tsx +22 -3
- package/src/components/session-conversation.tsx +195 -102
- package/src/components/timeline-annotation-selection.tsx +7 -0
- package/src/components/timeline-pill-geometry.ts +169 -0
- package/src/components/timeline-pill-placement.ts +99 -0
- package/src/components/usage-limit-notice.tsx +179 -0
- package/src/components/usage-member-list.tsx +792 -0
- package/src/components/usage-meter.tsx +382 -0
- package/src/conversation-timeline.ts +10 -2
- package/src/desktop.ts +24 -0
- package/src/editor.ts +13 -0
- package/src/hooks/use-available-models.ts +1 -1
- package/src/hooks/use-composer.ts +57 -2
- package/src/hooks/use-desktop-stream.ts +19 -28
- package/src/hooks/use-usage.ts +100 -0
- package/src/index.ts +22 -0
- package/src/lib/format.ts +32 -6
- package/src/lib/workbench-peers.ts +62 -0
- package/src/session-ui.ts +22 -0
- package/src/terminal.ts +26 -0
- package/src/timeline/activity-rail.tsx +5 -3
- package/src/timeline/allowance-exhausted-row.tsx +86 -0
- package/src/timeline/genie-loading.tsx +16 -6
- package/src/timeline/projection.ts +78 -4
- package/src/timeline/types.ts +8 -0
- package/src/usage/allowance-copy.ts +64 -0
- package/src/usage/summary.ts +93 -0
- package/src/usage.ts +50 -0
- package/styles/compiled.css +325 -0
- package/dist/chunk-4MDLEHXL.js.map +0 -1
- package/dist/chunk-5YK2ZDIG.js.map +0 -1
- package/dist/chunk-KVERXCFY.js.map +0 -1
- package/dist/chunk-L4OSXQ6H.js.map +0 -1
- package/dist/chunk-S5JQ4R22.js.map +0 -1
- package/dist/chunk-UDD6DLLT.js.map +0 -1
- package/dist/chunk-UGMKPUEM.js +0 -299
- package/dist/chunk-UGMKPUEM.js.map +0 -1
- package/dist/chunk-V2ABIVYJ.js.map +0 -1
- package/dist/chunk-X4HIN6TV.js.map +0 -1
- package/dist/chunk-XEJEOAOV.js.map +0 -1
- package/dist/chunk-YZ3YYMOM.js.map +0 -1
- package/dist/markdown-table-layout-PFUEZ2U4.js.map +0 -1
- package/dist/timeline-annotation-selection-ODLVF4OI.js.map +0 -1
- /package/dist/{browser-viewer-2E6R2Y4W.js.map → browser-viewer-Z7S7QEJL.js.map} +0 -0
- /package/dist/{computer-viewer-WMJE6OA3.js.map → chat-interactive-block-UGBTNB3L.js.map} +0 -0
- /package/dist/{chunk-Y3QTZN2F.js.map → chunk-2VFNCX4E.js.map} +0 -0
- /package/dist/{chunk-SEEVCT36.js.map → chunk-A4UJB2MM.js.map} +0 -0
- /package/dist/{chunk-5AZSK6MV.js.map → chunk-LWNLETQT.js.map} +0 -0
- /package/dist/{sandbox-files-PXPIZAFG.js.map → computer-viewer-KJWLH3GI.js.map} +0 -0
- /package/dist/{latest-question-QB4EUCW5.js.map → latest-question-IS445HOW.js.map} +0 -0
- /package/dist/{queue-surface-implementation-IM2HD3SK.js.map → queue-surface-implementation-2CAQAIHM.js.map} +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { MemberAllowanceDefault, MemberAllowanceRule, MemberAllowanceUsage, WorkspaceUsageResponse } from "@opengeni/sdk/usage-allowances";
|
|
2
|
+
/** How a member is named in the list. Usage rows carry only a subject id. */
|
|
3
|
+
export type UsageMemberIdentity = {
|
|
4
|
+
name: string;
|
|
5
|
+
/** A second line: an email, a role, or "You". */
|
|
6
|
+
detail?: string | null | undefined;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Opt in to fixed-amount limits. Amounts are USD micros on the wire; your
|
|
10
|
+
* format/parse decide the unit people type ("$50.00", "500 credits").
|
|
11
|
+
*/
|
|
12
|
+
export type UsageAmountFormat = {
|
|
13
|
+
format: (micros: number) => string;
|
|
14
|
+
/** Returns micros, or null when the text is not a valid amount. */
|
|
15
|
+
parse: (text: string) => number | null;
|
|
16
|
+
/** Shown before the input, for example "$". */
|
|
17
|
+
prefix?: string | undefined;
|
|
18
|
+
/** The amount input's step in the person's unit. */
|
|
19
|
+
step?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type UsageMemberListLabels = {
|
|
22
|
+
listLabel: string;
|
|
23
|
+
used: (percent: string) => string;
|
|
24
|
+
noLimitUsed: string;
|
|
25
|
+
amounts: (used: string, limit: string) => string;
|
|
26
|
+
nearLimit: string;
|
|
27
|
+
limitReached: string;
|
|
28
|
+
limit: string;
|
|
29
|
+
defaultEqualShare: (percent: string) => string;
|
|
30
|
+
defaultNone: string;
|
|
31
|
+
defaultShare: (percent: string) => string;
|
|
32
|
+
defaultAmount: (amount: string) => string;
|
|
33
|
+
share: (percent: string) => string;
|
|
34
|
+
amount: (amount: string) => string;
|
|
35
|
+
fixedAmountHidden: string;
|
|
36
|
+
edit: (name: string) => string;
|
|
37
|
+
editorTitle: (name: string) => string;
|
|
38
|
+
optionDefault: string;
|
|
39
|
+
optionShare: string;
|
|
40
|
+
optionAmount: string;
|
|
41
|
+
fixedAmountHint: string;
|
|
42
|
+
shareSlider: string;
|
|
43
|
+
shareInput: string;
|
|
44
|
+
amountInput: string;
|
|
45
|
+
equalShareMultiple: (multiple: string) => string;
|
|
46
|
+
sameAsEqualShare: string;
|
|
47
|
+
atBudget: (amount: string) => string;
|
|
48
|
+
save: string;
|
|
49
|
+
saving: string;
|
|
50
|
+
cancel: string;
|
|
51
|
+
saveFailed: string;
|
|
52
|
+
invalidAmount: string;
|
|
53
|
+
totalWithin: (percent: string) => string;
|
|
54
|
+
totalOver: (percent: string) => string;
|
|
55
|
+
oversubscribedHelp: string;
|
|
56
|
+
unlimitedMembers: (count: number) => string;
|
|
57
|
+
empty: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const DEFAULT_USAGE_MEMBER_LIST_LABELS: UsageMemberListLabels;
|
|
60
|
+
export type UsageMemberListProps = {
|
|
61
|
+
/** The full roster for one period (`getAllUsage` / every `getUsage` page). */
|
|
62
|
+
usage: WorkspaceUsageResponse;
|
|
63
|
+
/** The workspace's `memberDefault`, to name what "default" means. */
|
|
64
|
+
memberDefault?: MemberAllowanceDefault | null | undefined;
|
|
65
|
+
/** Name a member. Defaults to the external id, then the subject id. */
|
|
66
|
+
describe?: ((member: MemberAllowanceUsage) => UsageMemberIdentity) | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Save a member's rule (`null` restores the default). Omit for a read-only
|
|
69
|
+
* list. Run it on your backend: member limits need workspace admin authority.
|
|
70
|
+
*/
|
|
71
|
+
onChangeRule?: ((member: MemberAllowanceUsage, rule: MemberAllowanceRule) => Promise<void>) | undefined;
|
|
72
|
+
/** Opt in to amounts and fixed-amount limits. Shares only without it. */
|
|
73
|
+
amounts?: UsageAmountFormat | undefined;
|
|
74
|
+
labels?: Partial<UsageMemberListLabels> | undefined;
|
|
75
|
+
/** Draw the list's own border. Turn off inside a card that already has one. */
|
|
76
|
+
framed?: boolean | undefined;
|
|
77
|
+
className?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
/** Words for a member's current limit, from their override or the default. */
|
|
80
|
+
export declare function describeMemberLimit(member: Pick<MemberAllowanceUsage, "rule" | "limit">, context: {
|
|
81
|
+
memberDefault: MemberAllowanceDefault | null | undefined;
|
|
82
|
+
shareBase: number;
|
|
83
|
+
amounts?: UsageAmountFormat | undefined;
|
|
84
|
+
labels?: Partial<UsageMemberListLabels> | undefined;
|
|
85
|
+
}): string;
|
|
86
|
+
/**
|
|
87
|
+
* Every member's usage against their own limit, with an optional editor:
|
|
88
|
+
* a share-of-budget slider (default), a fixed amount, or the workspace
|
|
89
|
+
* default. Oversubscription is shown, never blocked.
|
|
90
|
+
*/
|
|
91
|
+
export declare function UsageMemberList({ usage, memberDefault, describe, onChangeRule, amounts, labels: overrides, framed, className, }: UsageMemberListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { UsageAllowancePeriod, WorkspaceUsageResponse } from "@opengeni/sdk/usage-allowances";
|
|
2
|
+
import { type UsageClientLike } from "../hooks/use-usage.js";
|
|
3
|
+
import { type AllowanceLabels } from "../usage/allowance-copy.js";
|
|
4
|
+
import { type UsageSummary } from "../usage/summary.js";
|
|
5
|
+
export type UsageMeterLabels = AllowanceLabels & {
|
|
6
|
+
/** Heading for the member's own ceiling. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Heading when only the shared workspace pool applies. */
|
|
9
|
+
workspaceTitle: string;
|
|
10
|
+
/** "38% left" — `percent` is preformatted ("38", "<1"). */
|
|
11
|
+
left: (percent: string) => string;
|
|
12
|
+
/** "62% used". */
|
|
13
|
+
used: (percent: string) => string;
|
|
14
|
+
limitReached: string;
|
|
15
|
+
/** Status chip beside a hero meter that is close to its limit. */
|
|
16
|
+
nearLimit: string;
|
|
17
|
+
/** "$13.00 left" for a hero meter with amounts. */
|
|
18
|
+
amountLeft: (amount: string) => string;
|
|
19
|
+
/** No ceiling applies to this member. */
|
|
20
|
+
unlimited: string;
|
|
21
|
+
loading: string;
|
|
22
|
+
error: string;
|
|
23
|
+
retry: string;
|
|
24
|
+
/** "$31.00 of $50.00 used" when the host passes `formatAmount`. */
|
|
25
|
+
amounts: (used: string, limit: string) => string;
|
|
26
|
+
/** The shared pool, under a member's own meter: "Workspace: 9% left". */
|
|
27
|
+
workspaceLine: (value: string) => string;
|
|
28
|
+
};
|
|
29
|
+
export declare const DEFAULT_USAGE_METER_LABELS: UsageMeterLabels;
|
|
30
|
+
export type UsageMeterBaseProps = {
|
|
31
|
+
/** "left" (default) reads like a battery; "used" reads like spend. */
|
|
32
|
+
measure?: "left" | "used" | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Opt in to amounts. Receives USD micros; return your own unit ("$31.00",
|
|
35
|
+
* "3.1 credits", "1.5× plan"). Without it the meter shows only shares.
|
|
36
|
+
*/
|
|
37
|
+
formatAmount?: ((micros: number) => string) | undefined;
|
|
38
|
+
labels?: Partial<UsageMeterLabels> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* `compact` is one line for menus and headers; `hero` leads a page with the
|
|
41
|
+
* amount (or share) left in large type. An empty `labels.title` hides the
|
|
42
|
+
* heading when the page already names it.
|
|
43
|
+
*/
|
|
44
|
+
density?: "default" | "compact" | "hero" | undefined;
|
|
45
|
+
/** Show the shared pool under the member's own meter when it is the tighter one. Default true. */
|
|
46
|
+
showWorkspace?: boolean | undefined;
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
export type UsageMeterProps = UsageMeterBaseProps & {
|
|
50
|
+
/**
|
|
51
|
+
* A usage response you already loaded (for example from `useUsage`).
|
|
52
|
+
* Omit it to let the meter read `/usage/me` itself.
|
|
53
|
+
*/
|
|
54
|
+
usage?: WorkspaceUsageResponse | null | undefined;
|
|
55
|
+
client?: UsageClientLike | undefined;
|
|
56
|
+
workspaceId?: string | undefined;
|
|
57
|
+
period?: UsageAllowancePeriod | undefined;
|
|
58
|
+
/** Re-read when this changes (see `useUsage`). */
|
|
59
|
+
refreshKey?: unknown;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The signed-in member's own usage: how much of their limit is left and when
|
|
63
|
+
* it resets. Shares only by default; hosts opt in to amounts.
|
|
64
|
+
*/
|
|
65
|
+
export declare function UsageMeter({ usage, client, workspaceId, period, refreshKey, ...view }: UsageMeterProps): import("react").JSX.Element;
|
|
66
|
+
export type UsageMeterViewProps = UsageMeterBaseProps & {
|
|
67
|
+
summary: UsageSummary | null;
|
|
68
|
+
loading?: boolean | undefined;
|
|
69
|
+
error?: Error | null | undefined;
|
|
70
|
+
onRetry?: (() => void) | undefined;
|
|
71
|
+
};
|
|
72
|
+
/** Presentational meter for a summary you computed (`summarizeUsage`). */
|
|
73
|
+
export declare function UsageMeterView({ summary, loading, error, onRetry, measure, formatAmount, labels: overrides, density, showWorkspace, className, }: UsageMeterViewProps): import("react").JSX.Element;
|
package/dist/composer.js
CHANGED
|
@@ -40,7 +40,9 @@ import {
|
|
|
40
40
|
useChatComposer,
|
|
41
41
|
useChatComposerController,
|
|
42
42
|
useVoiceInput
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2VFNCX4E.js";
|
|
44
|
+
import "./chunk-5KYZIQFY.js";
|
|
45
|
+
import "./chunk-BRM6FVZA.js";
|
|
44
46
|
import {
|
|
45
47
|
BillingClassMark,
|
|
46
48
|
ModelPolicyPicker,
|
|
@@ -50,13 +52,11 @@ import {
|
|
|
50
52
|
defaultModelPolicyPickerMessages
|
|
51
53
|
} from "./chunk-UINDK6C3.js";
|
|
52
54
|
import "./chunk-K3HQAKQX.js";
|
|
53
|
-
import "./chunk-KVERXCFY.js";
|
|
54
55
|
import "./chunk-CHPKSLPN.js";
|
|
56
|
+
import "./chunk-VZTQ73XT.js";
|
|
57
|
+
import "./chunk-3IJJEYW4.js";
|
|
55
58
|
import "./chunk-KZ73RL76.js";
|
|
56
59
|
import "./chunk-NEXLLTP4.js";
|
|
57
|
-
import "./chunk-BRM6FVZA.js";
|
|
58
|
-
import "./chunk-VZTQ73XT.js";
|
|
59
|
-
import "./chunk-UDD6DLLT.js";
|
|
60
60
|
import "./chunk-22KP6LR5.js";
|
|
61
61
|
export {
|
|
62
62
|
Actions,
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComputerViewer,
|
|
3
3
|
computerKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B7WMS3CS.js";
|
|
5
5
|
import "./chunk-YSMMDOOE.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-JVYQRRC4.js";
|
|
7
|
+
import "./chunk-DYWBUX5Q.js";
|
|
8
|
+
import "./chunk-RHREZ7BO.js";
|
|
9
|
+
import "./chunk-5J4FOW6Q.js";
|
|
8
10
|
import "./chunk-KZ73RL76.js";
|
|
9
11
|
import "./chunk-NEXLLTP4.js";
|
|
12
|
+
import "./chunk-JT4JW7BC.js";
|
|
10
13
|
import "./chunk-22KP6LR5.js";
|
|
11
|
-
import "./chunk-JVYQRRC4.js";
|
|
12
14
|
export {
|
|
13
15
|
ComputerViewer,
|
|
14
16
|
computerKey
|
|
15
17
|
};
|
|
16
|
-
//# sourceMappingURL=computer-viewer-
|
|
18
|
+
//# sourceMappingURL=computer-viewer-KJWLH3GI.js.map
|
package/dist/connect.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./chunk-IWIDV7SB.js";
|
|
1
2
|
import {
|
|
2
3
|
McpConnectionCard,
|
|
3
4
|
mcpConnectionDiscoveryState,
|
|
@@ -5,17 +6,17 @@ import {
|
|
|
5
6
|
} from "./chunk-45GE35O7.js";
|
|
6
7
|
import {
|
|
7
8
|
Markdown
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AFLPWUQ7.js";
|
|
9
10
|
import "./chunk-GIMRELBW.js";
|
|
10
11
|
import "./chunk-447JLCBU.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-VZTQ73XT.js";
|
|
13
|
-
import "./chunk-UDD6DLLT.js";
|
|
14
|
-
import "./chunk-22KP6LR5.js";
|
|
15
|
-
import "./chunk-IWIDV7SB.js";
|
|
12
|
+
import "./chunk-XCHWDJ22.js";
|
|
16
13
|
import {
|
|
17
14
|
copyTextToClipboard
|
|
18
15
|
} from "./chunk-JVYQRRC4.js";
|
|
16
|
+
import "./chunk-BRM6FVZA.js";
|
|
17
|
+
import "./chunk-VZTQ73XT.js";
|
|
18
|
+
import "./chunk-3IJJEYW4.js";
|
|
19
|
+
import "./chunk-22KP6LR5.js";
|
|
19
20
|
|
|
20
21
|
// src/capability-catalog-row.tsx
|
|
21
22
|
import { AlertTriangleIcon, CheckIcon, Loader2Icon, PlusIcon } from "lucide-react";
|