@opengeni/react 7.6.1-canary.37073905159001 → 7.6.1
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 +2 -19
- package/dist/{browser-viewer-63TXMINB.js → browser-viewer-5X47I6T2.js} +5 -6
- package/dist/{chunk-TKB4SB44.js → chunk-45GE35O7.js} +2 -10
- package/dist/chunk-45GE35O7.js.map +1 -0
- package/dist/{chunk-DOJWJQ3F.js → chunk-5EXGU7UF.js} +3 -3
- package/dist/{chunk-YN7I3STW.js → chunk-6NEZPF53.js} +32 -153
- package/dist/chunk-6NEZPF53.js.map +1 -0
- package/dist/{chunk-I7IWRQLN.js → chunk-BI57CQUV.js} +2 -2
- package/dist/{chunk-6ZSWSH4I.js → chunk-CHPKSLPN.js} +1 -3
- package/dist/chunk-CHPKSLPN.js.map +1 -0
- package/dist/{chunk-Q5QBEZIQ.js → chunk-DV2DBNPQ.js} +29 -48
- package/dist/chunk-DV2DBNPQ.js.map +1 -0
- package/dist/{chunk-RDKBXMWX.js → chunk-FGBCYQOT.js} +74 -120
- package/dist/chunk-FGBCYQOT.js.map +1 -0
- package/dist/{chunk-AAG4R3QN.js → chunk-KGENSZKS.js} +3 -4
- package/dist/chunk-KGENSZKS.js.map +1 -0
- package/dist/{chunk-YQEAA6LT.js → chunk-KZ73RL76.js} +3 -7
- package/dist/chunk-KZ73RL76.js.map +1 -0
- package/dist/{chunk-LFXYGZWK.js → chunk-LZ3KHA55.js} +60 -169
- package/dist/chunk-LZ3KHA55.js.map +1 -0
- package/dist/{chunk-2QUSQVF2.js → chunk-UINDK6C3.js} +3 -3
- package/dist/{chunk-UTRTG6LH.js → chunk-UJRYEWZI.js} +8 -48
- package/dist/chunk-UJRYEWZI.js.map +1 -0
- package/dist/{chunk-XOAMRDDK.js → chunk-VGIKFIO2.js} +3 -6
- package/dist/chunk-VGIKFIO2.js.map +1 -0
- package/dist/{chunk-ELCE5SXV.js → chunk-WZ55DVGK.js} +4 -8
- package/dist/chunk-WZ55DVGK.js.map +1 -0
- package/dist/{chunk-IQUCRAT7.js → chunk-XA6R7DJQ.js} +3 -3
- package/dist/{chunk-TOAH2BKA.js → chunk-YCGBREUV.js} +2 -6
- package/dist/{chunk-TOAH2BKA.js.map → chunk-YCGBREUV.js.map} +1 -1
- package/dist/{chunk-HNFCAQ5R.js → chunk-YRYF2GLG.js} +31 -39
- package/dist/chunk-YRYF2GLG.js.map +1 -0
- package/dist/{chunk-GISEVGS6.js → chunk-YSMMDOOE.js} +2 -10
- package/dist/chunk-YSMMDOOE.js.map +1 -0
- package/dist/{chunk-CWWKTNKK.js → chunk-Z3DISEQN.js} +18 -35
- package/dist/chunk-Z3DISEQN.js.map +1 -0
- package/dist/client.d.ts +1 -4
- package/dist/commands/types.d.ts +0 -2
- package/dist/components/approval-surface.d.ts +0 -15
- package/dist/composer.js +7 -8
- package/dist/{computer-viewer-X2MBRZY4.js → computer-viewer-7GF35SNY.js} +4 -5
- package/dist/connect.js +3 -3
- package/dist/hooks/use-browser-session.d.ts +0 -4
- package/dist/hooks/use-composer.d.ts +0 -2
- package/dist/hooks/use-computer-session.d.ts +0 -2
- package/dist/hooks/use-file-attachments.d.ts +0 -2
- package/dist/hooks/use-session-events.d.ts +1 -1
- package/dist/hooks/use-workspace-sessions.d.ts +5 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -28
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +1 -1
- package/dist/interaction.js +5 -6
- package/dist/interaction.js.map +1 -1
- package/dist/{latest-question-CNEZ5KAN.js → latest-question-3BJGKQQ6.js} +3 -3
- package/dist/lib/format.d.ts +3 -27
- package/dist/lib/interaction-errors.d.ts +0 -3
- package/dist/machines.js +4 -5
- package/dist/{model-policy-picker-menu-JSA64TNN.js → model-policy-picker-menu-PUTA5JOB.js} +4 -4
- package/dist/model-policy.js +1 -1
- package/dist/provider.d.ts +1 -5
- package/dist/{queue-surface-implementation-HENWYFWA.js → queue-surface-implementation-2CAQAIHM.js} +2 -3
- package/dist/{queue-surface-implementation-HENWYFWA.js.map → queue-surface-implementation-2CAQAIHM.js.map} +1 -1
- package/dist/realtime.js +2 -2
- package/dist/{sandbox-files-BBC47SLD.js → sandbox-files-AEJTWGT4.js} +3 -4
- package/dist/session-ui.d.ts +1 -1
- package/dist/session-ui.js +12 -13
- package/dist/session-ui.js.map +1 -1
- package/dist/session.js +6 -7
- package/dist/usage.js +1 -2
- package/dist/usage.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1 -5
- package/src/commands/registry.ts +15 -18
- package/src/commands/types.ts +0 -2
- package/src/components/approval-surface.tsx +42 -166
- package/src/components/browser-viewer.tsx +9 -38
- package/src/components/composer.tsx +2 -9
- package/src/components/computer-viewer.tsx +30 -160
- package/src/components/generated-video-player.tsx +2 -4
- package/src/components/human-input-form.tsx +5 -18
- package/src/components/message-timeline.tsx +2 -4
- package/src/components/open-geni-chat.tsx +4 -11
- package/src/components/queue-surface-state.tsx +1 -3
- package/src/components/session-chrome.tsx +2 -5
- package/src/components/session-commands-panel.tsx +1 -3
- package/src/components/session-conversation.tsx +2 -4
- package/src/components/session-list.tsx +5 -7
- package/src/components/session-mcp-capability-card.tsx +1 -11
- package/src/hooks/internal.ts +2 -3
- package/src/hooks/use-browser-session.ts +79 -115
- package/src/hooks/use-composer.ts +31 -70
- package/src/hooks/use-computer-session.ts +6 -57
- package/src/hooks/use-file-attachments.ts +3 -16
- package/src/hooks/use-goal.ts +1 -2
- package/src/hooks/use-session-capabilities.ts +2 -3
- package/src/hooks/use-session-events.ts +8 -15
- package/src/hooks/use-slash-commands.ts +11 -6
- package/src/hooks/use-turn-queue.ts +1 -2
- package/src/hooks/use-workspace-sessions.ts +7 -40
- package/src/index.ts +2 -7
- package/src/interaction.ts +0 -1
- package/src/lib/format.ts +9 -73
- package/src/lib/interaction-errors.ts +0 -15
- package/src/model-policy.ts +0 -5
- package/src/provider.tsx +4 -12
- package/src/session-ui.ts +1 -1
- package/src/timeline/projection.ts +1 -12
- package/styles/compiled.css +0 -14
- package/dist/chunk-6ZSWSH4I.js.map +0 -1
- package/dist/chunk-AAG4R3QN.js.map +0 -1
- package/dist/chunk-CWWKTNKK.js.map +0 -1
- package/dist/chunk-ELCE5SXV.js.map +0 -1
- package/dist/chunk-GISEVGS6.js.map +0 -1
- package/dist/chunk-HNFCAQ5R.js.map +0 -1
- package/dist/chunk-LFXYGZWK.js.map +0 -1
- package/dist/chunk-Q5QBEZIQ.js.map +0 -1
- package/dist/chunk-RDKBXMWX.js.map +0 -1
- package/dist/chunk-TKB4SB44.js.map +0 -1
- package/dist/chunk-UGLEYEMP.js +0 -33
- package/dist/chunk-UGLEYEMP.js.map +0 -1
- package/dist/chunk-UTRTG6LH.js.map +0 -1
- package/dist/chunk-XOAMRDDK.js.map +0 -1
- package/dist/chunk-YN7I3STW.js.map +0 -1
- package/dist/chunk-YQEAA6LT.js.map +0 -1
- package/dist/lib/error-message.d.ts +0 -7
- package/src/lib/error-message.ts +0 -37
- /package/dist/{browser-viewer-63TXMINB.js.map → browser-viewer-5X47I6T2.js.map} +0 -0
- /package/dist/{chunk-DOJWJQ3F.js.map → chunk-5EXGU7UF.js.map} +0 -0
- /package/dist/{chunk-I7IWRQLN.js.map → chunk-BI57CQUV.js.map} +0 -0
- /package/dist/{chunk-2QUSQVF2.js.map → chunk-UINDK6C3.js.map} +0 -0
- /package/dist/{chunk-IQUCRAT7.js.map → chunk-XA6R7DJQ.js.map} +0 -0
- /package/dist/{computer-viewer-X2MBRZY4.js.map → computer-viewer-7GF35SNY.js.map} +0 -0
- /package/dist/{latest-question-CNEZ5KAN.js.map → latest-question-3BJGKQQ6.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-JSA64TNN.js.map → model-policy-picker-menu-PUTA5JOB.js.map} +0 -0
- /package/dist/{sandbox-files-BBC47SLD.js.map → sandbox-files-AEJTWGT4.js.map} +0 -0
package/dist/connect.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
McpConnectionCard,
|
|
4
4
|
mcpConnectionDiscoveryState,
|
|
5
5
|
useConnect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-45GE35O7.js";
|
|
7
7
|
import {
|
|
8
8
|
Markdown
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BI57CQUV.js";
|
|
10
10
|
import "./chunk-GIMRELBW.js";
|
|
11
11
|
import "./chunk-447JLCBU.js";
|
|
12
12
|
import "./chunk-XCHWDJ22.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-JVYQRRC4.js";
|
|
16
16
|
import "./chunk-BRM6FVZA.js";
|
|
17
17
|
import "./chunk-VZTQ73XT.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UJRYEWZI.js";
|
|
19
19
|
import "./chunk-22KP6LR5.js";
|
|
20
20
|
|
|
21
21
|
// src/capability-catalog-row.tsx
|
|
@@ -2,9 +2,6 @@ import type { BrowserAction, BrowserActionBatch, BrowserActionReceipt, BrowserCl
|
|
|
2
2
|
import { type EmbeddedBrowserInteractionClientOverride } from "../session-context.js";
|
|
3
3
|
/** Immutable input fence; queued actions never need the encoded screenshot. */
|
|
4
4
|
export type BrowserFrameInputFence = Pick<BrowserFrame, "browserSessionId" | "controllerGeneration" | "targetId" | "targetGeneration" | "documentGeneration" | "frameId">;
|
|
5
|
-
export type BrowserInputFailure = Pick<BrowserActionReceipt, "operationId" | "error"> & {
|
|
6
|
-
state: Exclude<BrowserActionReceipt["state"], "completed">;
|
|
7
|
-
};
|
|
8
5
|
export type UseBrowserSessionOptions = EmbeddedBrowserInteractionClientOverride & {
|
|
9
6
|
browserSessionId: string | null;
|
|
10
7
|
enabled?: boolean | undefined;
|
|
@@ -21,7 +18,6 @@ export type UseBrowserSessionResult = {
|
|
|
21
18
|
loading: boolean;
|
|
22
19
|
mutating: boolean;
|
|
23
20
|
error: Error | null;
|
|
24
|
-
inputFailure: BrowserInputFailure | null;
|
|
25
21
|
refresh: () => Promise<void>;
|
|
26
22
|
observeForInput: () => Promise<BrowserObservation>;
|
|
27
23
|
actFromObservation: (action: BrowserAction, observation: BrowserObservation) => Promise<BrowserActionReceipt>;
|
|
@@ -47,8 +47,6 @@ export type ComposerOptimisticMessage = {
|
|
|
47
47
|
triggerEventId?: string | null | undefined;
|
|
48
48
|
appliedQueueVersion?: number | null | undefined;
|
|
49
49
|
error?: string | undefined;
|
|
50
|
-
/** Bounded support reference retained independently of display copy across remounts. */
|
|
51
|
-
correlationId?: string | undefined;
|
|
52
50
|
/** False for a definitive refusal that requires changing payment or allowance settings. */
|
|
53
51
|
retryable?: boolean | undefined;
|
|
54
52
|
outcomeUnknown?: boolean | undefined;
|
|
@@ -13,8 +13,6 @@ export type UseComputerSessionResult = {
|
|
|
13
13
|
loading: boolean;
|
|
14
14
|
mutating: boolean;
|
|
15
15
|
error: Error | null;
|
|
16
|
-
/** Control service loss, independent of target accessibility inspection and media. */
|
|
17
|
-
controlError: Error | null;
|
|
18
16
|
refresh: () => Promise<void>;
|
|
19
17
|
readClipboard: () => Promise<ComputerClipboard>;
|
|
20
18
|
/** Changes only this viewer's target cursor; it never takes ownership or
|
|
@@ -25,8 +25,6 @@ export type FileAttachment = {
|
|
|
25
25
|
/** Stable SDK failure code for UI behavior that must not parse error copy. */
|
|
26
26
|
errorCode?: "secure_context_required" | undefined;
|
|
27
27
|
error?: string | undefined;
|
|
28
|
-
/** Original diagnostic failure; presentation copy is kept separately in `error`. */
|
|
29
|
-
errorCause?: unknown;
|
|
30
28
|
};
|
|
31
29
|
export type UseFileAttachmentsResult = {
|
|
32
30
|
attachments: FileAttachment[];
|
|
@@ -78,7 +78,7 @@ export type UseSessionEventsResult = {
|
|
|
78
78
|
error: Error | null;
|
|
79
79
|
};
|
|
80
80
|
export declare const SESSION_EVENT_BROWSER_MAX_BYTES: number;
|
|
81
|
-
export declare const SESSION_EVENT_BROWSER_MAX_COUNT =
|
|
81
|
+
export declare const SESSION_EVENT_BROWSER_MAX_COUNT = 200000;
|
|
82
82
|
export declare const SESSION_EVENT_BROWSER_PENDING_MAX_BYTES: number;
|
|
83
83
|
export declare const SESSION_EVENT_BROWSER_PENDING_MAX_COUNT = 256;
|
|
84
84
|
export type BrowserSessionEventWindow = {
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import type { Session
|
|
1
|
+
import type { Session } from "@opengeni/sdk";
|
|
2
2
|
import { type ClientOverride } from "../provider.js";
|
|
3
3
|
export type UseWorkspaceSessionsOptions = ClientOverride & {
|
|
4
|
-
/** Compact list records; detail reads remain full sessions. */
|
|
5
|
-
projection?: "summary" | undefined;
|
|
6
4
|
limit?: number | undefined;
|
|
7
5
|
parentSessionId?: string | null | undefined;
|
|
8
6
|
cursor?: string | undefined;
|
|
9
7
|
search?: string | undefined;
|
|
10
8
|
/** Return only the complete personal pinned projection. */
|
|
11
9
|
pinsOnly?: boolean | undefined;
|
|
12
|
-
/** Skip pinned details when the pinned section is loaded separately. */
|
|
13
|
-
includePinned?: boolean | undefined;
|
|
14
10
|
archivedOnly?: boolean | undefined;
|
|
15
11
|
sortBy?: "updatedAt" | "createdAt" | "name" | undefined;
|
|
16
12
|
archiveStatus?: "active" | "archived" | "all" | undefined;
|
|
@@ -20,14 +16,14 @@ export type UseWorkspaceSessionsOptions = ClientOverride & {
|
|
|
20
16
|
/** Optional shared causal clock invoked when each network read starts. */
|
|
21
17
|
beginRead?: (() => number) | undefined;
|
|
22
18
|
};
|
|
23
|
-
export type UseWorkspaceSessionsResult
|
|
19
|
+
export type UseWorkspaceSessionsResult = {
|
|
24
20
|
/**
|
|
25
21
|
* All visible rows, with pins first. This preserves the pre-pinning hook
|
|
26
22
|
* contract for consumers that only read `sessions`.
|
|
27
23
|
*/
|
|
28
|
-
sessions:
|
|
24
|
+
sessions: Session[];
|
|
29
25
|
/** The complete personal pinned section, also present in `sessions`. */
|
|
30
|
-
pinned:
|
|
26
|
+
pinned: Session[];
|
|
31
27
|
/** True when the server omitted older pins from its bounded pinned section. */
|
|
32
28
|
pinnedTruncated: boolean;
|
|
33
29
|
nextCursor: string | null;
|
|
@@ -40,10 +36,4 @@ export type UseWorkspaceSessionsResult<T extends Session | SessionListEntry = Se
|
|
|
40
36
|
refresh: () => Promise<void>;
|
|
41
37
|
};
|
|
42
38
|
/** List the workspace's sessions — the data behind fleet and manager views. */
|
|
43
|
-
export declare function useWorkspaceSessions(options
|
|
44
|
-
projection: "summary";
|
|
45
|
-
}): UseWorkspaceSessionsResult<SessionListEntry>;
|
|
46
|
-
export declare function useWorkspaceSessions(options?: UseWorkspaceSessionsOptions & {
|
|
47
|
-
projection?: undefined;
|
|
48
|
-
}): UseWorkspaceSessionsResult;
|
|
49
|
-
export declare function useWorkspaceSessions(options: UseWorkspaceSessionsOptions): UseWorkspaceSessionsResult<Session | SessionListEntry>;
|
|
39
|
+
export declare function useWorkspaceSessions(options?: UseWorkspaceSessionsOptions): UseWorkspaceSessionsResult;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { attachSessionCapability, completeSessionCapabilityOAuth, } from "./sess
|
|
|
6
6
|
export { retainedImageId } from "./components/markdown.js";
|
|
7
7
|
export type { EmbeddedBrowserInteractionClientLike, EmbeddedComputerInteractionClientLike, EmbeddedFileAttachmentClientLike, EmbeddedGoalClientLike, EmbeddedHumanInputSessionClientLike, EmbeddedInteractionClientLike, EmbeddedSessionEventClientLike, EmbeddedSessionLineageClientLike, EmbeddedSessionMcpApprovalPolicyClientLike, EmbeddedSessionReadClientLike, EmbeddedSessionClientLike, SessionClientLike, } from "./client.js";
|
|
8
8
|
export { OpenGeniProvider } from "./provider.js";
|
|
9
|
-
export type { OpenGeniProviderProps
|
|
9
|
+
export type { OpenGeniProviderProps } from "./provider.js";
|
|
10
10
|
export { useOpenGeni, useOpenGeniClient } from "./session-context.js";
|
|
11
11
|
export { useVideoArtifactPlaybackLoader } from "./hooks/use-video-artifact-playback.js";
|
|
12
12
|
export type { ClientOverride, OpenGeniContextValue } from "./session-context.js";
|
|
@@ -27,7 +27,7 @@ export { VOICE_RECORDING_CLIENT_MAX_DURATION_SECONDS, VOICE_RECORDING_OWNER_HEAR
|
|
|
27
27
|
export type { UseVoiceInputOptions, UseVoiceInputResult, VoiceInputStatus, } from "./hooks/use-voice-input.js";
|
|
28
28
|
export { IndexedDbVoiceRecordingStore, VoiceRecordingChunkConflictError, VoiceRecordingChunkSequenceError, VoiceRecordingNotFoundError, VoiceRecordingOwnedError, VoiceRecordingStorageUnavailableError, createVoiceRecordingManifest, planVoiceRecordingChunkCommit, prepareVoiceRecordingChunk, } from "./voice-recording-store.js";
|
|
29
29
|
export type { PersistVoiceRecordingChunkInput, PersistVoiceRecordingChunkResult, VoiceRecordingCaptureState, VoiceRecordingChunk, VoiceRecordingChunkUploadState, VoiceRecordingFinalizationState, VoiceRecordingHandoffMode, VoiceRecordingManifest, VoiceRecordingRecoveryMode, VoiceRecordingStore, VoiceRecordingTranscriptionState, VoiceRecordingUploadState, } from "./voice-recording-store.js";
|
|
30
|
-
export {
|
|
30
|
+
export { COMPOSER_PAYMENT_REQUIRED_MESSAGE, composerSubmissionErrorMessage } from "./lib/format.js";
|
|
31
31
|
export { INITIAL_TRANSCRIPTION_CONTROL_STATE, appendFinalTranscript, transitionTranscriptionControl, useTranscription, } from "./hooks/use-transcription.js";
|
|
32
32
|
export type { TranscriptionControlAction, TranscriptionControlState, TranscriptionControlTransition, UseTranscriptionOptions, UseTranscriptionResult, } from "./hooks/use-transcription.js";
|
|
33
33
|
export { useFileAttachments } from "./hooks/use-file-attachments.js";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
useGoal,
|
|
18
18
|
useSessionLineage,
|
|
19
19
|
useSessionMcpApprovalPolicy
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VGIKFIO2.js";
|
|
21
21
|
import {
|
|
22
22
|
CONNECTION_STATUS_META,
|
|
23
23
|
ConnectionDot,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
healthPulses,
|
|
49
49
|
pointsFor,
|
|
50
50
|
useMachines
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-XA6R7DJQ.js";
|
|
52
52
|
import {
|
|
53
53
|
ActivityRail,
|
|
54
54
|
ApprovalSurface,
|
|
@@ -107,11 +107,11 @@ import {
|
|
|
107
107
|
useWorkspaceSessions,
|
|
108
108
|
userMessageLikelyNeedsDisclosure,
|
|
109
109
|
v4aToGitFileDiff
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-LZ3KHA55.js";
|
|
111
111
|
import {
|
|
112
112
|
useThemeType
|
|
113
113
|
} from "./chunk-UK4TINKT.js";
|
|
114
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-YCGBREUV.js";
|
|
115
115
|
import "./chunk-5QHL6BLH.js";
|
|
116
116
|
import "./chunk-ZYRGEKWS.js";
|
|
117
117
|
import "./chunk-FZCP527Y.js";
|
|
@@ -140,27 +140,27 @@ import {
|
|
|
140
140
|
useSessionControl,
|
|
141
141
|
useSessionEvents,
|
|
142
142
|
useTurnQueue
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-Z3DISEQN.js";
|
|
144
144
|
import {
|
|
145
145
|
buildTimeline,
|
|
146
146
|
creditExhaustedFromEvents,
|
|
147
147
|
extractSessionRef,
|
|
148
148
|
groupTimeline,
|
|
149
149
|
sessionStatusFromEvents
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-KGENSZKS.js";
|
|
151
151
|
import {
|
|
152
152
|
toolDisplayName
|
|
153
153
|
} from "./chunk-ERGYJIBB.js";
|
|
154
154
|
import {
|
|
155
155
|
OpenGeniProvider
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-WZ55DVGK.js";
|
|
157
157
|
import {
|
|
158
158
|
McpConnectionCard,
|
|
159
159
|
SessionCapabilityFrame,
|
|
160
160
|
SessionMcpCapabilityCard,
|
|
161
161
|
attachSessionCapability,
|
|
162
162
|
completeSessionCapabilityOAuth
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-45GE35O7.js";
|
|
164
164
|
import {
|
|
165
165
|
ActivityDisclosure,
|
|
166
166
|
BodyNote,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
retainedImageId,
|
|
178
178
|
sandboxFileLocationFromHref,
|
|
179
179
|
sandboxFilePathFromHref
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-BI57CQUV.js";
|
|
181
181
|
import "./chunk-GIMRELBW.js";
|
|
182
182
|
import "./chunk-447JLCBU.js";
|
|
183
183
|
import {
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
import "./chunk-RHREZ7BO.js";
|
|
203
203
|
import {
|
|
204
204
|
ModelPolicyPickerMenu
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-5EXGU7UF.js";
|
|
206
206
|
import {
|
|
207
207
|
CommandPalette,
|
|
208
208
|
ComposerTranscriptionControl,
|
|
@@ -235,14 +235,14 @@ import {
|
|
|
235
235
|
useSlashCommands,
|
|
236
236
|
useTranscription,
|
|
237
237
|
useVoiceInput
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-YRYF2GLG.js";
|
|
239
239
|
import {
|
|
240
240
|
FILE_ONLY_MESSAGE_TEXT,
|
|
241
241
|
composeSendInput,
|
|
242
242
|
shouldSteerOnKey,
|
|
243
243
|
shouldSubmitOnKey,
|
|
244
244
|
useComposer
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-DV2DBNPQ.js";
|
|
246
246
|
import {
|
|
247
247
|
LightboxProvider,
|
|
248
248
|
Tooltip,
|
|
@@ -261,7 +261,7 @@ import {
|
|
|
261
261
|
PickerBackHeader,
|
|
262
262
|
PickerNavRow,
|
|
263
263
|
defaultModelPolicyPickerMessages
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-UINDK6C3.js";
|
|
265
265
|
import "./chunk-K3HQAKQX.js";
|
|
266
266
|
import {
|
|
267
267
|
advancedSourceSummary,
|
|
@@ -281,10 +281,9 @@ import {
|
|
|
281
281
|
projectPickerRows,
|
|
282
282
|
runnableLatencyModesForModel,
|
|
283
283
|
sortPickerRows
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-CHPKSLPN.js";
|
|
285
285
|
import "./chunk-VZTQ73XT.js";
|
|
286
286
|
import {
|
|
287
|
-
COMPOSER_MODEL_UNAVAILABLE_MESSAGE,
|
|
288
287
|
COMPOSER_PAYMENT_REQUIRED_MESSAGE,
|
|
289
288
|
CREDIT_EXHAUSTION_MESSAGE,
|
|
290
289
|
composerSubmissionErrorMessage,
|
|
@@ -293,12 +292,11 @@ import {
|
|
|
293
292
|
formatRelativeTime,
|
|
294
293
|
humanizeFailureReason,
|
|
295
294
|
isCreditExhaustion,
|
|
296
|
-
isModelUnavailableSubmissionError,
|
|
297
295
|
presentFailure,
|
|
298
296
|
stringifyPayload,
|
|
299
297
|
truncate,
|
|
300
298
|
tryParseJson
|
|
301
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-UJRYEWZI.js";
|
|
302
300
|
import {
|
|
303
301
|
SandboxTerminal,
|
|
304
302
|
terminalCanAcquirePty,
|
|
@@ -315,10 +313,7 @@ import {
|
|
|
315
313
|
usePageLiveActivity,
|
|
316
314
|
usePolledValue,
|
|
317
315
|
useSessionEventTrigger
|
|
318
|
-
} from "./chunk-
|
|
319
|
-
import {
|
|
320
|
-
normalizeError
|
|
321
|
-
} from "./chunk-UGLEYEMP.js";
|
|
316
|
+
} from "./chunk-KZ73RL76.js";
|
|
322
317
|
import {
|
|
323
318
|
useOpenGeni,
|
|
324
319
|
useOpenGeniClient
|
|
@@ -1219,7 +1214,7 @@ function useSessionCapabilities(sessionId, options = {}) {
|
|
|
1219
1214
|
return;
|
|
1220
1215
|
}
|
|
1221
1216
|
setState("error");
|
|
1222
|
-
setError(
|
|
1217
|
+
setError(cause instanceof Error ? cause : new Error(String(cause)));
|
|
1223
1218
|
}
|
|
1224
1219
|
});
|
|
1225
1220
|
}, warmingPollMs);
|
|
@@ -1331,7 +1326,7 @@ function useSessionCapabilities(sessionId, options = {}) {
|
|
|
1331
1326
|
return;
|
|
1332
1327
|
}
|
|
1333
1328
|
setState("error");
|
|
1334
|
-
setError(
|
|
1329
|
+
setError(cause instanceof Error ? cause : new Error(String(cause)));
|
|
1335
1330
|
}
|
|
1336
1331
|
})();
|
|
1337
1332
|
return () => {
|
|
@@ -3746,7 +3741,7 @@ import {
|
|
|
3746
3741
|
} from "lucide-react";
|
|
3747
3742
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
3748
3743
|
var LazySandboxFiles = lazy(
|
|
3749
|
-
() => import("./sandbox-files-
|
|
3744
|
+
() => import("./sandbox-files-AEJTWGT4.js").then(({ SandboxFiles: SandboxFiles2 }) => ({ default: SandboxFiles2 })).catch(() => ({ default: FilesLoadFailed }))
|
|
3750
3745
|
);
|
|
3751
3746
|
function FilesLoadFailed() {
|
|
3752
3747
|
return /* @__PURE__ */ jsxs5(CenteredState, { tone: "danger", icon: /* @__PURE__ */ jsx6(TriangleAlertIcon, { className: "size-5", "aria-hidden": true }), children: [
|
|
@@ -3761,11 +3756,11 @@ function FilesTabBody(props) {
|
|
|
3761
3756
|
return /* @__PURE__ */ jsx6(Suspense, { fallback: /* @__PURE__ */ jsx6(WorkbenchSurfaceLoading, { name: "Files" }), children: /* @__PURE__ */ jsx6(LazySandboxFiles, { ...props }) });
|
|
3762
3757
|
}
|
|
3763
3758
|
var LazyBrowserViewer = lazy(async () => {
|
|
3764
|
-
const { BrowserViewer } = await import("./browser-viewer-
|
|
3759
|
+
const { BrowserViewer } = await import("./browser-viewer-5X47I6T2.js");
|
|
3765
3760
|
return { default: BrowserViewer };
|
|
3766
3761
|
});
|
|
3767
3762
|
var LazyComputerViewer = lazy(async () => {
|
|
3768
|
-
const { ComputerViewer } = await import("./computer-viewer-
|
|
3763
|
+
const { ComputerViewer } = await import("./computer-viewer-7GF35SNY.js");
|
|
3769
3764
|
return { default: ComputerViewer };
|
|
3770
3765
|
});
|
|
3771
3766
|
var WORKBENCH_TAB_CHANGES = "changes";
|
|
@@ -4911,7 +4906,6 @@ export {
|
|
|
4911
4906
|
BUILT_IN_TURN_SUMMARY_FACET_IDS,
|
|
4912
4907
|
BillingClassMark,
|
|
4913
4908
|
BodyNote,
|
|
4914
|
-
COMPOSER_MODEL_UNAVAILABLE_MESSAGE,
|
|
4915
4909
|
COMPOSER_PAYMENT_REQUIRED_MESSAGE,
|
|
4916
4910
|
CONNECTION_STATUS_META,
|
|
4917
4911
|
CREDIT_EXHAUSTION_MESSAGE,
|
|
@@ -5093,7 +5087,6 @@ export {
|
|
|
5093
5087
|
isHumanInputEvent,
|
|
5094
5088
|
isLastStartedTurnPolicyEvent,
|
|
5095
5089
|
isLineageRefreshEvent,
|
|
5096
|
-
isModelUnavailableSubmissionError,
|
|
5097
5090
|
isSessionMcpApprovalPolicyEvent,
|
|
5098
5091
|
isTitleEvent,
|
|
5099
5092
|
isTurnQueueEvent,
|