@opengeni/react 6.1.0-canary.2 → 6.1.0-canary.4
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 +5 -0
- package/dist/{browser-viewer-NTD6UIPR.js → browser-viewer-LGH4IP47.js} +3 -3
- package/dist/chunk-AWEBVNVX.js +1398 -0
- package/dist/chunk-AWEBVNVX.js.map +1 -0
- package/dist/{chunk-NYESIADM.js → chunk-B7TTSUEW.js} +3 -1
- package/dist/chunk-B7TTSUEW.js.map +1 -0
- package/dist/{chunk-UWVY3OXF.js → chunk-BC7BFCMN.js} +277 -455
- package/dist/chunk-BC7BFCMN.js.map +1 -0
- package/dist/chunk-BRM6FVZA.js +302 -0
- package/dist/chunk-BRM6FVZA.js.map +1 -0
- package/dist/{chunk-KZ4QDBGM.js → chunk-GHSSI2BK.js} +925 -1265
- package/dist/chunk-GHSSI2BK.js.map +1 -0
- package/dist/{chunk-NLTS7JHI.js → chunk-JPHDWKZE.js} +5 -5
- package/dist/{chunk-L5VJYZIW.js → chunk-O53CQZ6T.js} +7 -7
- package/dist/{chunk-24M4YBCL.js → chunk-PNAVEK2U.js} +4 -4
- package/dist/components/preview-loading.d.ts +2 -0
- package/dist/composer.js +4 -4
- package/dist/connect-setup.d.ts +2 -0
- package/dist/connect.js +19 -8
- package/dist/connect.js.map +1 -1
- package/dist/index.js +27 -27
- package/dist/interaction.js +2 -2
- package/dist/machines.js +2 -2
- package/dist/plugin-discovery.d.ts +2 -0
- package/dist/realtime.js +20 -20
- package/dist/realtime.js.map +1 -1
- package/dist/session-ui.js +7 -7
- package/dist/session.js +3 -3
- package/package.json +3 -3
- package/src/components/markdown.tsx +13 -21
- package/src/components/preview-loading.tsx +154 -0
- package/src/connect-setup.tsx +17 -5
- package/src/hooks/use-composer.ts +6 -0
- package/src/plugin-discovery.tsx +10 -6
- package/src/realtime/realtime-control.tsx +6 -8
- package/styles/compiled.css +48 -8
- package/styles/index.css +45 -0
- package/dist/chunk-G5JFM6ZE.js +0 -911
- package/dist/chunk-G5JFM6ZE.js.map +0 -1
- package/dist/chunk-HQV2I5HV.js +0 -124
- package/dist/chunk-HQV2I5HV.js.map +0 -1
- package/dist/chunk-KZ4QDBGM.js.map +0 -1
- package/dist/chunk-NYESIADM.js.map +0 -1
- package/dist/chunk-UWVY3OXF.js.map +0 -1
- /package/dist/{browser-viewer-NTD6UIPR.js.map → browser-viewer-LGH4IP47.js.map} +0 -0
- /package/dist/{chunk-NLTS7JHI.js.map → chunk-JPHDWKZE.js.map} +0 -0
- /package/dist/{chunk-L5VJYZIW.js.map → chunk-O53CQZ6T.js.map} +0 -0
- /package/dist/{chunk-24M4YBCL.js.map → chunk-PNAVEK2U.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
healthPulses,
|
|
29
29
|
pointsFor,
|
|
30
30
|
useMachines
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JPHDWKZE.js";
|
|
32
32
|
import {
|
|
33
33
|
DesktopViewer,
|
|
34
34
|
useDesktopStream,
|
|
@@ -46,33 +46,24 @@ import {
|
|
|
46
46
|
ModelPolicyPickerMenu
|
|
47
47
|
} from "./chunk-HJ5VJ4JB.js";
|
|
48
48
|
import {
|
|
49
|
-
ActivityDisclosure,
|
|
50
49
|
ActivityRail,
|
|
51
50
|
ApprovalSurface,
|
|
52
51
|
BUILT_IN_TURN_SUMMARY_FACET_IDS,
|
|
53
|
-
BodyNote,
|
|
54
52
|
ChatComposer,
|
|
55
|
-
DisclosureDefaultsProvider,
|
|
56
53
|
GeneratedVideoPlayer,
|
|
57
54
|
HumanInputForm,
|
|
58
55
|
HumanInputSurface,
|
|
59
56
|
KnowledgeActivityProvider,
|
|
60
|
-
MediaEmpty,
|
|
61
|
-
MediaSkeleton,
|
|
62
57
|
MessageTimeline,
|
|
63
|
-
PayloadBlock,
|
|
64
58
|
PierreDiff,
|
|
65
59
|
QueueSurface,
|
|
66
60
|
SESSION_STATUS_META,
|
|
67
|
-
ScreenshotFigure,
|
|
68
61
|
SessionChrome,
|
|
69
62
|
SessionCommandsPanel,
|
|
70
63
|
SessionConversation,
|
|
71
64
|
SessionStatus,
|
|
72
65
|
StartupTimings,
|
|
73
66
|
StatusDot,
|
|
74
|
-
TermBlock,
|
|
75
|
-
Thumbnail,
|
|
76
67
|
TimelineRow,
|
|
77
68
|
TurnSummary,
|
|
78
69
|
UserMessageBody,
|
|
@@ -108,7 +99,7 @@ import {
|
|
|
108
99
|
useWorkspaceModelCatalog,
|
|
109
100
|
userMessageLikelyNeedsDisclosure,
|
|
110
101
|
v4aToGitFileDiff
|
|
111
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-GHSSI2BK.js";
|
|
112
103
|
import "./chunk-YBM6CQRU.js";
|
|
113
104
|
import "./chunk-5M6VTFJ5.js";
|
|
114
105
|
import "./chunk-ZYRGEKWS.js";
|
|
@@ -117,14 +108,23 @@ import {
|
|
|
117
108
|
OpenGeniProvider
|
|
118
109
|
} from "./chunk-PAJU5KKL.js";
|
|
119
110
|
import {
|
|
111
|
+
ActivityDisclosure,
|
|
112
|
+
BodyNote,
|
|
120
113
|
CopyButton,
|
|
121
114
|
CopyHoverFrame,
|
|
115
|
+
DisclosureDefaultsProvider,
|
|
122
116
|
Markdown,
|
|
117
|
+
MediaEmpty,
|
|
118
|
+
MediaSkeleton,
|
|
119
|
+
PayloadBlock,
|
|
120
|
+
ScreenshotFigure,
|
|
121
|
+
TermBlock,
|
|
122
|
+
Thumbnail,
|
|
123
123
|
prefersReducedMotion,
|
|
124
124
|
retainedImageId,
|
|
125
125
|
sandboxFileLocationFromHref,
|
|
126
126
|
sandboxFilePathFromHref
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-AWEBVNVX.js";
|
|
128
128
|
import {
|
|
129
129
|
copyTextToClipboard,
|
|
130
130
|
tableElementToTsv
|
|
@@ -134,7 +134,6 @@ import {
|
|
|
134
134
|
ComposerTranscriptionControl,
|
|
135
135
|
INITIAL_TRANSCRIPTION_CONTROL_STATE,
|
|
136
136
|
IndexedDbVoiceRecordingStore,
|
|
137
|
-
LightboxProvider,
|
|
138
137
|
ModelPicker,
|
|
139
138
|
OPEN_WORKSTREAM_CONTROL_EVENT,
|
|
140
139
|
VOICE_RECORDING_CLIENT_MAX_DURATION_SECONDS,
|
|
@@ -159,18 +158,19 @@ import {
|
|
|
159
158
|
planVoiceRecordingChunkCommit,
|
|
160
159
|
prepareVoiceRecordingChunk,
|
|
161
160
|
transitionTranscriptionControl,
|
|
162
|
-
useLightbox,
|
|
163
|
-
useLightboxOptional,
|
|
164
161
|
useSlashCommands,
|
|
165
162
|
useTranscription,
|
|
166
163
|
useVoiceInput
|
|
167
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-BC7BFCMN.js";
|
|
168
165
|
import {
|
|
166
|
+
LightboxProvider,
|
|
169
167
|
Tooltip,
|
|
170
168
|
TooltipContent,
|
|
171
169
|
TooltipProvider,
|
|
172
|
-
TooltipTrigger
|
|
173
|
-
|
|
170
|
+
TooltipTrigger,
|
|
171
|
+
useLightbox,
|
|
172
|
+
useLightboxOptional
|
|
173
|
+
} from "./chunk-BRM6FVZA.js";
|
|
174
174
|
import "./chunk-WYWRYUNQ.js";
|
|
175
175
|
import {
|
|
176
176
|
BillingClassMark,
|
|
@@ -219,14 +219,20 @@ import {
|
|
|
219
219
|
useSession,
|
|
220
220
|
useSessionEvents,
|
|
221
221
|
useTurnQueue
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-O53CQZ6T.js";
|
|
223
223
|
import {
|
|
224
224
|
FILE_ONLY_MESSAGE_TEXT,
|
|
225
225
|
composeSendInput,
|
|
226
226
|
shouldSteerOnKey,
|
|
227
227
|
shouldSubmitOnKey,
|
|
228
228
|
useComposer
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-B7TTSUEW.js";
|
|
230
|
+
import {
|
|
231
|
+
useMutationRunner,
|
|
232
|
+
usePageLiveActivity,
|
|
233
|
+
usePolledValue,
|
|
234
|
+
useSessionEventTrigger
|
|
235
|
+
} from "./chunk-KZ73RL76.js";
|
|
230
236
|
import {
|
|
231
237
|
COMPOSER_PAYMENT_REQUIRED_MESSAGE,
|
|
232
238
|
CREDIT_EXHAUSTION_MESSAGE,
|
|
@@ -241,12 +247,6 @@ import {
|
|
|
241
247
|
truncate,
|
|
242
248
|
tryParseJson
|
|
243
249
|
} from "./chunk-PLYRL5ER.js";
|
|
244
|
-
import {
|
|
245
|
-
useMutationRunner,
|
|
246
|
-
usePageLiveActivity,
|
|
247
|
-
usePolledValue,
|
|
248
|
-
useSessionEventTrigger
|
|
249
|
-
} from "./chunk-KZ73RL76.js";
|
|
250
250
|
import {
|
|
251
251
|
useOpenGeni,
|
|
252
252
|
useOpenGeniClient
|
|
@@ -8204,7 +8204,7 @@ import {
|
|
|
8204
8204
|
} from "lucide-react";
|
|
8205
8205
|
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
8206
8206
|
var LazyBrowserViewer = lazy2(async () => {
|
|
8207
|
-
const { BrowserViewer } = await import("./browser-viewer-
|
|
8207
|
+
const { BrowserViewer } = await import("./browser-viewer-LGH4IP47.js");
|
|
8208
8208
|
return { default: BrowserViewer };
|
|
8209
8209
|
});
|
|
8210
8210
|
var LazyComputerViewer = lazy2(async () => {
|
package/dist/interaction.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useBrowserSession,
|
|
8
8
|
useBrowserSessions,
|
|
9
9
|
useSiteAuthConnections
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PNAVEK2U.js";
|
|
11
11
|
import {
|
|
12
12
|
ComputerViewer,
|
|
13
13
|
useComputerFrameStream,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import "./chunk-4MDLEHXL.js";
|
|
22
22
|
import "./chunk-5YK2ZDIG.js";
|
|
23
23
|
import "./chunk-JVYQRRC4.js";
|
|
24
|
-
import "./chunk-PLYRL5ER.js";
|
|
25
24
|
import "./chunk-KZ73RL76.js";
|
|
25
|
+
import "./chunk-PLYRL5ER.js";
|
|
26
26
|
import {
|
|
27
27
|
useEmbeddedBrowserInteraction,
|
|
28
28
|
useEmbeddedComputerInteraction,
|
package/dist/machines.js
CHANGED
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
healthPulses,
|
|
29
29
|
pointsFor,
|
|
30
30
|
useMachines
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JPHDWKZE.js";
|
|
32
32
|
import "./chunk-PAJU5KKL.js";
|
|
33
|
-
import "./chunk-PLYRL5ER.js";
|
|
34
33
|
import "./chunk-KZ73RL76.js";
|
|
34
|
+
import "./chunk-PLYRL5ER.js";
|
|
35
35
|
import "./chunk-NEXLLTP4.js";
|
|
36
36
|
import "./chunk-22KP6LR5.js";
|
|
37
37
|
export {
|
|
@@ -9,6 +9,8 @@ export type PluginDiscoveryProps = {
|
|
|
9
9
|
};
|
|
10
10
|
workspaceId: string;
|
|
11
11
|
query: string;
|
|
12
|
+
/** Initially selected registry. Users can still switch registries or browse all. */
|
|
13
|
+
defaultProvider?: "" | "openai" | "anthropic";
|
|
12
14
|
/** Discovery identities already installed in the current workspace. */
|
|
13
15
|
installedIds?: ReadonlySet<string>;
|
|
14
16
|
resultLimit?: number;
|
package/dist/realtime.js
CHANGED
|
@@ -972,28 +972,28 @@ function RealtimeVoiceModelPanel(props) {
|
|
|
972
972
|
const [provider, setProvider] = useState(null);
|
|
973
973
|
const [direction, setDirection] = useState(1);
|
|
974
974
|
return /* @__PURE__ */ jsxs2("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "realtime-voice-model-panel", children: [
|
|
975
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex shrink-0 items-
|
|
975
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex min-h-10 shrink-0 items-center gap-2 border-b border-og-border px-2 pb-2", children: [
|
|
976
976
|
props.leading,
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
/* @__PURE__ */ jsx2("div", { className: "text-og-menu font-medium text-og-fg", children: "Voice model" }),
|
|
979
|
-
/* @__PURE__ */ jsx2("p", { className: "mt-0.5 text-og-control text-og-fg-subtle", children: "Used when you start a voice conversation." })
|
|
980
|
-
] })
|
|
977
|
+
/* @__PURE__ */ jsx2("div", { className: "min-w-0 flex-1 text-og-menu font-medium text-og-fg", children: "Voice model" })
|
|
981
978
|
] }),
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
979
|
+
/* @__PURE__ */ jsxs2("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain p-2", children: [
|
|
980
|
+
/* @__PURE__ */ jsx2("p", { className: "mb-3 text-og-control text-og-fg-muted", children: "Used when you start a voice conversation." }),
|
|
981
|
+
/* @__PURE__ */ jsx2(
|
|
982
|
+
RealtimeModelPickerMenu,
|
|
983
|
+
{
|
|
984
|
+
models: props.models,
|
|
985
|
+
selectedModel: props.selectedModel,
|
|
986
|
+
provider,
|
|
987
|
+
direction,
|
|
988
|
+
disabled: props.disabled === true,
|
|
989
|
+
onProviderChange: (next, nextDirection) => {
|
|
990
|
+
setDirection(nextDirection);
|
|
991
|
+
setProvider(next);
|
|
992
|
+
},
|
|
993
|
+
onSelect: props.onSelect
|
|
994
|
+
}
|
|
995
|
+
)
|
|
996
|
+
] })
|
|
997
997
|
] });
|
|
998
998
|
}
|
|
999
999
|
function RealtimeMuteButton(props) {
|