@opengeni/react 6.1.0 → 7.0.0-canary.35585322809001
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 +83 -2
- package/dist/artifacts-document.js +1 -1
- package/dist/artifacts-presentation.js +1 -1
- package/dist/artifacts-spreadsheet.js +1 -1
- package/dist/artifacts.js +3 -3
- package/dist/{browser-viewer-NTD6UIPR.js → browser-viewer-LGH4IP47.js} +3 -3
- package/dist/capability-catalog-row.d.ts +20 -0
- package/dist/capability-logo-fallback.d.ts +3 -0
- package/dist/{chunk-NOSYBS2D.js → chunk-2VHARTBL.js} +2 -1
- package/dist/{chunk-VRBL3F5E.js → chunk-5GAL23FF.js} +10 -2
- package/dist/{chunk-VRBL3F5E.js.map → chunk-5GAL23FF.js.map} +1 -1
- package/dist/chunk-5UONOQ3Y.js +635 -0
- package/dist/chunk-5UONOQ3Y.js.map +1 -0
- package/dist/{chunk-NYESIADM.js → chunk-AKOMC3VO.js} +3 -3
- package/dist/chunk-AKOMC3VO.js.map +1 -0
- package/dist/chunk-BRM6FVZA.js +302 -0
- package/dist/chunk-BRM6FVZA.js.map +1 -0
- package/dist/{chunk-TDSEILUH.js → chunk-D5NOQPLR.js} +1289 -1530
- package/dist/chunk-D5NOQPLR.js.map +1 -0
- package/dist/chunk-D7GAPJ3V.js +1558 -0
- package/dist/chunk-D7GAPJ3V.js.map +1 -0
- package/dist/{chunk-5M6VTFJ5.js → chunk-GBPCZH3Y.js} +2 -2
- package/dist/{chunk-YBM6CQRU.js → chunk-GEN54DU5.js} +4 -4
- package/dist/{chunk-UMECRJRV.js → chunk-HJ5VJ4JB.js} +21 -12
- package/dist/chunk-HJ5VJ4JB.js.map +1 -0
- package/dist/{chunk-R4KRSFGA.js → chunk-IP4BUBKH.js} +3 -3
- package/dist/{chunk-KANFU34B.js → chunk-IYUPN32E.js} +6 -2
- package/dist/chunk-IYUPN32E.js.map +1 -0
- package/dist/{chunk-L2NBTKRX.js → chunk-JKLGJQO5.js} +193 -12
- package/dist/chunk-JKLGJQO5.js.map +1 -0
- package/dist/{chunk-NLTS7JHI.js → chunk-JPHDWKZE.js} +5 -5
- package/dist/{chunk-ICA6R6TW.js → chunk-OWHPKAOV.js} +28 -20
- package/dist/chunk-OWHPKAOV.js.map +1 -0
- package/dist/{chunk-24M4YBCL.js → chunk-PNAVEK2U.js} +4 -4
- package/dist/{chunk-45XEUVTK.js → chunk-UXE5SSNN.js} +293 -463
- package/dist/chunk-UXE5SSNN.js.map +1 -0
- package/dist/{chunk-PEI6RANI.js → chunk-VR4Z73EU.js} +203 -9
- package/dist/chunk-VR4Z73EU.js.map +1 -0
- package/dist/{chunk-HUIKIDM5.js → chunk-XMXRI5JK.js} +65 -18
- package/dist/chunk-XMXRI5JK.js.map +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/components/artifacts/spreadsheet-general-display.d.ts +24 -0
- package/dist/components/chat-composer.d.ts +13 -3
- package/dist/components/markdown.d.ts +4 -3
- package/dist/components/message-timeline.d.ts +7 -2
- package/dist/components/preview-loading.d.ts +2 -0
- package/dist/components/session-capability-frame.d.ts +24 -0
- package/dist/components/session-chrome.d.ts +1 -2
- package/dist/components/session-commands.d.ts +6 -0
- package/dist/components/session-connection-request.d.ts +8 -0
- package/dist/components/session-mcp-capability-card.d.ts +22 -0
- package/dist/components/timeline-search.d.ts +34 -0
- package/dist/composer.js +7 -7
- package/dist/connect-account-identity.d.ts +8 -0
- package/dist/connect-accounts.d.ts +5 -0
- package/dist/connect-chooser.d.ts +6 -0
- package/dist/connect-panel.d.ts +9 -2
- package/dist/connect-setup.d.ts +5 -1
- package/dist/connect.d.ts +5 -21
- package/dist/connect.js +1268 -584
- package/dist/connect.js.map +1 -1
- package/dist/connection-catalog.d.ts +6 -1
- package/dist/connection-discovery.d.ts +12 -0
- package/dist/connection-installed.d.ts +1 -0
- package/dist/connection-logo.d.ts +5 -2
- package/dist/connection-service-logo.d.ts +8 -0
- package/dist/connection-service-presentation.d.ts +13 -0
- package/dist/connection-skeleton.d.ts +5 -0
- package/dist/discovery-cache.d.ts +5 -0
- package/dist/hooks/use-codex-accounts.d.ts +11 -5
- package/dist/hooks/use-connect.d.ts +22 -0
- package/dist/hooks/use-session-events.d.ts +5 -0
- package/dist/hooks/use-session-mcp-approval-policy.d.ts +2 -2
- package/dist/hooks/use-workspace-sessions.d.ts +2 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +771 -793
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +2 -2
- package/dist/machines.js +2 -2
- package/dist/mcp-connection-status.d.ts +14 -0
- package/dist/{model-policy-picker-menu-3R336DP2.js → model-policy-picker-menu-RVOQ4ZZG.js} +4 -4
- package/dist/model-policy.d.ts +6 -2
- package/dist/model-policy.js +1 -1
- package/dist/{platform-activity-row-DUE2W74J.js → platform-activity-row-HLOH7FW4.js} +9 -4
- package/dist/platform-activity-row-HLOH7FW4.js.map +1 -0
- package/dist/plugin-discovery.d.ts +6 -0
- package/dist/{queue-surface-implementation-LK3S4BIW.js → queue-surface-implementation-3RIFK2BS.js} +4 -4
- package/dist/realtime.js +22 -22
- package/dist/realtime.js.map +1 -1
- package/dist/session-auth-recommendation.d.ts +5 -0
- package/dist/session-capability-policy.d.ts +12 -0
- package/dist/session-ui.d.ts +2 -0
- package/dist/session-ui.js +14 -12
- package/dist/session.d.ts +1 -0
- package/dist/session.js +6 -4
- package/dist/skill-discovery.d.ts +11 -0
- package/dist/timeline/compaction-copy.d.ts +10 -0
- package/dist/timeline/projection.d.ts +3 -1
- package/dist/timeline/turn-summary.d.ts +2 -2
- package/dist/timeline/types.d.ts +22 -1
- package/dist/{timeline-annotation-markers-DRSTLEM6.js → timeline-annotation-markers-OY6OWR3V.js} +2 -2
- package/dist/{timeline-annotation-selection-IHLUGVND.js → timeline-annotation-selection-BOXA2TIN.js} +2 -2
- package/dist/{timeline-annotations-dialog-6Q53N5FG.js → timeline-annotations-dialog-RGY3MHL3.js} +3 -3
- package/package.json +3 -3
- package/src/assets/README.md +8 -0
- package/src/assets/gmail.ico +0 -0
- package/src/assets/outlook.ico +0 -0
- package/src/capability-catalog-row.tsx +94 -0
- package/src/capability-logo-fallback.ts +22 -0
- package/src/client.ts +0 -9
- package/src/components/artifacts/document-editor.tsx +63 -6
- package/src/components/artifacts/presentation-editor.tsx +214 -9
- package/src/components/artifacts/spreadsheet-canvas.ts +3 -8
- package/src/components/artifacts/spreadsheet-general-display.ts +43 -0
- package/src/components/artifacts/spreadsheet-grid.tsx +10 -11
- package/src/components/chat-composer.tsx +26 -3
- package/src/components/composer.tsx +10 -4
- package/src/components/human-input-form.tsx +12 -2
- package/src/components/markdown.tsx +86 -4
- package/src/components/message-timeline.tsx +104 -36
- package/src/components/model-picker.tsx +11 -3
- package/src/components/model-policy-picker-menu.tsx +10 -3
- package/src/components/preview-loading.tsx +154 -0
- package/src/components/sandbox-workspace.tsx +20 -36
- package/src/components/session-capability-frame.tsx +163 -0
- package/src/components/session-chrome.tsx +46 -77
- package/src/components/session-commands.tsx +18 -0
- package/src/components/session-connection-request.tsx +97 -0
- package/src/components/session-conversation.tsx +5 -4
- package/src/components/session-mcp-capability-card.tsx +532 -0
- package/src/components/session-status.tsx +2 -2
- package/src/components/timeline-anchor.tsx +9 -8
- package/src/components/timeline-search.tsx +168 -0
- package/src/components/user-message-body.tsx +7 -0
- package/src/connect-account-identity.tsx +34 -0
- package/src/connect-accounts.tsx +114 -52
- package/src/connect-chooser.tsx +171 -39
- package/src/connect-panel.tsx +73 -9
- package/src/connect-setup.tsx +72 -25
- package/src/connect.ts +13 -22
- package/src/connection-assets.d.ts +4 -0
- package/src/connection-catalog.tsx +61 -39
- package/src/connection-discovery.tsx +235 -0
- package/src/connection-installed.tsx +2 -0
- package/src/connection-logo.tsx +18 -10
- package/src/connection-service-logo.tsx +55 -0
- package/src/connection-service-presentation.ts +46 -0
- package/src/connection-skeleton.tsx +16 -0
- package/src/conversation-timeline.ts +1 -0
- package/src/discovery-cache.ts +42 -0
- package/src/hooks/use-codex-accounts.ts +33 -14
- package/src/hooks/use-composer.ts +4 -5
- package/src/hooks/use-connect.ts +23 -0
- package/src/hooks/use-session-events.ts +114 -1
- package/src/hooks/use-session-mcp-approval-policy.ts +13 -5
- package/src/hooks/use-workspace-sessions.ts +10 -0
- package/src/index.ts +22 -2
- package/src/mcp-connection-status.ts +35 -0
- package/src/model-policy.ts +21 -0
- package/src/plugin-details.tsx +8 -5
- package/src/plugin-discovery.tsx +92 -72
- package/src/realtime/realtime-control.tsx +6 -8
- package/src/session-auth-recommendation.ts +48 -0
- package/src/session-capability-policy.ts +83 -0
- package/src/session-ui.ts +2 -0
- package/src/session.ts +1 -0
- package/src/skill-discovery.tsx +101 -56
- package/src/timeline/compaction-copy.ts +40 -0
- package/src/timeline/platform-activity-row.tsx +8 -3
- package/src/timeline/projection.ts +74 -2
- package/src/timeline/shared.tsx +6 -1
- package/src/timeline/startup-timings.tsx +1 -1
- package/src/timeline/turn-summary.tsx +17 -3
- package/src/timeline/types.ts +22 -2
- package/styles/compiled.css +325 -27
- package/styles/connect.css +90 -15
- package/styles/index.css +46 -0
- package/styles/session-capability.css +42 -0
- package/dist/chunk-45XEUVTK.js.map +0 -1
- package/dist/chunk-HQV2I5HV.js +0 -124
- package/dist/chunk-HQV2I5HV.js.map +0 -1
- package/dist/chunk-HUIKIDM5.js.map +0 -1
- package/dist/chunk-ICA6R6TW.js.map +0 -1
- package/dist/chunk-IHQII5WO.js +0 -886
- package/dist/chunk-IHQII5WO.js.map +0 -1
- package/dist/chunk-KANFU34B.js.map +0 -1
- package/dist/chunk-L2NBTKRX.js.map +0 -1
- package/dist/chunk-NYESIADM.js.map +0 -1
- package/dist/chunk-PEI6RANI.js.map +0 -1
- package/dist/chunk-TDSEILUH.js.map +0 -1
- package/dist/chunk-UMECRJRV.js.map +0 -1
- package/dist/hooks/use-packs.d.ts +0 -32
- package/dist/platform-activity-row-DUE2W74J.js.map +0 -1
- package/src/hooks/use-packs.ts +0 -157
- /package/dist/{browser-viewer-NTD6UIPR.js.map → browser-viewer-LGH4IP47.js.map} +0 -0
- /package/dist/{chunk-NOSYBS2D.js.map → chunk-2VHARTBL.js.map} +0 -0
- /package/dist/{chunk-5M6VTFJ5.js.map → chunk-GBPCZH3Y.js.map} +0 -0
- /package/dist/{chunk-YBM6CQRU.js.map → chunk-GEN54DU5.js.map} +0 -0
- /package/dist/{chunk-R4KRSFGA.js.map → chunk-IP4BUBKH.js.map} +0 -0
- /package/dist/{chunk-NLTS7JHI.js.map → chunk-JPHDWKZE.js.map} +0 -0
- /package/dist/{chunk-24M4YBCL.js.map → chunk-PNAVEK2U.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-3R336DP2.js.map → model-policy-picker-menu-RVOQ4ZZG.js.map} +0 -0
- /package/dist/{queue-surface-implementation-LK3S4BIW.js.map → queue-surface-implementation-3RIFK2BS.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-DRSTLEM6.js.map → timeline-annotation-markers-OY6OWR3V.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-IHLUGVND.js.map → timeline-annotation-selection-BOXA2TIN.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-6Q53N5FG.js.map → timeline-annotations-dialog-RGY3MHL3.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import { type CapabilityCatalogStatus } from "./capability-catalog-row.js";
|
|
2
3
|
/** Status comes from the host/controller, never inferred from a display label. */
|
|
3
4
|
export type ConnectionCatalogOption = {
|
|
4
5
|
id: string;
|
|
@@ -6,6 +7,8 @@ export type ConnectionCatalogOption = {
|
|
|
6
7
|
description?: string | undefined;
|
|
7
8
|
status: string;
|
|
8
9
|
connected: boolean;
|
|
10
|
+
/** Explicit health/availability. Omit to retain visible legacy status text. */
|
|
11
|
+
state?: CapabilityCatalogStatus;
|
|
9
12
|
onOpen: () => void;
|
|
10
13
|
action?: ReactNode;
|
|
11
14
|
};
|
|
@@ -19,6 +22,8 @@ export type ConnectionCatalogProps = {
|
|
|
19
22
|
services: ConnectionCatalogService[];
|
|
20
23
|
query?: string;
|
|
21
24
|
columns?: 1 | 2;
|
|
25
|
+
resultLimit?: number;
|
|
26
|
+
onShowMore?: () => void;
|
|
22
27
|
/** Group capabilities by service, or show every capability independently. */
|
|
23
28
|
grouped?: boolean;
|
|
24
29
|
className?: string;
|
|
@@ -30,4 +35,4 @@ export declare function ConnectionOptionRow({ option }: {
|
|
|
30
35
|
export declare function ConnectionServiceRow({ service }: {
|
|
31
36
|
service: ConnectionCatalogService;
|
|
32
37
|
}): import("react").JSX.Element | null;
|
|
33
|
-
export declare function ConnectionCatalog({ services, query, columns, grouped, className, emptyMessage, }: ConnectionCatalogProps): import("react").JSX.Element;
|
|
38
|
+
export declare function ConnectionCatalog({ services, query, columns, grouped, resultLimit, onShowMore, className, emptyMessage, }: ConnectionCatalogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ConnectController } from "@opengeni/connect";
|
|
2
|
+
import type { OpenGeniClient } from "@opengeni/sdk";
|
|
3
|
+
export type ConnectionDiscoveryProps = {
|
|
4
|
+
client: OpenGeniClient;
|
|
5
|
+
controller?: ConnectController | undefined;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
returnUrl: string;
|
|
8
|
+
onConfigured?: (() => void | Promise<void>) | undefined;
|
|
9
|
+
};
|
|
10
|
+
/** Service discovery over the native catalogue. No host-owned OAuth state or
|
|
11
|
+
* assumed account selection: details resolve current authority before acting. */
|
|
12
|
+
export declare function ConnectionDiscovery(props: ConnectionDiscoveryProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/** Brand identifier; failed/missing assets use the supplied fallback or stable initials. */
|
|
3
|
+
export declare function ConnectionLogo({ src, name, size, fallback, loading, }: {
|
|
3
4
|
src: string | null;
|
|
4
5
|
name: string;
|
|
5
6
|
size?: number;
|
|
7
|
+
fallback?: ReactNode;
|
|
8
|
+
loading?: boolean;
|
|
6
9
|
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CapabilityCatalogItem, OpenGeniClient } from "@opengeni/sdk";
|
|
2
|
+
/** The same passive logo loading path for discovery and connected accounts. */
|
|
3
|
+
export declare function ConnectionServiceLogo({ client, item, name, fallback, }: {
|
|
4
|
+
client?: OpenGeniClient | undefined;
|
|
5
|
+
item?: CapabilityCatalogItem | undefined;
|
|
6
|
+
name: string;
|
|
7
|
+
fallback?: string | null;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ConnectAccount, ConnectProvider } from "@opengeni/connect";
|
|
2
|
+
import type { CapabilityCatalogItem } from "@opengeni/sdk";
|
|
3
|
+
export declare function connectionServicePresentation(provider: Pick<ConnectProvider, "id" | "label">): {
|
|
4
|
+
name: string;
|
|
5
|
+
logo: string;
|
|
6
|
+
mcpUrl?: string;
|
|
7
|
+
} | {
|
|
8
|
+
name: string;
|
|
9
|
+
logo: null;
|
|
10
|
+
};
|
|
11
|
+
export declare function capabilityConnectProviderId(item: Partial<Pick<CapabilityCatalogItem, "mcpUrl">>): string | undefined;
|
|
12
|
+
export declare function accountServiceCapability(account: ConnectAccount, items: CapabilityCatalogItem[]): CapabilityCatalogItem | undefined;
|
|
13
|
+
export declare function isServiceConnectProvider(provider: ConnectProvider): boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Short-lived presentation data only. Never cache installation or authorization state. */
|
|
2
|
+
export declare function createDiscoveryCache<T>(ttlMs?: number, capacity?: number): {
|
|
3
|
+
peek(client: object, key: string): T | undefined;
|
|
4
|
+
read(client: object, key: string, fetch: () => Promise<T>): Promise<T>;
|
|
5
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CodexAccount, CodexAccountsResponse, CodexRotationSettings, SessionEvent } from "@opengeni/sdk";
|
|
1
|
+
import type { CodexAccount, CodexAccountsResponse, CodexRotationSettings, SessionCodexAccountsResponse, SessionEvent } from "@opengeni/sdk";
|
|
2
2
|
import { type ClientOverride } from "../provider.js";
|
|
3
3
|
import { type SessionEventFeedOptions } from "./internal.js";
|
|
4
4
|
/** Events that change which Codex account a session runs on (or just ran). */
|
|
@@ -7,11 +7,14 @@ export declare function isCodexAccountEvent(event: Pick<SessionEvent, "type">):
|
|
|
7
7
|
* The structural slice of the SDK client the Codex-accounts surface needs. Method
|
|
8
8
|
* NAMES + SIGNATURES match `OpenGeniClient` so the real client satisfies it
|
|
9
9
|
* directly; declared structurally (not a hard Pick) so a test/Geni client can
|
|
10
|
-
* stand in. `
|
|
10
|
+
* stand in. `listSessionCodexAccounts` reads the accepted selection and choices
|
|
11
|
+
* atomically; `pinSessionCodexAccount`
|
|
11
12
|
* is the optional mutation (absent ⇒ the indicator hides the switch affordance).
|
|
12
13
|
*/
|
|
13
14
|
export type CodexAccountsClientLike = {
|
|
14
15
|
listCodexAccounts: (workspaceId: string) => Promise<CodexAccountsResponse>;
|
|
16
|
+
/** Required for session-scoped use; never fall back to another pool. */
|
|
17
|
+
listSessionCodexAccounts?: (workspaceId: string, sessionId: string) => Promise<SessionCodexAccountsResponse>;
|
|
15
18
|
getSession?: (workspaceId: string, sessionId: string) => Promise<{
|
|
16
19
|
codexPinnedCredentialId?: string | null;
|
|
17
20
|
codexLastCredentialId?: string | null;
|
|
@@ -38,7 +41,7 @@ export type UseCodexAccountsOptions = ClientOverride & SessionEventFeedOptions &
|
|
|
38
41
|
};
|
|
39
42
|
export type UseCodexAccountsResult = {
|
|
40
43
|
accounts: CodexAccount[];
|
|
41
|
-
/** The
|
|
44
|
+
/** The ACTIVE account for the retry pool, or current workspace pool for new work. */
|
|
42
45
|
activeAccountId: string | null;
|
|
43
46
|
/** The session's PINNED account (null ⇒ following workspace active). */
|
|
44
47
|
pinnedAccountId: string | null;
|
|
@@ -48,11 +51,14 @@ export type UseCodexAccountsResult = {
|
|
|
48
51
|
credentialId: string | null;
|
|
49
52
|
waiting: boolean;
|
|
50
53
|
} | null;
|
|
54
|
+
/** The accepted account can differ from the choices for the next turn. */
|
|
55
|
+
currentAccount: CodexAccount | null;
|
|
51
56
|
switchAppliedTo: "waiting_turn" | "next_turn" | null;
|
|
52
57
|
/** The account the session's last turn ACTUALLY ran on (the "Running on:" source). */
|
|
53
58
|
lastAccountId: string | null;
|
|
54
59
|
settings: CodexRotationSettings;
|
|
55
60
|
loading: boolean;
|
|
61
|
+
error: Error | null;
|
|
56
62
|
refresh: () => Promise<void>;
|
|
57
63
|
/**
|
|
58
64
|
* Trigger a LIVE batched /wham/usage refresh across all accounts, then re-read
|
|
@@ -70,8 +76,8 @@ export type UseCodexAccountsResult = {
|
|
|
70
76
|
mutationError: Error | null;
|
|
71
77
|
};
|
|
72
78
|
/**
|
|
73
|
-
* The workspace's Codex accounts
|
|
74
|
-
*
|
|
79
|
+
* The workspace's Codex accounts, or session-authorized retry/next-turn choices
|
|
80
|
+
* and accepted current account. Composed like
|
|
75
81
|
* `useMachines`: slow polling (the realtime work is done by the
|
|
76
82
|
* `codex.account.switched` event trigger) + a `pin` mutation.
|
|
77
83
|
* Dual-consumer safe via the structural `CodexAccountsClientLike` surface.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ConnectController } from "@opengeni/connect";
|
|
2
|
+
/** Internal consumers import the hook directly so setup surfaces stay lazy. */
|
|
3
|
+
export declare function useConnect(controller: ConnectController): {
|
|
4
|
+
attempt: import("@opengeni/connect").ConnectAttempt | null;
|
|
5
|
+
busy: boolean;
|
|
6
|
+
error: Error | null;
|
|
7
|
+
begin: (input: {
|
|
8
|
+
providerId: string;
|
|
9
|
+
ownership: import("@opengeni/connect").ConnectOwnership;
|
|
10
|
+
returnUrl: string;
|
|
11
|
+
idempotencyKey: string;
|
|
12
|
+
reconnectAccountId?: string;
|
|
13
|
+
installationTarget?: import("@opengeni/connect").ConnectInstallationTarget;
|
|
14
|
+
}) => Promise<import("@opengeni/connect").ConnectAttempt>;
|
|
15
|
+
recover: (attemptId: string) => Promise<import("@opengeni/connect").ConnectAttempt>;
|
|
16
|
+
refresh: () => Promise<import("@opengeni/connect").ConnectAttempt>;
|
|
17
|
+
waitForAction: (options?: {
|
|
18
|
+
timeoutMs?: number;
|
|
19
|
+
}) => Promise<import("@opengeni/connect").ConnectAttempt>;
|
|
20
|
+
advance: (action: import("@opengeni/connect").ConnectAdvance, idempotencyKey: string) => Promise<import("@opengeni/connect").ConnectAttempt>;
|
|
21
|
+
cancel: (idempotencyKey: string) => Promise<import("@opengeni/connect").ConnectAttempt>;
|
|
22
|
+
};
|
|
@@ -61,6 +61,11 @@ export type UseSessionEventsResult = {
|
|
|
61
61
|
* "Jump to latest" when the tip is not in memory (history view).
|
|
62
62
|
*/
|
|
63
63
|
jumpToLatest: () => Promise<void>;
|
|
64
|
+
/** Replace history with a bounded window containing this exact durable event. */
|
|
65
|
+
jumpToSequence: (sequence: number, options?: {
|
|
66
|
+
signal?: AbortSignal;
|
|
67
|
+
}) => Promise<boolean>;
|
|
68
|
+
loadingTarget: boolean;
|
|
64
69
|
error: Error | null;
|
|
65
70
|
};
|
|
66
71
|
export declare const SESSION_EVENT_BROWSER_MAX_BYTES: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionEvent, SessionMcpApprovalPolicy,
|
|
1
|
+
import type { SessionEvent, SessionMcpApprovalPolicy, SessionMcpApprovalPolicyTarget, UpdateSessionMcpApprovalPolicyResponse } from "@opengeni/sdk";
|
|
2
2
|
import { type EmbeddedSessionMcpApprovalPolicyClientOverride } from "../session-context.js";
|
|
3
3
|
import { type SessionEventFeedOptions } from "./internal.js";
|
|
4
4
|
export declare function isSessionMcpApprovalPolicyEvent(event: Pick<SessionEvent, "type" | "payload">, serverId?: string): boolean;
|
|
@@ -7,7 +7,7 @@ export type UseSessionMcpApprovalPolicyOptions = EmbeddedSessionMcpApprovalPolic
|
|
|
7
7
|
pollIntervalMs?: number | undefined;
|
|
8
8
|
};
|
|
9
9
|
export type UseSessionMcpApprovalPolicyResult = {
|
|
10
|
-
server:
|
|
10
|
+
server: SessionMcpApprovalPolicyTarget | null;
|
|
11
11
|
policy: SessionMcpApprovalPolicy | null;
|
|
12
12
|
loading: boolean;
|
|
13
13
|
error: Error | null;
|
|
@@ -8,6 +8,8 @@ export type UseWorkspaceSessionsOptions = ClientOverride & {
|
|
|
8
8
|
/** Return only the complete personal pinned projection. */
|
|
9
9
|
pinsOnly?: boolean | undefined;
|
|
10
10
|
archivedOnly?: boolean | undefined;
|
|
11
|
+
sortBy?: "updatedAt" | "createdAt" | "name" | undefined;
|
|
12
|
+
archiveStatus?: "active" | "archived" | "all" | undefined;
|
|
11
13
|
/** Refresh interval (ms) for fleet/manager views. Off by default. */
|
|
12
14
|
pollIntervalMs?: number | undefined;
|
|
13
15
|
enabled?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export { sessionAuthRecommendation } from "./session-auth-recommendation.js";
|
|
2
|
+
export { SessionConnectionRequest, type SessionConnectionRequestProps, } from "./components/session-connection-request.js";
|
|
3
|
+
export { SessionMcpCapabilityCard, McpConnectionCard, type McpConnectionCardProps, type SessionMcpCapabilityCardProps, } from "./components/session-mcp-capability-card.js";
|
|
4
|
+
export { SessionCapabilityFrame, type SessionCapabilityFrameProps, } from "./components/session-capability-frame.js";
|
|
5
|
+
export { attachSessionCapability, completeSessionCapabilityOAuth, } from "./session-capability-policy.js";
|
|
1
6
|
export { retainedImageId } from "./components/markdown.js";
|
|
2
7
|
export type { EmbeddedBrowserInteractionClientLike, EmbeddedComputerInteractionClientLike, EmbeddedFileAttachmentClientLike, EmbeddedGoalClientLike, EmbeddedHumanInputSessionClientLike, EmbeddedInteractionClientLike, EmbeddedSessionEventClientLike, EmbeddedSessionLineageClientLike, EmbeddedSessionMcpApprovalPolicyClientLike, EmbeddedSessionReadClientLike, EmbeddedSessionClientLike, SessionClientLike, } from "./client.js";
|
|
3
8
|
export { OpenGeniProvider } from "./provider.js";
|
|
@@ -57,8 +62,6 @@ export { useChannels } from "./hooks/use-channels.js";
|
|
|
57
62
|
export type { UseChannelsOptions, UseChannelsResult } from "./hooks/use-channels.js";
|
|
58
63
|
export { useRigs, useRig, useRigVersions, useRigChanges } from "./hooks/use-rigs.js";
|
|
59
64
|
export type { UseRigsOptions, UseRigsResult, UseRigOptions, UseRigResult, UseRigVersionsOptions, UseRigVersionsResult, UseRigChangesOptions, UseRigChangesResult, } from "./hooks/use-rigs.js";
|
|
60
|
-
export { usePacks } from "./hooks/use-packs.js";
|
|
61
|
-
export type { UsePacksOptions, UsePacksResult } from "./hooks/use-packs.js";
|
|
62
65
|
export { useWorkspaces } from "./hooks/use-workspaces.js";
|
|
63
66
|
export type { UseWorkspacesOptions, UseWorkspacesResult } from "./hooks/use-workspaces.js";
|
|
64
67
|
export { useBillingUsage } from "./hooks/use-billing-usage.js";
|
|
@@ -113,6 +116,7 @@ export type { ConfirmState, SlashCommandContext, SlashCommandHandlers, UseSlashC
|
|
|
113
116
|
export { CommandPalette } from "./components/command-palette.js";
|
|
114
117
|
export type { CommandPaletteProps } from "./components/command-palette.js";
|
|
115
118
|
export { ChatComposer } from "./components/chat-composer.js";
|
|
119
|
+
export { conversationTimeline } from "./conversation-timeline.js";
|
|
116
120
|
export { SessionConversation } from "./components/session-conversation.js";
|
|
117
121
|
export type { SessionConversationProps } from "./components/session-conversation.js";
|
|
118
122
|
export type { ChatComposerProps } from "./components/chat-composer.js";
|
|
@@ -131,6 +135,7 @@ export { MessageTimeline, TimelineRow } from "./components/message-timeline.js";
|
|
|
131
135
|
export { GeneratedVideoPlayer } from "./components/generated-video-player.js";
|
|
132
136
|
export type { GeneratedVideoPlayerProps } from "./components/generated-video-player.js";
|
|
133
137
|
export type { MessageTimelineProps } from "./components/message-timeline.js";
|
|
138
|
+
export type { TimelineSearchTarget } from "./components/timeline-search.js";
|
|
134
139
|
export { UserMessageBody, userMessageLikelyNeedsDisclosure } from "./components/user-message-body.js";
|
|
135
140
|
export type { UserMessageBodyProps, UserMessageDisclosureLabels, } from "./components/user-message-body.js";
|
|
136
141
|
export { Markdown, sandboxFileLocationFromHref, sandboxFilePathFromHref, } from "./components/markdown.js";
|
|
@@ -173,6 +178,7 @@ export { xtermThemeFromTokens } from "./lib/xterm-theme.js";
|
|
|
173
178
|
export { cn } from "./lib/cn.js";
|
|
174
179
|
export { CREDIT_EXHAUSTION_MESSAGE, formatBytes, formatClockTime, formatRelativeTime, humanizeFailureReason, presentFailure, isCreditExhaustion, stringifyPayload, truncate, tryParseJson, } from "./lib/format.js";
|
|
175
180
|
export { SessionCommandsPanel } from "./components/session-commands-panel.js";
|
|
181
|
+
export { SessionCommands } from "./components/session-commands.js";
|
|
176
182
|
export { KnowledgeActivityProvider } from "./timeline/knowledge-receipt.js";
|
|
177
183
|
export type { KnowledgeActivityActions } from "./timeline/knowledge-receipt.js";
|
|
178
184
|
export { StartupTimings } from "./timeline/startup-timings.js";
|