@kortix/ui 0.15.3 → 0.15.5
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/_vendor/kortix-shared.js +87 -29
- package/dist/_vendor/shared/markdown-math.d.ts +6 -0
- package/dist/customize/agents/agent-drives-section.d.ts +1 -3
- package/dist/customize/agents/agent-drives-section.js +3 -4
- package/dist/customize/agents/agent-page.js +2 -2
- package/dist/customize/agents/agent-tabs.d.ts +1 -1
- package/dist/customize/agents/agent-tabs.js +1 -2
- package/dist/customize/connectors/add-mcp/add-mcp-server-dialog.js +7 -2
- package/dist/customize/connectors/add-mcp/add-mcp-server.d.ts +7 -0
- package/dist/customize/connectors/add-mcp/add-mcp-server.js +3 -0
- package/dist/customize/connectors/connectors-page.d.ts +8 -0
- package/dist/customize/connectors/connectors-page.js +34 -1
- package/dist/customize/sections/view/agent-editor-access-fields.js +1 -3
- package/dist/files/project/components/drive-explorer.js +64 -43
- package/dist/files/project/components/drive-upload-tray.d.ts +2 -1
- package/dist/files/project/components/drive-upload-tray.js +9 -4
- package/dist/files/project/drop-tree.d.ts +16 -0
- package/dist/files/project/drop-tree.js +39 -0
- package/dist/files/project/upload-batch.d.ts +15 -0
- package/dist/files/project/upload-batch.js +12 -0
- package/dist/i18n/en.d.ts +16 -6
- package/dist/i18n/en.js +29 -19
- package/dist/internal/billing/use-cost-explorer.d.ts +19 -1
- package/dist/internal/billing/use-cost-explorer.js +27 -1
- package/dist/internal/lib/billing/billing-gate-state.d.ts +5 -6
- package/dist/internal/lib/billing/billing-gate-state.js +10 -11
- package/dist/internal/lib/browser-error-noise.d.ts +1 -1
- package/dist/internal/lib/browser-error-noise.js +1 -1
- package/dist/internal/lib/browser-noise/rules/injected-scripts.d.ts +5 -1
- package/dist/internal/lib/browser-noise/rules/injected-scripts.js +86 -0
- package/dist/internal/lib/mermaid-utils.js +2 -24
- package/dist/primitives/mermaid-render.js +3 -20
- package/dist/session/composer/ComposerCard.d.ts +1 -1
- package/dist/session/composer/ComposerCard.js +2 -2
- package/dist/session/composer/composer-chat-input.d.ts +14 -1
- package/dist/session/composer/composer-chat-input.js +4 -2
- package/dist/session/composer/composer-toolbar.d.ts +4 -1
- package/dist/session/composer/composer-toolbar.js +2 -2
- package/dist/session/composer/composer.d.ts +8 -0
- package/dist/session/composer/queue-projection.d.ts +10 -8
- package/dist/session/composer/queue-projection.js +10 -9
- package/dist/session/composer/send-stop-control.d.ts +15 -1
- package/dist/session/composer/send-stop-control.js +30 -5
- package/dist/session/composer/use-instant-session-send.js +2 -2
- package/dist/session/header/session-embed-menu-item.d.ts +12 -0
- package/dist/session/header/session-embed-menu-item.js +30 -0
- package/dist/{workspace/sidebar/modal/session-embed-section.d.ts → session/header/session-embed-snippet.d.ts} +2 -11
- package/dist/session/header/session-embed-snippet.js +21 -0
- package/dist/session/header/session-site-header.js +9 -2
- package/dist/session/models/ask-owner-for-credits-button.d.ts +7 -1
- package/dist/session/models/ask-owner-for-credits-button.js +3 -2
- package/dist/session/thread/session-chat.js +18 -7
- package/dist/session/voice/composer-call.d.ts +31 -0
- package/dist/session/voice/composer-call.js +46 -0
- package/dist/session/voice/voice-call-card.js +2 -0
- package/dist/session/voice/voice-call-store.d.ts +8 -0
- package/dist/session/voice/voice-call-store.js +5 -0
- package/dist/session/voice/voice-call.d.ts +2 -2
- package/dist/session/voice/voice-call.js +6 -6
- package/dist/test-utils/intl.d.ts +16 -6
- package/dist/workspace/home/existing-repo-setup-prompt.js +2 -3
- package/dist/workspace/instant-session-shell.js +11 -1
- package/dist/workspace/layout/project-home.js +24 -2
- package/dist/workspace/layout/use-project-home-call.d.ts +24 -0
- package/dist/workspace/layout/use-project-home-call.js +56 -0
- package/dist/workspace/new/workspace-name.d.ts +13 -0
- package/dist/workspace/new/workspace-name.js +20 -0
- package/dist/workspace/sidebar/footer/project-balance-warning.js +9 -6
- package/dist/workspace/sidebar/footer/sidebar-alert.d.ts +1 -1
- package/dist/workspace/sidebar/modal/share-session-modal.js +2 -3
- package/package.json +7 -7
- package/dist/workspace/sidebar/modal/session-embed-section.js +0 -71
|
@@ -4,6 +4,7 @@ export type { DriveUpload };
|
|
|
4
4
|
* Every upload of the open project, one row per file, docked bottom-right of
|
|
5
5
|
* the window. It lives in the project shell, not in a folder view, so a batch
|
|
6
6
|
* keeps reporting when the user leaves the folder or Drive. The header counts
|
|
7
|
-
* files and fills by bytes; a failed row keeps its reason and a Retry.
|
|
7
|
+
* files and fills by bytes; a failed row keeps its reason and a Retry. Rows
|
|
8
|
+
* read top down: going up now, waiting, failed, then finished at the bottom.
|
|
8
9
|
*/
|
|
9
10
|
export declare function DriveUploadTray(): import("react").JSX.Element | null;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Button } from '../../../primitives/button.js';
|
|
4
4
|
import Hint from '../../../primitives/hint.js';
|
|
5
|
+
import Loading from '../../../primitives/loading.js';
|
|
5
6
|
import { SolidCheckIcon } from '../../../internal/icons/solid-check-icon.js';
|
|
6
7
|
import { useTranslations } from '../../../i18n/index.js';
|
|
7
8
|
import { cn } from '../../../lib/utils.js';
|
|
@@ -9,7 +10,7 @@ import { formatFileSize } from '../../../_vendor/kortix-shared.js';
|
|
|
9
10
|
import { CaretDownIcon, WarningCircleIcon, XIcon } from '@phosphor-icons/react';
|
|
10
11
|
import { useEffect, useState } from 'react';
|
|
11
12
|
import { useDriveUploads } from '../store/upload-store.js';
|
|
12
|
-
import { uploadedFraction } from '../upload-batch.js';
|
|
13
|
+
import { trayOrder, uploadedFraction } from '../upload-batch.js';
|
|
13
14
|
import { getFileIcon } from './file-icon.js';
|
|
14
15
|
/**
|
|
15
16
|
* A gauge: a round-capped arc for the share done, a clear gap at each end,
|
|
@@ -31,7 +32,8 @@ function UploadGauge({ value, className }) {
|
|
|
31
32
|
* Every upload of the open project, one row per file, docked bottom-right of
|
|
32
33
|
* the window. It lives in the project shell, not in a folder view, so a batch
|
|
33
34
|
* keeps reporting when the user leaves the folder or Drive. The header counts
|
|
34
|
-
* files and fills by bytes; a failed row keeps its reason and a Retry.
|
|
35
|
+
* files and fills by bytes; a failed row keeps its reason and a Retry. Rows
|
|
36
|
+
* read top down: going up now, waiting, failed, then finished at the bottom.
|
|
35
37
|
*/
|
|
36
38
|
export function DriveUploadTray() {
|
|
37
39
|
const t = useTranslations('drives');
|
|
@@ -57,7 +59,7 @@ export function DriveUploadTray() {
|
|
|
57
59
|
: failed > 0
|
|
58
60
|
? t('uploadsFailedCount', { count: failed })
|
|
59
61
|
: t('uploadsComplete', { count: done });
|
|
60
|
-
return (_jsxs("section", { "aria-label": title, className: "bg-popover border-border animate-in fade-in-0 slide-in-from-bottom-2 fixed right-4 bottom-4 z-50 w-80 max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border shadow-lg duration-(--duration-moderate) motion-reduce:animate-none", children: [_jsxs("div", { className: "flex h-10 items-center gap-2 pr-1.5 pl-3", children: [active > 0 ? (_jsx(UploadGauge, { value: fraction, className: "size-5" })) : failed > 0 ? (_jsx(WarningCircleIcon, { className: "text-kortix-red size-5 shrink-0" })) : (_jsx(SolidCheckIcon, { className: "text-kortix-green size-5" })), _jsx("p", { "aria-live": "polite", className: "min-w-0 flex-1 truncate text-sm font-medium tabular-nums", children: title }), active > 0 ? (_jsxs("span", { className: "text-muted-foreground shrink-0 text-xs tabular-nums", children: [Math.min(99, Math.round(fraction * 100)), "%"] })) : null, _jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", "aria-label": t('uploadsToggle'), "aria-expanded": !collapsed, onClick: () => setCollapsed((c) => !c), className: "text-muted-foreground hover:text-foreground", children: _jsx(CaretDownIcon, { className: cn('size-3.5 transition-transform duration-(--duration-moderate) motion-reduce:transition-none', collapsed && 'rotate-180') }) }), active === 0 ? (_jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", "aria-label": t('uploadsDismiss'), onClick: clear, className: "text-muted-foreground hover:text-foreground", children: _jsx(XIcon, { className: "size-3.5" }) })) : null] }), !collapsed ? (_jsx("ul", { className: "border-border/60 max-h-64 overflow-y-auto border-t py-1", children: uploads.map((u) => (_jsxs("li", { className: "flex min-h-9 items-center gap-2.5 px-3 py-1.5", children: [getFileIcon(u.file.name, { className: 'text-muted-foreground size-4 shrink-0' }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [_jsx("span", { className: cn('truncate text-sm', u.status === 'done' ? 'text-foreground' : 'text-muted-foreground'), title: u.file.name, children: u.file.name }), u.status === 'error' && u.error ? (_jsx("span", { className: "text-foreground text-xs text-pretty", children: u.error })) : null] }), _jsx(UploadStatus, { upload: u, onRetry: () => u.retry?.() })] }, u.id))) })) : null] }));
|
|
62
|
+
return (_jsxs("section", { "aria-label": title, className: "bg-popover border-border animate-in fade-in-0 slide-in-from-bottom-2 fixed right-4 bottom-4 z-50 w-80 max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border shadow-lg duration-(--duration-moderate) motion-reduce:animate-none", children: [_jsxs("div", { className: "flex h-10 items-center gap-2 pr-1.5 pl-3", children: [active > 0 ? (_jsx(UploadGauge, { value: fraction, className: "size-5" })) : failed > 0 ? (_jsx(WarningCircleIcon, { className: "text-kortix-red size-5 shrink-0" })) : (_jsx(SolidCheckIcon, { className: "text-kortix-green size-5" })), _jsx("p", { "aria-live": "polite", className: "min-w-0 flex-1 truncate text-sm font-medium tabular-nums", children: title }), active > 0 ? (_jsxs("span", { className: "text-muted-foreground shrink-0 text-xs tabular-nums", children: [Math.min(99, Math.round(fraction * 100)), "%"] })) : null, _jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", "aria-label": t('uploadsToggle'), "aria-expanded": !collapsed, onClick: () => setCollapsed((c) => !c), className: "text-muted-foreground hover:text-foreground", children: _jsx(CaretDownIcon, { className: cn('size-3.5 transition-transform duration-(--duration-moderate) motion-reduce:transition-none', collapsed && 'rotate-180') }) }), active === 0 ? (_jsx(Button, { type: "button", variant: "ghost", size: "icon-xs", "aria-label": t('uploadsDismiss'), onClick: clear, className: "text-muted-foreground hover:text-foreground", children: _jsx(XIcon, { className: "size-3.5" }) })) : null] }), !collapsed ? (_jsx("ul", { className: "border-border/60 max-h-64 overflow-y-auto border-t py-1", children: trayOrder(uploads).map((u) => (_jsxs("li", { className: "flex min-h-9 items-center gap-2.5 px-3 py-1.5", children: [getFileIcon(u.file.name, { className: 'text-muted-foreground size-4 shrink-0' }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [_jsx("span", { className: cn('truncate text-sm', u.status === 'done' ? 'text-foreground' : 'text-muted-foreground'), title: u.file.name, children: u.file.name }), u.status === 'error' && u.error ? (_jsx("span", { className: "text-foreground text-xs text-pretty", children: u.error })) : null] }), _jsx(UploadStatus, { upload: u, onRetry: () => u.retry?.() })] }, u.id))) })) : null] }));
|
|
61
63
|
}
|
|
62
64
|
function UploadStatus({ upload, onRetry }) {
|
|
63
65
|
const t = useTranslations('drives');
|
|
@@ -65,7 +67,10 @@ function UploadStatus({ upload, onRetry }) {
|
|
|
65
67
|
case 'queued':
|
|
66
68
|
return (_jsx("span", { className: "text-muted-foreground shrink-0 text-xs tabular-nums", children: formatFileSize(upload.file.size) }));
|
|
67
69
|
case 'uploading':
|
|
68
|
-
|
|
70
|
+
// A row spins while it is in flight: a small file sends its bytes in one
|
|
71
|
+
// event and then waits on the server, so a byte gauge sat empty or full.
|
|
72
|
+
// The header gauge carries the byte share of the whole run.
|
|
73
|
+
return (_jsxs("span", { className: "flex shrink-0", children: [_jsx(Loading, { variant: "spokes", className: "size-4 shrink-0" }), _jsx("span", { className: "sr-only", children: t('uploadingFile', { name: upload.file.name }) })] }));
|
|
69
74
|
case 'done':
|
|
70
75
|
return _jsx(SolidCheckIcon, { className: "text-kortix-green" });
|
|
71
76
|
case 'error':
|
|
@@ -32,3 +32,19 @@ export declare function hasFolder(entries: readonly DroppedEntry[]): boolean;
|
|
|
32
32
|
export declare function readDroppedTree(entries: readonly DroppedEntry[]): Promise<TreeFile[]>;
|
|
33
33
|
/** Folders to create for `items`, grouped by depth: each level only after its parents. */
|
|
34
34
|
export declare function treeLevels(items: readonly TreeFile[]): string[][];
|
|
35
|
+
/** `ensure(rel)` makes `rel` and its parents; `forget(rel)` lets a failed one be tried again. */
|
|
36
|
+
export interface FolderMaker {
|
|
37
|
+
(rel: string): Promise<void>;
|
|
38
|
+
forget: (rel: string) => void;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Make the folders of an uploading tree on demand: `ensure(rel)` resolves once
|
|
42
|
+
* `rel` and every parent above it exist. Each folder is asked for once, so a
|
|
43
|
+
* file waits only on its own folder and the upload starts with the first one
|
|
44
|
+
* made, not after the whole tree. A folder already there (409) counts as
|
|
45
|
+
* made. A failure is kept for the batch, so the other files in that folder
|
|
46
|
+
* fail at once instead of asking a busy server again; `forget` (a Retry)
|
|
47
|
+
* clears it and the failed parents above it. `''` is the folder the tree
|
|
48
|
+
* lands in, which already exists.
|
|
49
|
+
*/
|
|
50
|
+
export declare function folderMaker(mkdir: (rel: string) => Promise<unknown>): FolderMaker;
|
|
@@ -61,3 +61,42 @@ export function treeLevels(items) {
|
|
|
61
61
|
}
|
|
62
62
|
return levels.map((level) => [...level]);
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Make the folders of an uploading tree on demand: `ensure(rel)` resolves once
|
|
66
|
+
* `rel` and every parent above it exist. Each folder is asked for once, so a
|
|
67
|
+
* file waits only on its own folder and the upload starts with the first one
|
|
68
|
+
* made, not after the whole tree. A folder already there (409) counts as
|
|
69
|
+
* made. A failure is kept for the batch, so the other files in that folder
|
|
70
|
+
* fail at once instead of asking a busy server again; `forget` (a Retry)
|
|
71
|
+
* clears it and the failed parents above it. `''` is the folder the tree
|
|
72
|
+
* lands in, which already exists.
|
|
73
|
+
*/
|
|
74
|
+
export function folderMaker(mkdir) {
|
|
75
|
+
const made = new Map();
|
|
76
|
+
const failed = new Set();
|
|
77
|
+
const parentOf = (rel) => (rel.includes('/') ? rel.slice(0, rel.lastIndexOf('/')) : '');
|
|
78
|
+
const ensure = ((rel) => {
|
|
79
|
+
if (!rel)
|
|
80
|
+
return Promise.resolve();
|
|
81
|
+
const known = made.get(rel);
|
|
82
|
+
if (known)
|
|
83
|
+
return known;
|
|
84
|
+
const run = ensure(parentOf(rel))
|
|
85
|
+
.then(() => mkdir(rel))
|
|
86
|
+
.then(() => undefined, (err) => {
|
|
87
|
+
if (err?.status === 409)
|
|
88
|
+
return;
|
|
89
|
+
failed.add(rel);
|
|
90
|
+
throw err;
|
|
91
|
+
});
|
|
92
|
+
made.set(rel, run);
|
|
93
|
+
return run;
|
|
94
|
+
});
|
|
95
|
+
ensure.forget = (rel) => {
|
|
96
|
+
for (let at = rel; at; at = parentOf(at)) {
|
|
97
|
+
if (failed.delete(at))
|
|
98
|
+
made.delete(at);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
return ensure;
|
|
102
|
+
}
|
|
@@ -54,6 +54,20 @@ export declare function uploadedFraction(uploads: readonly {
|
|
|
54
54
|
status: string;
|
|
55
55
|
sent?: number;
|
|
56
56
|
}[]): number;
|
|
57
|
+
declare const TRAY_RANK: {
|
|
58
|
+
readonly uploading: 0;
|
|
59
|
+
readonly error: 1;
|
|
60
|
+
readonly queued: 2;
|
|
61
|
+
readonly done: 3;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Tray rows in reading order: files going up now, then failures with their
|
|
65
|
+
* Retry (in view, not under a long queue), then files waiting, then finished
|
|
66
|
+
* files. Stable inside each group, so a second batch queues under the first.
|
|
67
|
+
*/
|
|
68
|
+
export declare function trayOrder<T extends {
|
|
69
|
+
status: keyof typeof TRAY_RANK;
|
|
70
|
+
}>(uploads: readonly T[]): T[];
|
|
57
71
|
/** Files sent at once. Enough to fill the pipe, few enough not to starve the listing. */
|
|
58
72
|
export declare const UPLOAD_CONCURRENCY = 4;
|
|
59
73
|
/**
|
|
@@ -92,3 +106,4 @@ export declare function rowDragIntent(types: readonly string[], options: {
|
|
|
92
106
|
/** The explorer's internal drag MIME (`DRAG_MIME`). */
|
|
93
107
|
moveMime: string;
|
|
94
108
|
}): RowDragIntent;
|
|
109
|
+
export {};
|
|
@@ -61,6 +61,18 @@ export function uploadedFraction(uploads) {
|
|
|
61
61
|
const sent = live.reduce((n, u) => n + (u.status === 'done' ? u.file.size : Math.min(u.sent ?? 0, u.file.size)), 0);
|
|
62
62
|
return sent / total;
|
|
63
63
|
}
|
|
64
|
+
const TRAY_RANK = { uploading: 0, error: 1, queued: 2, done: 3 };
|
|
65
|
+
/**
|
|
66
|
+
* Tray rows in reading order: files going up now, then failures with their
|
|
67
|
+
* Retry (in view, not under a long queue), then files waiting, then finished
|
|
68
|
+
* files. Stable inside each group, so a second batch queues under the first.
|
|
69
|
+
*/
|
|
70
|
+
export function trayOrder(uploads) {
|
|
71
|
+
return uploads
|
|
72
|
+
.map((u, i) => ({ u, i }))
|
|
73
|
+
.sort((a, b) => TRAY_RANK[a.u.status] - TRAY_RANK[b.u.status] || a.i - b.i)
|
|
74
|
+
.map(({ u }) => u);
|
|
75
|
+
}
|
|
64
76
|
/** Files sent at once. Enough to fill the pipe, few enough not to starve the listing. */
|
|
65
77
|
export const UPLOAD_CONCURRENCY = 4;
|
|
66
78
|
/**
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -911,6 +911,14 @@ declare const catalog: {
|
|
|
911
911
|
historyDescription: string;
|
|
912
912
|
openLedger: string;
|
|
913
913
|
unit: string;
|
|
914
|
+
dailySpend: string;
|
|
915
|
+
heatLess: string;
|
|
916
|
+
heatMore: string;
|
|
917
|
+
busiestDay: string;
|
|
918
|
+
noSpendInRange: string;
|
|
919
|
+
idleWorkspaces: string;
|
|
920
|
+
showIdle: string;
|
|
921
|
+
hideIdle: string;
|
|
914
922
|
};
|
|
915
923
|
tokens: {
|
|
916
924
|
keyRevoked: string;
|
|
@@ -6387,11 +6395,6 @@ declare const catalog: {
|
|
|
6387
6395
|
recentThreads: string;
|
|
6388
6396
|
searchChannels: string;
|
|
6389
6397
|
};
|
|
6390
|
-
repositoryAccess: {
|
|
6391
|
-
label: string;
|
|
6392
|
-
enabled: string;
|
|
6393
|
-
disabled: string;
|
|
6394
|
-
};
|
|
6395
6398
|
customProvider: {
|
|
6396
6399
|
intro: string;
|
|
6397
6400
|
add: string;
|
|
@@ -6810,6 +6813,9 @@ declare const catalog: {
|
|
|
6810
6813
|
addMcpUrlNamed: string;
|
|
6811
6814
|
addMcpUrlInvalid: string;
|
|
6812
6815
|
addMcpConnect: string;
|
|
6816
|
+
addMcpStageConnector: string;
|
|
6817
|
+
addMcpStageAccount: string;
|
|
6818
|
+
addMcpStageSignIn: string;
|
|
6813
6819
|
addMcpConnected: string;
|
|
6814
6820
|
addMcpSignInFailed: string;
|
|
6815
6821
|
addMcpFailed: string;
|
|
@@ -7756,6 +7762,10 @@ declare const catalog: {
|
|
|
7756
7762
|
treeYou: string;
|
|
7757
7763
|
treeExpand: string;
|
|
7758
7764
|
treeCollapse: string;
|
|
7765
|
+
emptyWorkspaces: string;
|
|
7766
|
+
storageMoreWorkspaces: string;
|
|
7767
|
+
storageWorkspaceLimit: string;
|
|
7768
|
+
storageShowFewer: string;
|
|
7759
7769
|
};
|
|
7760
7770
|
genui: {
|
|
7761
7771
|
showData: string;
|
|
@@ -9363,6 +9373,7 @@ declare const catalog: {
|
|
|
9363
9373
|
call: string;
|
|
9364
9374
|
calling: string;
|
|
9365
9375
|
start: string;
|
|
9376
|
+
inCall: string;
|
|
9366
9377
|
end: string;
|
|
9367
9378
|
connecting: string;
|
|
9368
9379
|
listening: string;
|
|
@@ -9431,7 +9442,6 @@ declare const catalog: {
|
|
|
9431
9442
|
agentMounts: {
|
|
9432
9443
|
lead: string;
|
|
9433
9444
|
mount: string;
|
|
9434
|
-
repository: string;
|
|
9435
9445
|
viaAgent: string;
|
|
9436
9446
|
viaProject: string;
|
|
9437
9447
|
from: string;
|
package/dist/i18n/en.js
CHANGED
|
@@ -838,7 +838,7 @@ const catalog = {
|
|
|
838
838
|
},
|
|
839
839
|
"voice_call": {
|
|
840
840
|
"name": "Voice calls",
|
|
841
|
-
"description": "Call an agent from its page (Customize → Agents) and talk it through.
|
|
841
|
+
"description": "Call an agent from an empty message box, where the send button becomes a call button, or from its page (Customize → Agents), and talk it through. In a session, the call goes to that session's agent; on the workspace home, it starts a new session. The agent hears you, answers in a voice and sees a screen you share, and the conversation is the session's chat."
|
|
842
842
|
},
|
|
843
843
|
"shared_drives": {
|
|
844
844
|
"name": "Shared drives",
|
|
@@ -911,7 +911,15 @@ const catalog = {
|
|
|
911
911
|
"history": "History",
|
|
912
912
|
"historyDescription": "What every session cost, and every credit added or spent.",
|
|
913
913
|
"openLedger": "Open ledger",
|
|
914
|
-
"unit": "{count, plural, one {credit} other {credits}}"
|
|
914
|
+
"unit": "{count, plural, one {credit} other {credits}}",
|
|
915
|
+
"dailySpend": "Daily spend",
|
|
916
|
+
"heatLess": "Less",
|
|
917
|
+
"heatMore": "More",
|
|
918
|
+
"busiestDay": "{name}: {amount} on {day}, the busiest day",
|
|
919
|
+
"noSpendInRange": "{name}: no spend in this range",
|
|
920
|
+
"idleWorkspaces": "{count, plural, one {# workspace} other {# workspaces}} with no spend in this range",
|
|
921
|
+
"showIdle": "Show",
|
|
922
|
+
"hideIdle": "Hide"
|
|
915
923
|
},
|
|
916
924
|
"tokens": {
|
|
917
925
|
"keyRevoked": "API key revoked",
|
|
@@ -1577,15 +1585,15 @@ const catalog = {
|
|
|
1577
1585
|
"title": "Threads",
|
|
1578
1586
|
"newThread": "New Thread",
|
|
1579
1587
|
"sendMessage": "Send message",
|
|
1580
|
-
"queueList": "
|
|
1588
|
+
"queueList": "Waiting messages",
|
|
1581
1589
|
"quoteCount": "{count, plural, one {# Quote} other {# Quotes}}",
|
|
1582
1590
|
"expandQuotes": "Expand quotes",
|
|
1583
1591
|
"collapseQuotes": "Collapse quotes",
|
|
1584
1592
|
"stopUnconfirmed": "Could not confirm Stop. The agent may still be running. Try Stop again.",
|
|
1585
1593
|
"stoppedBy": "Stopped by {name}",
|
|
1586
|
-
"queued": "
|
|
1594
|
+
"queued": "Waiting",
|
|
1587
1595
|
"queuedFiles": "{count, plural, one {# file} other {# files}}",
|
|
1588
|
-
"queuedCount": "{count}
|
|
1596
|
+
"queuedCount": "{count} waiting",
|
|
1589
1597
|
"editingQueued": "Editing",
|
|
1590
1598
|
"queuedActions": "Message actions",
|
|
1591
1599
|
"steerNextStep": "Read at next step",
|
|
@@ -1594,11 +1602,11 @@ const catalog = {
|
|
|
1594
1602
|
"steerFallbackUnsupported": "Waits for this turn. This session cannot take messages mid-turn.",
|
|
1595
1603
|
"steerFallbackNotPrompter": "Waits for this turn. Another member started it.",
|
|
1596
1604
|
"steerFallbackTurnEnded": "Runs as its own turn. The turn ended first.",
|
|
1597
|
-
"stopAndSend": "
|
|
1598
|
-
"stopAndSendFailed": "Could not
|
|
1605
|
+
"stopAndSend": "Send now",
|
|
1606
|
+
"stopAndSendFailed": "Could not send that message now",
|
|
1599
1607
|
"submitEdit": "Submit",
|
|
1600
|
-
"collapseQueue": "Collapse
|
|
1601
|
-
"expandQueue": "Expand
|
|
1608
|
+
"collapseQueue": "Collapse waiting messages",
|
|
1609
|
+
"expandQueue": "Expand waiting messages",
|
|
1602
1610
|
"placeholder": "Type your message...",
|
|
1603
1611
|
"messageInput": "Message input",
|
|
1604
1612
|
"attachFiles": "Attach files",
|
|
@@ -3792,7 +3800,7 @@ const catalog = {
|
|
|
3792
3800
|
"text5e3de76869f3": "Waking up the sandbox…",
|
|
3793
3801
|
"text5e4efd91b927": "Everything resumed",
|
|
3794
3802
|
"text5ea44c3961f1": "lines",
|
|
3795
|
-
"text5ecbbab0d8d8": "Your wallet is empty, so sessions can’t start.
|
|
3803
|
+
"text5ecbbab0d8d8": "Your wallet is empty, so sessions can’t start. Add credits to keep compute and the latest AI models running — {value0} unaffected.",
|
|
3796
3804
|
"text5ecf97e61ad9": "Copy this code. Then open the auth page and enter it to connect ChatGPT.",
|
|
3797
3805
|
"text5ed9bd98de1b": "Could not update the workspace default",
|
|
3798
3806
|
"text5eeb1e6ce9d5": "⌘P",
|
|
@@ -5125,7 +5133,7 @@ const catalog = {
|
|
|
5125
5133
|
"textcdbf6975e8a3": "Goal",
|
|
5126
5134
|
"textcdca8801db76": "per week",
|
|
5127
5135
|
"textcdef3f586a58": "text-kortix-yellow",
|
|
5128
|
-
"textce0c20c05842": "Your last payment didn’t go through. Update your payment method
|
|
5136
|
+
"textce0c20c05842": "Your last payment didn’t go through. Update your payment method so your plan keeps running.",
|
|
5129
5137
|
"textce0faee27592": "billing payment credit card subscription manage wallet tier plan limits overview spend",
|
|
5130
5138
|
"textce18e358bf01": "Try a different term.",
|
|
5131
5139
|
"textce1e609b7bf5": "Sandbox ports only",
|
|
@@ -6089,7 +6097,7 @@ const catalog = {
|
|
|
6089
6097
|
"texta37dd5ef6ef2": "Customize Sidebar",
|
|
6090
6098
|
"text8c712bd7c1ec": "sidebar customize reorder hide show navigation rows",
|
|
6091
6099
|
"text3fa17bba73e1": "This workspace has no plan yet. Pick a monthly amount of credits to run sessions. Every member shares one pool.",
|
|
6092
|
-
"text6821e42be2c1": "Your wallet is empty, so sessions can’t run.
|
|
6100
|
+
"text6821e42be2c1": "Your wallet is empty, so sessions can’t run. Add credits to keep compute and the latest AI models going — your plan is unaffected.",
|
|
6093
6101
|
"text1554fd387f25": "Free is $0: 500 credits a month on your first workspace and every feature, with your own key or ChatGPT subscription for models. Kortix-managed models need a paid plan. Paid plans are credits: pick a monthly amount, members are free and unlimited, and one pool covers the whole workspace. Self-hosting the software costs nothing; you pay your own model bill and your own compute bill instead.",
|
|
6094
6102
|
"text5dffd4db88c5": "Your plan, credits, and billing for this workspace.",
|
|
6095
6103
|
"textad828837ddd8": "members member workspace access collaborators people teammates roster who can see permissions grant share",
|
|
@@ -6388,11 +6396,6 @@ const catalog = {
|
|
|
6388
6396
|
"recentThreads": "Recent threads",
|
|
6389
6397
|
"searchChannels": "Search spaces, threads, commands..."
|
|
6390
6398
|
},
|
|
6391
|
-
"repositoryAccess": {
|
|
6392
|
-
"label": "Workspace repository access",
|
|
6393
|
-
"enabled": "New sessions receive the workspace repository. Git permissions still apply. Existing sessions keep their access setting.",
|
|
6394
|
-
"disabled": "New sessions run without the workspace repository. They can still create files and use granted tools. Existing sessions keep their access setting."
|
|
6395
|
-
},
|
|
6396
6399
|
"customProvider": {
|
|
6397
6400
|
"intro": "Endpoints the catalogue does not carry.",
|
|
6398
6401
|
"add": "Add custom provider",
|
|
@@ -6811,6 +6814,9 @@ const catalog = {
|
|
|
6811
6814
|
"addMcpUrlNamed": "Adds the connector {name}.",
|
|
6812
6815
|
"addMcpUrlInvalid": "Enter a URL that starts with https://",
|
|
6813
6816
|
"addMcpConnect": "Connect",
|
|
6817
|
+
"addMcpStageConnector": "Reaching the server and loading its tools…",
|
|
6818
|
+
"addMcpStageAccount": "Preparing the account…",
|
|
6819
|
+
"addMcpStageSignIn": "Starting the sign-in…",
|
|
6814
6820
|
"addMcpConnected": "{name} is connected. Agents can use its tools.",
|
|
6815
6821
|
"addMcpSignInFailed": "Could not start the {name} sign-in: {reason}",
|
|
6816
6822
|
"addMcpFailed": "Could not add the MCP server",
|
|
@@ -7756,7 +7762,11 @@ const catalog = {
|
|
|
7756
7762
|
"folderTree": "Folders",
|
|
7757
7763
|
"treeYou": "{name} (You)",
|
|
7758
7764
|
"treeExpand": "Open {name}",
|
|
7759
|
-
"treeCollapse": "Close {name}"
|
|
7765
|
+
"treeCollapse": "Close {name}",
|
|
7766
|
+
"emptyWorkspaces": "{count, plural, one {# workspace holds} other {# workspaces hold}} no files",
|
|
7767
|
+
"storageMoreWorkspaces": "{count, plural, one {# more workspace} other {# more workspaces}}",
|
|
7768
|
+
"storageWorkspaceLimit": "Each workspace holds up to {limit}",
|
|
7769
|
+
"storageShowFewer": "Show fewer"
|
|
7760
7770
|
},
|
|
7761
7771
|
"genui": {
|
|
7762
7772
|
"showData": "Show data",
|
|
@@ -9364,6 +9374,7 @@ const catalog = {
|
|
|
9364
9374
|
"call": "Call",
|
|
9365
9375
|
"calling": "Calling…",
|
|
9366
9376
|
"start": "Start a voice call",
|
|
9377
|
+
"inCall": "You are on a call",
|
|
9367
9378
|
"end": "End call",
|
|
9368
9379
|
"connecting": "Connecting…",
|
|
9369
9380
|
"listening": "Listening",
|
|
@@ -9432,7 +9443,6 @@ const catalog = {
|
|
|
9432
9443
|
"agentMounts": {
|
|
9433
9444
|
"lead": "Folders from Files this agent's sessions mount. A change applies at once and reaches every new session.",
|
|
9434
9445
|
"mount": "Mount folder",
|
|
9435
|
-
"repository": "Workspace repository",
|
|
9436
9446
|
"viaAgent": "shared with this agent",
|
|
9437
9447
|
"viaProject": "shared with everyone in this workspace",
|
|
9438
9448
|
"from": "{path} · {who}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
import { type CostSummary, type GetCostSummaryOptions, type ListCostByProjectOptions, type ProjectCostPage, type ProjectCostSort } from '@kortix/sdk';
|
|
2
|
+
import { type CostSeriesPoint, type CostSummary, type GetCostSummaryOptions, type ListCostByProjectOptions, type ProjectCostPage, type ProjectCostSort } from '@kortix/sdk';
|
|
3
3
|
/** Rows per page for the account-wide project cost rollup (`GET
|
|
4
4
|
* /usage/cost-by-project`) — mirrors `SESSION_COST_PAGE_SIZE` in
|
|
5
5
|
* `use-session-costs.ts`. */
|
|
@@ -71,3 +71,21 @@ export declare function useCostByProject(input: {
|
|
|
71
71
|
sort?: ProjectCostSort;
|
|
72
72
|
offset: number;
|
|
73
73
|
}): import("@tanstack/react-query").UseQueryResult<ProjectCostPage, Error>;
|
|
74
|
+
/**
|
|
75
|
+
* One daily cost series per workspace, for the workspace-by-day heatmap on the
|
|
76
|
+
* top level of the explorer. Each entry is the same `cost-summary` query the
|
|
77
|
+
* drill-down issues for that workspace (`useCostSummary({ projectId })`), with
|
|
78
|
+
* the same key, so opening a workspace after seeing its heatmap row reads from
|
|
79
|
+
* cache instead of fetching again.
|
|
80
|
+
*
|
|
81
|
+
* Bounded by the caller: it passes the workspaces on the visible page (at most
|
|
82
|
+
* `COST_PAGE_SIZE`). A workspace whose series has not arrived maps to
|
|
83
|
+
* `undefined`, which the heatmap draws as a loading strip, never as zeros. A
|
|
84
|
+
* workspace whose request failed maps to `null`: no series to draw, and no
|
|
85
|
+
* loading strip that would never end.
|
|
86
|
+
*/
|
|
87
|
+
export declare function useWorkspaceDailySeries(input: {
|
|
88
|
+
projectIds: readonly string[];
|
|
89
|
+
from?: string;
|
|
90
|
+
to?: string;
|
|
91
|
+
}): Record<string, CostSeriesPoint[] | null | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCostSummary, listCostByProject, } from '@kortix/sdk';
|
|
2
|
-
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import { useQueries, useQuery } from '@tanstack/react-query';
|
|
3
3
|
import { useBillingAccountId } from '../stores/billing-account-context.js';
|
|
4
4
|
/** Rows per page for the account-wide project cost rollup (`GET
|
|
5
5
|
* /usage/cost-by-project`) — mirrors `SESSION_COST_PAGE_SIZE` in
|
|
@@ -88,3 +88,29 @@ export function useCostByProject(input) {
|
|
|
88
88
|
offset: input.offset,
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* One daily cost series per workspace, for the workspace-by-day heatmap on the
|
|
93
|
+
* top level of the explorer. Each entry is the same `cost-summary` query the
|
|
94
|
+
* drill-down issues for that workspace (`useCostSummary({ projectId })`), with
|
|
95
|
+
* the same key, so opening a workspace after seeing its heatmap row reads from
|
|
96
|
+
* cache instead of fetching again.
|
|
97
|
+
*
|
|
98
|
+
* Bounded by the caller: it passes the workspaces on the visible page (at most
|
|
99
|
+
* `COST_PAGE_SIZE`). A workspace whose series has not arrived maps to
|
|
100
|
+
* `undefined`, which the heatmap draws as a loading strip, never as zeros. A
|
|
101
|
+
* workspace whose request failed maps to `null`: no series to draw, and no
|
|
102
|
+
* loading strip that would never end.
|
|
103
|
+
*/
|
|
104
|
+
export function useWorkspaceDailySeries(input) {
|
|
105
|
+
const accountId = useBillingAccountId();
|
|
106
|
+
return useQueries({
|
|
107
|
+
queries: input.projectIds.map((projectId) => buildCostSummaryQuery({ accountId, projectId, sessionId: null, from: input.from, to: input.to })),
|
|
108
|
+
combine: (results) => {
|
|
109
|
+
const byProject = {};
|
|
110
|
+
results.forEach((result, index) => {
|
|
111
|
+
byProject[input.projectIds[index]] = result.isError ? null : result.data?.series;
|
|
112
|
+
});
|
|
113
|
+
return byProject;
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
@@ -54,12 +54,11 @@ export declare function billingStateNeedsTopUp(state: BillingState | null): bool
|
|
|
54
54
|
/** The server's run floor in USD (`MINIMUM_CREDIT_FOR_RUN`, billing/services/tier-facts.ts). */
|
|
55
55
|
export declare const RUN_FLOOR_USD = 0.01;
|
|
56
56
|
/**
|
|
57
|
-
* Whether the billing modal
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* "Continue on Free" there (review finding 10).
|
|
57
|
+
* Whether the billing modal opens on the compact out-of-credits view. True
|
|
58
|
+
* when the account cannot run: out of credits, a failed payment, or a Free
|
|
59
|
+
* account below the run floor. The last case is a further workspace that gets
|
|
60
|
+
* no free credits, or a Free account that spent them: the modal offers the
|
|
61
|
+
* subscription there, never only "Continue on Free" (review finding 10).
|
|
63
62
|
*/
|
|
64
63
|
export declare function billingModalNeedsTopUp(accountState: AccountStateLike | null | undefined, state: BillingState | null): boolean;
|
|
65
64
|
/**
|
|
@@ -62,19 +62,18 @@ export function billingStateNeedsTopUp(state) {
|
|
|
62
62
|
/** The server's run floor in USD (`MINIMUM_CREDIT_FOR_RUN`, billing/services/tier-facts.ts). */
|
|
63
63
|
export const RUN_FLOOR_USD = 0.01;
|
|
64
64
|
/**
|
|
65
|
-
* Whether the billing modal
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* "Continue on Free" there (review finding 10).
|
|
65
|
+
* Whether the billing modal opens on the compact out-of-credits view. True
|
|
66
|
+
* when the account cannot run: out of credits, a failed payment, or a Free
|
|
67
|
+
* account below the run floor. The last case is a further workspace that gets
|
|
68
|
+
* no free credits, or a Free account that spent them: the modal offers the
|
|
69
|
+
* subscription there, never only "Continue on Free" (review finding 10).
|
|
71
70
|
*/
|
|
72
71
|
export function billingModalNeedsTopUp(accountState, state) {
|
|
73
72
|
if (billingStateNeedsTopUp(state))
|
|
74
73
|
return true;
|
|
75
|
-
if (state !== 'no_subscription'
|
|
74
|
+
if (state !== 'no_subscription')
|
|
76
75
|
return false;
|
|
77
|
-
const balance = accountState
|
|
76
|
+
const balance = accountState?.credits?.total;
|
|
78
77
|
return typeof balance === 'number' && balance < RUN_FLOOR_USD;
|
|
79
78
|
}
|
|
80
79
|
/**
|
|
@@ -137,8 +136,8 @@ export function walletSeverity(state) {
|
|
|
137
136
|
*/
|
|
138
137
|
export function walletAlertCopy(severity, tI18nComplete) {
|
|
139
138
|
return severity === 'blocked'
|
|
140
|
-
? { label: tI18nComplete.raw('textf1c24ec92034'), action: '
|
|
141
|
-
: { label: tI18nComplete.raw('text9757b0277bb1'), action: '
|
|
139
|
+
? { label: tI18nComplete.raw('textf1c24ec92034'), action: 'Add credits' }
|
|
140
|
+
: { label: tI18nComplete.raw('text9757b0277bb1'), action: 'Add credits' };
|
|
142
141
|
}
|
|
143
142
|
/**
|
|
144
143
|
* Copy for the billing modal. Lives here, beside `billingGateCopy`, so no
|
|
@@ -191,7 +190,7 @@ export function billingGateCopy(state, tI18nComplete) {
|
|
|
191
190
|
return {
|
|
192
191
|
title: tI18nComplete.raw('textf1c24ec92034'),
|
|
193
192
|
message: tI18nComplete.raw('text6821e42be2c1'),
|
|
194
|
-
ctaLabel: '
|
|
193
|
+
ctaLabel: 'Add credits',
|
|
195
194
|
dialogReason: 'insufficient_credits',
|
|
196
195
|
};
|
|
197
196
|
case 'payment_failed':
|
|
@@ -4,7 +4,7 @@ export { isEmptyMessageUnresolvedBrowserChunkNoise, isStaleWebpackRuntimeCallNoi
|
|
|
4
4
|
export { isClientRequestTimeoutMessage, isExpectedBillingGateMessage, isGitMirrorUnavailableNoiseMessage, isModelNotServableNoise, isRuntimeNotReadyNoiseMessage, isServerDeadlineNoiseMessage, } from './browser-noise/rules/expected-states.js';
|
|
5
5
|
export { isCaptchaInterceptorNoise, isExtensionRejectedObjectNoise, isExtensionSource, isInjectedAppSource, isInjectedScriptSendMessageNoise, isInpageJsNoErrorMessageNoise, isInpageWalletStreamNoise, isTronLinkProxyNoise, isUserscriptManagerNoise, } from './browser-noise/rules/extensions.js';
|
|
6
6
|
export { isCanvasImageDataOOMNoise, isPaperShaderImageUniformNoise, isPaperShaderNullContextNoise, isPaperShaderWebGLUnsupportedNoise, isSpoofedWebGLGetParameterNoise, } from './browser-noise/rules/graphics.js';
|
|
7
|
-
export { isGoogletagUndefinedNoise, isOneTrustJsonParseNoise, isRedefineInjectedWalletNoise, isRedefineWebdriverNoise, isVercelLiveFeedbackNoise, } from './browser-noise/rules/injected-scripts.js';
|
|
7
|
+
export { isGoogletagUndefinedNoise, isOneTrustJsonParseNoise, isRedefineInjectedWalletNoise, isRedefineWebdriverNoise, isTrackingPixelResponseJsonNoise, isVercelLiveFeedbackNoise, } from './browser-noise/rules/injected-scripts.js';
|
|
8
8
|
export { isKnownBrowserNoiseMessage, isKnownTestNoiseMessage, } from './browser-noise/rules/messages.js';
|
|
9
9
|
export { isConnectionClosedNoise, isFailedToSendMessageNoise, isFramelessNetworkErrorNoise, isSignalTimeoutNoise, } from './browser-noise/rules/network.js';
|
|
10
10
|
export { isIosWebViewInjectedStackOverflowNoise, isOldBrowserDomNullDerefNoise, isFirefoxDeadObjectUnattributableNoise, isOldBrowserSyntaxParseError, isOldWebkitRegexNoiseMessage, isUndefinedVariableThirdPartyNoise, isUnresolvableStackOverflowNoise, } from './browser-noise/rules/old-browsers.js';
|
|
@@ -29,7 +29,7 @@ export { isEmptyMessageUnresolvedBrowserChunkNoise, isStaleWebpackRuntimeCallNoi
|
|
|
29
29
|
export { isClientRequestTimeoutMessage, isExpectedBillingGateMessage, isGitMirrorUnavailableNoiseMessage, isModelNotServableNoise, isRuntimeNotReadyNoiseMessage, isServerDeadlineNoiseMessage, } from './browser-noise/rules/expected-states.js';
|
|
30
30
|
export { isCaptchaInterceptorNoise, isExtensionRejectedObjectNoise, isExtensionSource, isInjectedAppSource, isInjectedScriptSendMessageNoise, isInpageJsNoErrorMessageNoise, isInpageWalletStreamNoise, isTronLinkProxyNoise, isUserscriptManagerNoise, } from './browser-noise/rules/extensions.js';
|
|
31
31
|
export { isCanvasImageDataOOMNoise, isPaperShaderImageUniformNoise, isPaperShaderNullContextNoise, isPaperShaderWebGLUnsupportedNoise, isSpoofedWebGLGetParameterNoise, } from './browser-noise/rules/graphics.js';
|
|
32
|
-
export { isGoogletagUndefinedNoise, isOneTrustJsonParseNoise, isRedefineInjectedWalletNoise, isRedefineWebdriverNoise, isVercelLiveFeedbackNoise, } from './browser-noise/rules/injected-scripts.js';
|
|
32
|
+
export { isGoogletagUndefinedNoise, isOneTrustJsonParseNoise, isRedefineInjectedWalletNoise, isRedefineWebdriverNoise, isTrackingPixelResponseJsonNoise, isVercelLiveFeedbackNoise, } from './browser-noise/rules/injected-scripts.js';
|
|
33
33
|
export { isKnownBrowserNoiseMessage, isKnownTestNoiseMessage, } from './browser-noise/rules/messages.js';
|
|
34
34
|
export { isConnectionClosedNoise, isFailedToSendMessageNoise, isFramelessNetworkErrorNoise, isSignalTimeoutNoise, } from './browser-noise/rules/network.js';
|
|
35
35
|
export { isIosWebViewInjectedStackOverflowNoise, isOldBrowserDomNullDerefNoise, isFirefoxDeadObjectUnattributableNoise, isOldBrowserSyntaxParseError, isOldWebkitRegexNoiseMessage, isUndefinedVariableThirdPartyNoise, isUnresolvableStackOverflowNoise, } from './browser-noise/rules/old-browsers.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
import type { NoiseRule } from '../evidence.js';
|
|
2
|
+
import type { NoiseFrame, NoiseRule } from '../evidence.js';
|
|
3
3
|
/**
|
|
4
4
|
* Whether a Sentry / window.onerror event is the OneTrust cookie-consent SDK
|
|
5
5
|
* JSON-parse noise class: OneTrust's `otSDKStub.js?did=<domainId>` bootstrap
|
|
@@ -77,6 +77,10 @@ export declare function isGoogletagUndefinedNoise(input: {
|
|
|
77
77
|
filename?: unknown;
|
|
78
78
|
} | undefined>;
|
|
79
79
|
}): boolean;
|
|
80
|
+
export declare function isTrackingPixelResponseJsonNoise(input: {
|
|
81
|
+
message?: unknown;
|
|
82
|
+
frames?: Array<NoiseFrame | undefined>;
|
|
83
|
+
}): boolean;
|
|
80
84
|
/** Vercel toolbar frames have a reserved source path outside app bundles. */
|
|
81
85
|
export declare function isVercelLiveFeedbackNoise(input: {
|
|
82
86
|
filename?: unknown;
|