@opengeni/react 6.1.0-canary.4 → 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 +71 -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/capability-logo-fallback.d.ts +3 -0
- package/dist/{chunk-NOSYBS2D.js → chunk-2VHARTBL.js} +2 -1
- package/dist/chunk-5UONOQ3Y.js +635 -0
- package/dist/chunk-5UONOQ3Y.js.map +1 -0
- package/dist/{chunk-B7TTSUEW.js → chunk-AKOMC3VO.js} +3 -5
- package/dist/chunk-AKOMC3VO.js.map +1 -0
- package/dist/{chunk-GHSSI2BK.js → chunk-D5NOQPLR.js} +520 -421
- package/dist/chunk-D5NOQPLR.js.map +1 -0
- package/dist/{chunk-AWEBVNVX.js → chunk-D7GAPJ3V.js} +191 -31
- 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-KANFU34B.js → chunk-IYUPN32E.js} +6 -2
- package/dist/chunk-IYUPN32E.js.map +1 -0
- package/dist/{chunk-O53CQZ6T.js → chunk-JKLGJQO5.js} +167 -4
- package/dist/chunk-JKLGJQO5.js.map +1 -0
- package/dist/{chunk-ICA6R6TW.js → chunk-OWHPKAOV.js} +28 -20
- package/dist/chunk-OWHPKAOV.js.map +1 -0
- package/dist/{chunk-BC7BFCMN.js → chunk-UXE5SSNN.js} +7 -6
- 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/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 +2 -2
- 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 +7 -1
- package/dist/connect.d.ts +4 -21
- package/dist/connect.js +806 -329
- package/dist/connect.js.map +1 -1
- package/dist/connection-discovery.d.ts +12 -0
- package/dist/connection-logo.d.ts +2 -1
- 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/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/index.d.ts +8 -2
- package/dist/index.js +737 -767
- package/dist/index.js.map +1 -1
- package/dist/mcp-connection-status.d.ts +14 -0
- 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/{queue-surface-implementation-LK3S4BIW.js → queue-surface-implementation-3RIFK2BS.js} +4 -4
- 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 +10 -8
- package/dist/session.d.ts +1 -0
- package/dist/session.js +5 -3
- package/dist/timeline/compaction-copy.d.ts +10 -0
- 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-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 +62 -1
- package/src/components/message-timeline.tsx +104 -36
- 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/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 +60 -7
- package/src/connect-setup.tsx +8 -8
- package/src/connect.ts +7 -22
- package/src/connection-assets.d.ts +4 -0
- package/src/connection-discovery.tsx +235 -0
- package/src/connection-logo.tsx +4 -0
- 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/hooks/use-codex-accounts.ts +33 -14
- package/src/hooks/use-composer.ts +4 -11
- package/src/hooks/use-connect.ts +23 -0
- package/src/hooks/use-session-events.ts +107 -0
- package/src/hooks/use-session-mcp-approval-policy.ts +13 -5
- package/src/index.ts +22 -2
- package/src/mcp-connection-status.ts +35 -0
- 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/timeline/compaction-copy.ts +40 -0
- package/src/timeline/platform-activity-row.tsx +8 -3
- package/src/timeline/projection.ts +43 -1
- package/src/timeline/shared.tsx +6 -1
- package/src/timeline/startup-timings.tsx +1 -1
- package/src/timeline/turn-summary.tsx +14 -0
- package/src/timeline/types.ts +22 -2
- package/styles/compiled.css +261 -27
- package/styles/connect.css +34 -0
- package/styles/index.css +1 -0
- package/styles/session-capability.css +42 -0
- package/dist/chunk-AWEBVNVX.js.map +0 -1
- package/dist/chunk-B7TTSUEW.js.map +0 -1
- package/dist/chunk-BC7BFCMN.js.map +0 -1
- package/dist/chunk-GHSSI2BK.js.map +0 -1
- package/dist/chunk-HUIKIDM5.js.map +0 -1
- package/dist/chunk-ICA6R6TW.js.map +0 -1
- package/dist/chunk-KANFU34B.js.map +0 -1
- package/dist/chunk-O53CQZ6T.js.map +0 -1
- package/dist/chunk-PEI6RANI.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/{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/{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
package/README.md
CHANGED
|
@@ -88,6 +88,77 @@ and `ChatComposer` with the session hooks. These use the normal SDK through
|
|
|
88
88
|
your authenticated host routes. For custom or compatible frontends, the backend
|
|
89
89
|
`@opengeni/sdk/chat` adapters provide the `createChatHandler` protocol.
|
|
90
90
|
|
|
91
|
+
### Exact conversation search navigation
|
|
92
|
+
|
|
93
|
+
`useSessionEvents(sessionId).jumpToSequence(sequence)` replaces the current
|
|
94
|
+
window with at most two bounded cursor reads around an exact durable event.
|
|
95
|
+
It resolves `true` only when that event is retained, `false` for a missing or
|
|
96
|
+
superseded target, and rejects current request errors. `loadingTarget` exposes
|
|
97
|
+
the pending state. New targets supersede older targets/pages; session/client
|
|
98
|
+
changes fence stale results. Search enters history mode; use the existing
|
|
99
|
+
`loadOlder`, `loadNewer`, and `jumpToLatest` controls to navigate onward. It does
|
|
100
|
+
not download the intervening session history.
|
|
101
|
+
Pass `jumpToSequence(sequence, { signal })` to cancel one navigation: an
|
|
102
|
+
aborted signal fences the pending jump before its fetched window is applied
|
|
103
|
+
(the underlying reads may still complete), resolves `false`, and settles
|
|
104
|
+
`loadingTarget` without disturbing any newer navigation that superseded it.
|
|
105
|
+
|
|
106
|
+
Pass the selected hit to `MessageTimeline` independently of loading:
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
const history = useSessionEvents(sessionId);
|
|
110
|
+
const [target, setTarget] = useState<TimelineSearchTarget | null>(null);
|
|
111
|
+
|
|
112
|
+
function selectHit(hit: { sequence: number; eventId: string }, query: string, occurrence = 0) {
|
|
113
|
+
setTarget({ ...hit, query, occurrence });
|
|
114
|
+
void history.jumpToSequence(hit.sequence);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
<MessageTimeline events={history.events} items={history.timeline} searchTarget={target} />;
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The host owns search results, error handling, next/previous controls and query
|
|
121
|
+
state. `TimelineSearchTarget` is exported from the root and `session-ui` entry:
|
|
122
|
+
`{ sequence: number; eventId?: string; query: string; occurrence?: number; offset?: number }`.
|
|
123
|
+
Matching is literal, case-insensitive, non-overlapping; `occurrence` is zero-based
|
|
124
|
+
within the message, defaulting to zero. When the backend all-occurrence search
|
|
125
|
+
returns `messageMatchOffset`, pass it as `offset`: the zero-based UTF-16 position
|
|
126
|
+
of the match in the original message text. An explicit `offset` takes precedence
|
|
127
|
+
over `occurrence` and is validated against the query, so a stale offset simply
|
|
128
|
+
produces no highlight. `buildTimeline` supplies `sourceEvents`
|
|
129
|
+
identities so completed assistant events remain addressable when the renderer
|
|
130
|
+
keeps a first-delta ID. Hosts supplying their own items should preserve those
|
|
131
|
+
identities (or the canonical `annotationSource`).
|
|
132
|
+
|
|
133
|
+
The active message's group and long-user disclosure open persistently. Setting
|
|
134
|
+
`searchTarget={null}` removes the active highlight without collapsing content or
|
|
135
|
+
restoring a former scroll position. The package mounts its complete bounded
|
|
136
|
+
window. The default Markdown renderer shows a labeled, bounded **message source**
|
|
137
|
+
excerpt for the active match, including Markdown syntax and link destinations;
|
|
138
|
+
closing find removes the highlight but retains that excerpt and its layout.
|
|
139
|
+
An explicit **Show formatted message** action restores the full body; this can
|
|
140
|
+
expand a huge message, so it is never done automatically on closing Find.
|
|
141
|
+
Raw UTF-16 offsets are never applied
|
|
142
|
+
to rendered Markdown text. Custom hosts can use
|
|
143
|
+
`<Markdown searchTarget={searchTarget}>{text}</Markdown>` for the same behavior.
|
|
144
|
+
A custom virtualized renderer receives
|
|
145
|
+
`renderMessageText(text, item, { searchTarget })` and must materialize the exact
|
|
146
|
+
occurrence when that context is non-null. Existing two-argument renderers remain
|
|
147
|
+
compatible. If previous occurrences are omitted from the virtualized DOM, wrap
|
|
148
|
+
the materialized match in an element with `data-og-search-occurrence` (zero-based
|
|
149
|
+
index), `data-og-search-sequence` and `data-og-search-query`, each set from the
|
|
150
|
+
target; when the target carries an `offset`, set `data-og-search-offset` to it
|
|
151
|
+
alongside `data-og-search-occurrence` (which can be zero). This lets navigation
|
|
152
|
+
identify that exact occurrence without recounting an incomplete DOM. Keep the
|
|
153
|
+
materialized window when the context clears to
|
|
154
|
+
preserve position. Navigation waits for the mounted text and highlights the active
|
|
155
|
+
DOM range using the CSS Custom Highlight API, without rewriting React-owned
|
|
156
|
+
text. Explicit source-offset targets require this marker: matching characters
|
|
157
|
+
at the same rendered offset are not proof of source identity. A custom renderer
|
|
158
|
+
that omits source text or puts it in an opaque iframe must reveal that text
|
|
159
|
+
itself. Existing renderers without this mapping remain render-compatible but
|
|
160
|
+
cannot provide exact source-offset navigation.
|
|
161
|
+
|
|
91
162
|
## Editable Office artifacts
|
|
92
163
|
|
|
93
164
|
The optional artifact workbench is isolated from the ordinary session and
|
|
@@ -669,8 +740,6 @@ state remains application-owned; durable draft and session state remain in
|
|
|
669
740
|
reads and create/update/remove/set/delete operations. Dedicated permissioned
|
|
670
741
|
exact-value reveal is part of the held React/UI train rather than an
|
|
671
742
|
implicit field on ordinary reads.
|
|
672
|
-
- `usePacks()` — capability packs + installations with
|
|
673
|
-
register/enable/remove and `installationFor(packId)`.
|
|
674
743
|
- `useWorkspaces()` — the caller's workspaces with create/update (client-only;
|
|
675
744
|
not bound to the provider's workspace).
|
|
676
745
|
- `useBillingUsage({ accountId?, workspaceId? })` — credit balance + recent
|
package/dist/artifacts.js
CHANGED
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
PresentationEditor,
|
|
5
5
|
PresentationProjectionArtifactSurface,
|
|
6
6
|
PresentationProjectionEditor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VR4Z73EU.js";
|
|
8
8
|
import {
|
|
9
9
|
DocumentArtifactSurface,
|
|
10
10
|
DocumentEditor,
|
|
11
11
|
DocumentProjectionArtifactSurface,
|
|
12
12
|
DocumentProjectionEditor,
|
|
13
13
|
EditableDocumentArtifactSurface
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XMXRI5JK.js";
|
|
15
15
|
import {
|
|
16
16
|
PUBLISHED_HTML_ARTIFACT_IFRAME_SANDBOX,
|
|
17
17
|
PublishedHtmlArtifactFrame,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
SpreadsheetArtifactSurface,
|
|
29
29
|
SpreadsheetGrid,
|
|
30
30
|
SpreadsheetProjectionGrid
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OWHPKAOV.js";
|
|
32
32
|
import {
|
|
33
33
|
ArtifactSurface,
|
|
34
34
|
EditableArtifactMessage
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CapabilityCatalogItem } from "@opengeni/sdk";
|
|
2
|
+
/** Passive catalogue identity, shared by embedded and console surfaces. */
|
|
3
|
+
export declare function capabilityLogoFallback(item: Pick<CapabilityCatalogItem, "id"> & Partial<Pick<CapabilityCatalogItem, "metadata" | "mcpUrl">>): string | null;
|
|
@@ -198,6 +198,7 @@ export {
|
|
|
198
198
|
occurrenceOffsets,
|
|
199
199
|
matchingQuoteInSource,
|
|
200
200
|
annotatableText,
|
|
201
|
+
rangeFromOffsets,
|
|
201
202
|
buildQuoteRange,
|
|
202
203
|
quoteOccurrenceIndex,
|
|
203
204
|
clipRangeToSource,
|
|
@@ -205,4 +206,4 @@ export {
|
|
|
205
206
|
resolveAnnotationRevealRoot,
|
|
206
207
|
revealLoadedAnnotationSource
|
|
207
208
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
209
|
+
//# sourceMappingURL=chunk-2VHARTBL.js.map
|