@opengeni/react 0.27.0 → 0.28.2
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 +32 -0
- package/dist/{chunk-OZDLELJQ.js → chunk-OCHBZ2X7.js} +40 -10
- package/dist/chunk-OCHBZ2X7.js.map +1 -0
- package/dist/{chunk-NBYNFI5T.js → chunk-PMSGE233.js} +5 -3
- package/dist/chunk-PMSGE233.js.map +1 -0
- package/dist/{chunk-GQN2QIR2.js → chunk-WAA247AB.js} +178 -87
- package/dist/chunk-WAA247AB.js.map +1 -0
- package/dist/index.d.ts +7 -34
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/{queue-surface-implementation-3UW3MIIR.js → queue-surface-implementation-UQ535OKQ.js} +44 -12
- package/dist/queue-surface-implementation-UQ535OKQ.js.map +1 -0
- package/dist/{session-LsampPc6.d.ts → session-C3tIXLim.d.ts} +1 -1
- package/dist/{session-ui-BPOV-tuY.d.ts → session-ui-B_7cfN5u.d.ts} +81 -5
- package/dist/session-ui.d.ts +2 -2
- package/dist/session-ui.js +4 -2
- package/dist/session.d.ts +2 -2
- package/dist/session.js +2 -2
- package/dist/{use-turn-queue-aDnQvzVz.d.ts → use-turn-queue-Drm_ypue.d.ts} +7 -3
- package/package.json +2 -2
- package/src/components/message-timeline.tsx +10 -0
- package/src/components/queue-surface-implementation.tsx +79 -11
- package/src/components/queue-surface.tsx +5 -5
- package/src/hooks/use-turn-queue.ts +8 -0
- package/src/index.ts +7 -0
- package/src/session-ui.ts +9 -0
- package/src/timeline/index.ts +11 -2
- package/src/timeline/parsers.ts +3 -31
- package/src/timeline/projection.ts +53 -9
- package/src/timeline/turn-summary.tsx +243 -56
- package/src/timeline/types.ts +1 -1
- package/dist/chunk-GQN2QIR2.js.map +0 -1
- package/dist/chunk-NBYNFI5T.js.map +0 -1
- package/dist/chunk-OZDLELJQ.js.map +0 -1
- package/dist/queue-surface-implementation-3UW3MIIR.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,18 +5,18 @@ import { WorkspaceControlEvent, EffectiveSessionControl, ClientModel, ScheduledT
|
|
|
5
5
|
export { MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, MetricSample } from '@opengeni/sdk';
|
|
6
6
|
import * as react from 'react';
|
|
7
7
|
import { ReactNode, ClipboardEvent, RefObject } from 'react';
|
|
8
|
-
import { P as PendingApproval } from './session-
|
|
9
|
-
export { B as BrowserSessionEventWindow, a as PendingHumanInputRequest, S as SESSION_EVENT_BROWSER_MAX_BYTES, b as SESSION_EVENT_BROWSER_MAX_COUNT, c as SESSION_EVENT_BROWSER_PENDING_MAX_BYTES, d as SESSION_EVENT_BROWSER_PENDING_MAX_COUNT, e as SESSION_EVENT_BROWSER_SINGLE_EVENT_MAX_BYTES, f as SessionEventsConnectionState, U as UseGoalOptions, g as UseGoalResult, h as UseHumanInputRequestsOptions, i as UseHumanInputRequestsResult, j as UseSessionControlOptions, k as UseSessionControlResult, l as UseSessionEventsOptions, m as UseSessionEventsResult, n as UseSessionLineageOptions, o as UseSessionLineageResult, p as UseSessionMcpApprovalPolicyOptions, q as UseSessionMcpApprovalPolicyResult, r as UseSessionOptions, s as UseSessionResult, t as approvalsFromRequiresAction, u as boundBrowserSessionEventWindow, v as buildTimeline, w as creditExhaustedFromEvents, x as extractSessionRef, y as groupTimeline, z as humanInputRequestFromEvent, A as isGoalEvent, C as isHumanInputEvent, D as isLineageRefreshEvent, E as isSessionMcpApprovalPolicyEvent, F as isTitleEvent, G as projectPendingApprovals, H as projectPendingHumanInputRequests, I as sessionStatusFromEvents, J as toolDisplayName, K as useGoal, L as useHumanInputRequests, M as useSession, N as useSessionControl, O as useSessionEvents, Q as useSessionLineage, R as useSessionMcpApprovalPolicy } from './session-
|
|
8
|
+
import { P as PendingApproval } from './session-C3tIXLim.js';
|
|
9
|
+
export { B as BrowserSessionEventWindow, a as PendingHumanInputRequest, S as SESSION_EVENT_BROWSER_MAX_BYTES, b as SESSION_EVENT_BROWSER_MAX_COUNT, c as SESSION_EVENT_BROWSER_PENDING_MAX_BYTES, d as SESSION_EVENT_BROWSER_PENDING_MAX_COUNT, e as SESSION_EVENT_BROWSER_SINGLE_EVENT_MAX_BYTES, f as SessionEventsConnectionState, U as UseGoalOptions, g as UseGoalResult, h as UseHumanInputRequestsOptions, i as UseHumanInputRequestsResult, j as UseSessionControlOptions, k as UseSessionControlResult, l as UseSessionEventsOptions, m as UseSessionEventsResult, n as UseSessionLineageOptions, o as UseSessionLineageResult, p as UseSessionMcpApprovalPolicyOptions, q as UseSessionMcpApprovalPolicyResult, r as UseSessionOptions, s as UseSessionResult, t as approvalsFromRequiresAction, u as boundBrowserSessionEventWindow, v as buildTimeline, w as creditExhaustedFromEvents, x as extractSessionRef, y as groupTimeline, z as humanInputRequestFromEvent, A as isGoalEvent, C as isHumanInputEvent, D as isLineageRefreshEvent, E as isSessionMcpApprovalPolicyEvent, F as isTitleEvent, G as projectPendingApprovals, H as projectPendingHumanInputRequests, I as sessionStatusFromEvents, J as toolDisplayName, K as useGoal, L as useHumanInputRequests, M as useSession, N as useSessionControl, O as useSessionEvents, Q as useSessionLineage, R as useSessionMcpApprovalPolicy } from './session-C3tIXLim.js';
|
|
10
10
|
import { C as ComposerState, S as SessionEventFeedOptions } from './use-composer-ClHy1rkL.js';
|
|
11
11
|
export { a as ComposerSendExtras, F as FILE_ONLY_MESSAGE_TEXT, U as UseComposerOptions, c as composeSendInput, s as shouldSteerOnKey, b as shouldSubmitOnKey, u as useComposer } from './use-composer-ClHy1rkL.js';
|
|
12
12
|
import { C as ComposerControlLinks, a as ComposerTranscriptionControlProps, S as SlashCommand, b as SlashCommandContext, c as ChatComposerMessages, d as SlashArg, e as CommandContext } from './composer-BMzimGTO.js';
|
|
13
13
|
export { f as CommandResult, g as ComposerTranscriptionControl, h as ComposerTranscriptionMessages, i as ConfirmState, I as INITIAL_TRANSCRIPTION_CONTROL_STATE, N as Notice, O as OPEN_WORKSTREAM_CONTROL_EVENT, j as SlashCommandHandlers, T as TranscriptionControlAction, k as TranscriptionControlState, l as TranscriptionControlTransition, U as UseSlashCommandsOptions, m as UseSlashCommandsResult, n as UseTranscriptionOptions, o as UseTranscriptionResult, p as appendFinalTranscript, q as defaultChatComposerMessages, t as transitionTranscriptionControl, u as useSlashCommands, r as useTranscription } from './composer-BMzimGTO.js';
|
|
14
14
|
import { U as UseFileAttachmentsResult } from './use-file-attachments-BmT8WtqO.js';
|
|
15
15
|
export { F as FileAttachment, a as UseFileAttachmentsOptions, u as useFileAttachments } from './use-file-attachments-BmT8WtqO.js';
|
|
16
|
-
import { A as ActivityItem
|
|
17
|
-
export { a as AgentMessageItem, b as AuthNeededItem, G as GoalItem, N as NoticeItem, Q as QueueMutationKind, R as ReasoningItem, S as SandboxItem, c as SessionStatusItem,
|
|
18
|
-
import { c as createToolRegistry, T as ToolRegistry } from './session-ui-
|
|
19
|
-
export { C as CreateToolRegistryOptions, H as HumanInputAnswerDraft,
|
|
16
|
+
import { A as ActivityItem } from './use-turn-queue-Drm_ypue.js';
|
|
17
|
+
export { a as AgentMessageItem, b as AuthNeededItem, G as GoalItem, N as NoticeItem, Q as QueueMutationKind, R as ReasoningItem, S as SandboxItem, c as SessionStatusItem, T as TimelineGroup, d as TimelineItem, e as ToolCallItem, f as TurnEndItem, g as TurnOutcome, U as UseTurnQueueOptions, h as UseTurnQueueResult, i as UserMessageItem, W as WorkerItem, j as isTurnQueueEvent, u as useTurnQueue } from './use-turn-queue-Drm_ypue.js';
|
|
18
|
+
import { c as createToolRegistry, T as ToolRegistry } from './session-ui-B_7cfN5u.js';
|
|
19
|
+
export { B as BUILT_IN_TURN_SUMMARY_FACET_IDS, a as BuiltInTurnSummaryFacetId, C as CreateToolRegistryOptions, H as HumanInputAnswerDraft, b as HumanInputForm, d as HumanInputFormMessages, e as HumanInputFormProps, M as MessageTimeline, f as MessageTimelineProps, Q as QueueSurface, g as QueueSurfaceProps, h as TimelineRow, i as ToolRegistryEntry, j as ToolRenderer, k as ToolRendererProps, l as TurnSummary, m as TurnSummaryContext, n as TurnSummaryFacet, o as TurnSummaryFacetConfiguration, p as TurnSummaryFacetResult, q as TurnSummaryOptions, r as TurnSummaryProps, s as answersFromDrafts, t as defaultHumanInputFormMessages, u as rawTypeOf } from './session-ui-B_7cfN5u.js';
|
|
20
20
|
export { CONNECTION_STATUS_META, ConnectionDot, ConnectionDotProps, ConnectionStatus, ConnectionStatusMeta, ConnectionStatusPill, ConnectionStatusPillProps, DeviceFlowPhase, EnrollmentConsent, EnrollmentConsentMachine, EnrollmentConsentPhase, EnrollmentConsentProps, EnrollmentDeviceFlow, EnrollmentDeviceFlowProps, HEALTH_TOKEN, HealthLevel, HealthVerdict, MACHINE_STATE_BADGE_META, METRICS, METRIC_WINDOWS, MachineCard, MachineCardProps, MachineDetail, MachineDetailProps, MachineDockBar, MachineDockBarProps, MachineHealthPill, MachineHealthPillProps, MachineMetrics, MachineMetricsProps, MachineStateBadgeMeta, MachineStatusPill, MachineStatusPillProps, MachinesClientLike, MachinesDashboard, MachinesDashboardProps, MetricDef, MetricHistoryChart, MetricHistoryChartProps, MetricKey, MetricSparkline, MetricSparklineProps, MetricWindow, SeriesPoint, SharedMachineDisclosure, SharedMachineDisclosureProps, UseMachinesOptions, UseMachinesResult, WINDOW_LABEL, connectionStatusForState, deriveHealth, healthPulses, pointsFor, useMachines } from './machines.js';
|
|
21
21
|
import { ClassValue } from 'clsx';
|
|
22
22
|
|
|
@@ -1161,33 +1161,6 @@ declare function DisclosureDefaultsProvider({ defaultOpen, children, }: {
|
|
|
1161
1161
|
children: ReactNode;
|
|
1162
1162
|
}): react_jsx_runtime.JSX.Element;
|
|
1163
1163
|
|
|
1164
|
-
type TurnSummaryProps = {
|
|
1165
|
-
/** The activity items in the turn (used only to compute the facet counts). */
|
|
1166
|
-
items: ActivityItem[];
|
|
1167
|
-
/**
|
|
1168
|
-
* The settled verdict — or absent for a completed CLUSTER of a still-running
|
|
1169
|
-
* turn, which folds neutrally: no verdict glyph (the turn has none yet), a
|
|
1170
|
-
* quiet pulse dot in its place so alignment and the running feel both hold.
|
|
1171
|
-
*/
|
|
1172
|
-
outcome?: TurnOutcome | undefined;
|
|
1173
|
-
/** A short failure reason shown inline on a failed chip (never hidden). */
|
|
1174
|
-
failureText?: string | undefined;
|
|
1175
|
-
/** Elapsed turn duration; shown as a trailing facet when at least 1s. */
|
|
1176
|
-
durationMs?: number | undefined;
|
|
1177
|
-
/** Start expanded. */
|
|
1178
|
-
defaultOpen?: boolean | undefined;
|
|
1179
|
-
/**
|
|
1180
|
-
* A nested fold — a cluster or sub-turn INSIDE an already-expanded turn. It
|
|
1181
|
-
* drops the bordered/filled chip and renders as a plain disclosure node on the
|
|
1182
|
-
* parent's rail (chevron + glyph + facets), so expanding a turn reveals a thread
|
|
1183
|
-
* of nodes, never a stack of boxes-in-boxes. The top-level fold stays a chip.
|
|
1184
|
-
*/
|
|
1185
|
-
bare?: boolean | undefined;
|
|
1186
|
-
/** The rendered activity rail revealed on expand. */
|
|
1187
|
-
children: React.ReactNode;
|
|
1188
|
-
};
|
|
1189
|
-
declare function TurnSummary({ items, outcome, failureText, durationMs, defaultOpen, bare, children, }: TurnSummaryProps): react_jsx_runtime.JSX.Element;
|
|
1190
|
-
|
|
1191
1164
|
/** Recover the exit code from a sandbox exec banner (`Process exited with code N`). */
|
|
1192
1165
|
declare function sandboxCommandExitCode(out: unknown): number | null;
|
|
1193
1166
|
/**
|
|
@@ -2143,4 +2116,4 @@ declare function isCreditExhaustion(input: {
|
|
|
2143
2116
|
*/
|
|
2144
2117
|
declare function humanizeFailureReason(reason: string | null): string | null;
|
|
2145
2118
|
|
|
2146
|
-
export { ActivityDisclosure, type ActivityDisclosureProps, ActivityItem, ActivityRail, type ActivityRailProps, type ApplyPatchOperation, ApprovalSurface, type ApprovalSurfaceMessages, type ApprovalSurfaceProps, BodyNote, CREDIT_EXHAUSTION_MESSAGE, CapturedFileUnavailableError, type CapturedFileUnavailableReason, ChatComposer, ChatComposerMessages, type ChatComposerProps, ClientOverride, CodeEditor, type CodeEditorProps, type CodexAccountsClientLike, CommandContext, CommandPalette, type CommandPaletteProps, ComposerState, ComposerTranscriptionControlProps, type DeriveMachineChipInput, DesktopViewer, type DesktopViewerProps, type DesktopWebSocketFactory, type DesktopWebSocketLike, type DiffTheme, DiffView, type DiffViewProps, type DisclosureChip, DisclosureDefaultsProvider, FileBrowser, type FileBrowserProps, type FileTreeNode, type FileTreeStatus, FileWriteConflictError, FleetTile, type FleetTileProps, LightboxProvider, type MachineChip, type MachineChipState, Markdown, type MarkdownProps, MediaEmpty, MediaSkeleton, ModelPicker, type ModelPickerProps, OpenGeniProvider, type OpenGeniProviderProps, type ParsedCommandLine, PayloadBlock, PendingApproval, PierreDiff, type PierreDiffProps, PierreFile, type PierreFileProps, SESSION_STATUS_META, SandboxFiles, type SandboxFilesProps, type SandboxGitFileDiff, SandboxTerminal, type SandboxTerminalProps, SandboxWorkspace, type SandboxWorkspaceProps, type SandboxWorkspaceSurface, type SandboxWriteFileOptions, ScreenshotFigure, type SessionCapabilitiesState, SessionClientLike, SessionStatus, type SessionStatusMeta, type SessionStatusProps, SlashArg, SlashCommand, SlashCommandContext, StatusDot, type StatusDotProps, TermBlock, type TerminalChunk, type TerminalStreamStatus, Thumbnail, ToolRegistry,
|
|
2119
|
+
export { ActivityDisclosure, type ActivityDisclosureProps, ActivityItem, ActivityRail, type ActivityRailProps, type ApplyPatchOperation, ApprovalSurface, type ApprovalSurfaceMessages, type ApprovalSurfaceProps, BodyNote, CREDIT_EXHAUSTION_MESSAGE, CapturedFileUnavailableError, type CapturedFileUnavailableReason, ChatComposer, ChatComposerMessages, type ChatComposerProps, ClientOverride, CodeEditor, type CodeEditorProps, type CodexAccountsClientLike, CommandContext, CommandPalette, type CommandPaletteProps, ComposerState, ComposerTranscriptionControlProps, type DeriveMachineChipInput, DesktopViewer, type DesktopViewerProps, type DesktopWebSocketFactory, type DesktopWebSocketLike, type DiffTheme, DiffView, type DiffViewProps, type DisclosureChip, DisclosureDefaultsProvider, FileBrowser, type FileBrowserProps, type FileTreeNode, type FileTreeStatus, FileWriteConflictError, FleetTile, type FleetTileProps, LightboxProvider, type MachineChip, type MachineChipState, Markdown, type MarkdownProps, MediaEmpty, MediaSkeleton, ModelPicker, type ModelPickerProps, OpenGeniProvider, type OpenGeniProviderProps, type ParsedCommandLine, PayloadBlock, PendingApproval, PierreDiff, type PierreDiffProps, PierreFile, type PierreFileProps, SESSION_STATUS_META, SandboxFiles, type SandboxFilesProps, type SandboxGitFileDiff, SandboxTerminal, type SandboxTerminalProps, SandboxWorkspace, type SandboxWorkspaceProps, type SandboxWorkspaceSurface, type SandboxWriteFileOptions, ScreenshotFigure, type SessionCapabilitiesState, SessionClientLike, SessionStatus, type SessionStatusMeta, type SessionStatusProps, SlashArg, SlashCommand, SlashCommandContext, StatusDot, type StatusDotProps, TermBlock, type TerminalChunk, type TerminalStreamStatus, Thumbnail, ToolRegistry, type UseAvailableModelsOptions, type UseAvailableModelsResult, type UseBillingUsageOptions, type UseBillingUsageResult, type UseCodexAccountsOptions, type UseCodexAccountsResult, type UseDesktopStreamOptions, type UseDesktopStreamResult, type UseEnvironmentsOptions, type UseEnvironmentsResult, UseFileAttachmentsResult, type UseMachineChipOptions, type UsePacksOptions, type UsePacksResult, type UseRelayFrameStreamOptions, type UseRelayFrameStreamResult, type UseRigChangesOptions, type UseRigChangesResult, type UseRigOptions, type UseRigResult, type UseRigVersionsOptions, type UseRigVersionsResult, type UseRigsOptions, type UseRigsResult, type UseSandboxFilesOptions, type UseSandboxFilesResult, type UseSandboxGitOptions, type UseSandboxGitResult, type UseSandboxTerminalOptions, type UseSandboxTerminalResult, type UseSandboxWorkspaceTabsOptions, type UseSandboxWorkspaceTabsResult, type UseScheduledTasksOptions, type UseScheduledTasksResult, type UseSessionCapabilitiesOptions, type UseSessionCapabilitiesResult, type UseTerminalStreamOptions, type UseTerminalStreamResult, type UseVariableSetsOptions, type UseVariableSetsResult, type UseWorkspaceCaptureOptions, type UseWorkspaceCaptureResult, type UseWorkspaceEditOptions, type UseWorkspaceEditResult, type UseWorkspaceSessionsOptions, type UseWorkspaceSessionsResult, type UseWorkspacesOptions, type UseWorkspacesResult, WORKBENCH_SURFACES, WORKBENCH_TAB_CHANGES, WORKBENCH_TAB_DESKTOP, WORKBENCH_TAB_FILES, WORKBENCH_TAB_TERMINAL, WorkspaceDock, type WorkspaceDockProps, type WorkspaceEditConflict, type WorkspaceEditState, type WorkspaceMachine, type WorkspaceNotification, type WorkspaceTab, type XtermTheme, applyPatchOps, argHint, cn, controlCaret, createDefaultToolRegistry, createToolRegistry, defaultApprovalSurfaceMessages, defaultCommands, defaultToolRegistry, deriveMachineChip, execTruncated, filterCommands, firstMissingRequiredArg, formatAsOf, formatBytes, formatRelativeTime, gitFileDiffToPatch, hasPermission, humanizeFailureReason, initialWorkspaceTab, isApplyPatch, isCodexAccountEvent, isCreditExhaustion, isExecSessionLostBanner, languageForPath, looksBinary, matchCommand, parseCommandLine, parseExecBannerSessionId, parseToolArgs, redactSecrets, sandboxCommandExitCode, sessionDisplayTitle, stringifyPayload, stripExecBanner, tailPeek, truncate, tryParseJson, unwrapMcpOutput, useAvailableModels, useBillingUsage, useCodexAccounts, useDesktopStream, useEnvironments, useLightbox, useLightboxOptional, useMachineChip, usePacks, useRelayFrameStream, useRig, useRigChanges, useRigVersions, useRigs, useSandboxFiles, useSandboxGit, useSandboxTerminal, useSandboxWorkspaceTabs, useScheduledTasks, useSessionCapabilities, useTerminalStream, useVariableSets, useWorkspaceCapture, useWorkspaceEdit, useWorkspaceSessions, useWorkspaces, v4aToGitFileDiff, xtermThemeFromTokens };
|
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ import {
|
|
|
68
68
|
import {
|
|
69
69
|
ActivityDisclosure,
|
|
70
70
|
ActivityRail,
|
|
71
|
+
BUILT_IN_TURN_SUMMARY_FACET_IDS,
|
|
71
72
|
BodyNote,
|
|
72
73
|
DisclosureDefaultsProvider,
|
|
73
74
|
HumanInputForm,
|
|
@@ -111,7 +112,7 @@ import {
|
|
|
111
112
|
useLightboxOptional,
|
|
112
113
|
useThemeType,
|
|
113
114
|
v4aToGitFileDiff
|
|
114
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-WAA247AB.js";
|
|
115
116
|
import {
|
|
116
117
|
cn
|
|
117
118
|
} from "./chunk-TK7G6XLT.js";
|
|
@@ -141,7 +142,7 @@ import {
|
|
|
141
142
|
useSessionLineage,
|
|
142
143
|
useSessionMcpApprovalPolicy,
|
|
143
144
|
useTurnQueue
|
|
144
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-PMSGE233.js";
|
|
145
146
|
import {
|
|
146
147
|
FILE_ONLY_MESSAGE_TEXT,
|
|
147
148
|
composeSendInput,
|
|
@@ -163,7 +164,7 @@ import {
|
|
|
163
164
|
groupTimeline,
|
|
164
165
|
sessionStatusFromEvents,
|
|
165
166
|
toolDisplayName
|
|
166
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-OCHBZ2X7.js";
|
|
167
168
|
import {
|
|
168
169
|
CREDIT_EXHAUSTION_MESSAGE,
|
|
169
170
|
formatBytes,
|
|
@@ -8303,6 +8304,7 @@ export {
|
|
|
8303
8304
|
ActivityDisclosure,
|
|
8304
8305
|
ActivityRail,
|
|
8305
8306
|
ApprovalSurface,
|
|
8307
|
+
BUILT_IN_TURN_SUMMARY_FACET_IDS,
|
|
8306
8308
|
BodyNote,
|
|
8307
8309
|
CONNECTION_STATUS_META,
|
|
8308
8310
|
CREDIT_EXHAUSTION_MESSAGE,
|