@opengeni/react 1.2.1-canary.37222177070001 → 1.3.0
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 +31 -0
- package/dist/{chunk-4OTO7KBK.js → chunk-PGSX7UCP.js} +2062 -1489
- package/dist/chunk-PGSX7UCP.js.map +1 -0
- package/dist/{chunk-X34BSY2R.js → chunk-WWEUO2PL.js} +60 -60
- package/dist/chunk-WWEUO2PL.js.map +1 -0
- package/dist/components/approval-surface.d.ts +11 -13
- package/dist/components/open-geni-chat.d.ts +21 -6
- package/dist/components/session-conversation.d.ts +18 -1
- package/dist/components/session-proxy-scope.d.ts +16 -2
- package/dist/components/tool-action-review.d.ts +20 -0
- package/dist/components/tool-review-history.d.ts +21 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/session-ui.d.ts +4 -1
- package/dist/session-ui.js +8 -2
- package/dist/session-ui.js.map +1 -1
- package/dist/session.js +1 -1
- package/package.json +3 -3
- package/src/components/approval-surface.tsx +263 -245
- package/src/components/open-geni-chat.tsx +197 -64
- package/src/components/session-conversation.tsx +26 -7
- package/src/components/session-proxy-scope.tsx +47 -7
- package/src/components/tool-action-review.tsx +386 -0
- package/src/components/tool-review-history.tsx +113 -0
- package/src/index.ts +9 -1
- package/src/session-ui.ts +9 -1
- package/src/timeline/tool-renderers.tsx +7 -0
- package/styles/compiled.css +33 -13
- package/dist/chunk-4OTO7KBK.js.map +0 -1
- package/dist/chunk-X34BSY2R.js.map +0 -1
package/dist/session-ui.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { HumanInputForm } from "./components/human-input-form.js";
|
|
|
2
2
|
export type { HumanInputAnswerDraft, HumanInputFormMessages, HumanInputFormProps, } from "./components/human-input-form.js";
|
|
3
3
|
export { HumanInputSurface } from "./components/human-input-surface.js";
|
|
4
4
|
export { ApprovalSurface } from "./components/approval-surface.js";
|
|
5
|
+
export { ToolActionReviewCard, ToolActionReviewDetails } from "./components/tool-action-review.js";
|
|
6
|
+
export type { ToolReviewDetailsLoader } from "./components/tool-action-review.js";
|
|
5
7
|
export type { ApprovalSurfaceProps, ApprovalSurfaceMessages } from "./components/approval-surface.js";
|
|
6
8
|
export type { HumanInputSurfaceProps } from "./components/human-input-surface.js";
|
|
7
9
|
export { MessageTimeline, TimelineRow } from "./components/message-timeline.js";
|
|
@@ -28,7 +30,7 @@ export { SessionConversation } from "./components/session-conversation.js";
|
|
|
28
30
|
export { SessionList } from "./components/session-list.js";
|
|
29
31
|
export type { SessionListLabels, SessionListProps } from "./components/session-list.js";
|
|
30
32
|
export { OpenGeniChat } from "./components/open-geni-chat.js";
|
|
31
|
-
export type { OpenGeniChatLabels, OpenGeniChatProps } from "./components/open-geni-chat.js";
|
|
33
|
+
export type { OpenGeniChatCreateOptions, OpenGeniChatLabels, OpenGeniChatProps, } from "./components/open-geni-chat.js";
|
|
32
34
|
export type { SessionConversationLabels, SessionConversationProps, } from "./components/session-conversation.js";
|
|
33
35
|
export type { QueueSurfaceProps } from "./components/queue-surface.js";
|
|
34
36
|
export { SessionChrome, sessionChromeGoalPillExplanation, sessionChromeGoalPillLabel, sessionChromeGoalPillState, } from "./components/session-chrome.js";
|
|
@@ -40,3 +42,4 @@ export type { KnowledgeActivityActions } from "./timeline/knowledge-receipt.js";
|
|
|
40
42
|
export { StartupTimings } from "./timeline/startup-timings.js";
|
|
41
43
|
export { useStartupDetails, setStartupDetails } from "./timeline/startup-preference.js";
|
|
42
44
|
export type { GenieLoadingOptions } from "./timeline/genie-loading.js";
|
|
45
|
+
export { ToolReviewHistoryProvider } from "./components/tool-review-history.js";
|
package/dist/session-ui.js
CHANGED
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
SessionList,
|
|
15
15
|
StartupTimings,
|
|
16
16
|
TimelineRow,
|
|
17
|
+
ToolActionReviewCard,
|
|
18
|
+
ToolActionReviewDetails,
|
|
19
|
+
ToolReviewHistoryProvider,
|
|
17
20
|
UserMessageBody,
|
|
18
21
|
createDefaultToolRegistry,
|
|
19
22
|
createToolRegistry,
|
|
@@ -24,7 +27,7 @@ import {
|
|
|
24
27
|
setStartupDetails,
|
|
25
28
|
useStartupDetails,
|
|
26
29
|
userMessageLikelyNeedsDisclosure
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PGSX7UCP.js";
|
|
28
31
|
import "./chunk-UK4TINKT.js";
|
|
29
32
|
import "./chunk-J2QWVSQY.js";
|
|
30
33
|
import "./chunk-C5X5AJXK.js";
|
|
@@ -36,7 +39,7 @@ import {
|
|
|
36
39
|
} from "./chunk-5CVXZA3Y.js";
|
|
37
40
|
import {
|
|
38
41
|
createOlderHistoryLoadReceipt
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WWEUO2PL.js";
|
|
40
43
|
import "./chunk-RC6BZ44Q.js";
|
|
41
44
|
import "./chunk-ERGYJIBB.js";
|
|
42
45
|
import {
|
|
@@ -90,6 +93,9 @@ export {
|
|
|
90
93
|
SessionList,
|
|
91
94
|
StartupTimings,
|
|
92
95
|
TimelineRow,
|
|
96
|
+
ToolActionReviewCard,
|
|
97
|
+
ToolActionReviewDetails,
|
|
98
|
+
ToolReviewHistoryProvider,
|
|
93
99
|
UserMessageBody,
|
|
94
100
|
chainLinkResolvers,
|
|
95
101
|
createDefaultToolRegistry,
|
package/dist/session-ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/session-ui.ts"],"sourcesContent":["// @opengeni/react/session-ui — styled surfaces used by the session route.\n// Keep these separate from the hook-only session entry and the broad root barrel\n// so session hosts do not pay for unrelated React surfaces.\nexport { HumanInputForm } from \"./components/human-input-form\";\nexport type {\n HumanInputAnswerDraft,\n HumanInputFormMessages,\n HumanInputFormProps,\n} from \"./components/human-input-form\";\nexport { HumanInputSurface } from \"./components/human-input-surface\";\nexport { ApprovalSurface } from \"./components/approval-surface\";\nexport type { ApprovalSurfaceProps, ApprovalSurfaceMessages } from \"./components/approval-surface\";\nexport type { HumanInputSurfaceProps } from \"./components/human-input-surface\";\nexport { MessageTimeline, TimelineRow } from \"./components/message-timeline\";\nexport type { MessageTimelineProps } from \"./components/message-timeline\";\nexport type { RenderAllowanceExhausted } from \"./timeline/allowance-exhausted-row\";\nexport type { AllowanceLabels, AllowanceScope } from \"./usage/allowance-copy\";\nexport {\n OpenGeniLinkProvider,\n chainLinkResolvers,\n sessionLinkResolver,\n useOpenGeniLinkResolver,\n viewerLinkResolver,\n} from \"./components/open-geni-links\";\nexport type {\n OpenGeniLinkResolution,\n OpenGeniLinkResolver,\n OpenGeniLinkTarget,\n OpenGeniViewerTarget,\n} from \"./components/open-geni-links\";\nexport { parseOpenGeniLink } from \"@opengeni/sdk\";\nexport {\n ArtifactLabelsProvider,\n DEFAULT_ARTIFACT_LABELS,\n type ArtifactLabels,\n} from \"./components/artifacts/artifact-chrome\";\nexport type { TimelineSearchTarget } from \"./components/timeline-search\";\nexport { createOlderHistoryLoadReceipt } from \"./older-history\";\nexport type { OlderHistoryLoader, OlderHistoryLoadReceipt } from \"./older-history\";\nexport { UserMessageBody, userMessageLikelyNeedsDisclosure } from \"./components/user-message-body\";\nexport type {\n UserMessageBodyProps,\n UserMessageDisclosureLabels,\n} from \"./components/user-message-body\";\nexport { BUILT_IN_TURN_SUMMARY_FACET_IDS } from \"./timeline/turn-summary\";\nexport type {\n BuiltInTurnSummaryFacetId,\n TurnSummaryContext,\n TurnSummaryFacet,\n TurnSummaryFacetConfiguration,\n TurnSummaryFacetResult,\n TurnSummaryOptions,\n} from \"./timeline/turn-summary\";\nexport { QueueSurface } from \"./components/queue-surface\";\n// The provider too, so a host needs only this entry (the root also exports the\n// workbench, whose editors, terminal and desktop are optional peers).\nexport { OpenGeniProvider } from \"./provider\";\nexport type { OpenGeniProviderProps, ErrorMessageFormatter } from \"./provider\";\n// The tool-renderer registry, so custom tool renderers need no root import.\nexport { createDefaultToolRegistry, createToolRegistry, defaultToolRegistry } from \"./timeline\";\nexport type {\n CreateToolRegistryOptions,\n ToolRegistry,\n ToolRegistryEntry,\n ToolRenderer,\n ToolRendererProps,\n} from \"./timeline\";\nexport { SessionConversation } from \"./components/session-conversation\";\nexport { SessionList } from \"./components/session-list\";\nexport type { SessionListLabels, SessionListProps } from \"./components/session-list\";\nexport { OpenGeniChat } from \"./components/open-geni-chat\";\nexport type {
|
|
1
|
+
{"version":3,"sources":["../src/session-ui.ts"],"sourcesContent":["// @opengeni/react/session-ui — styled surfaces used by the session route.\n// Keep these separate from the hook-only session entry and the broad root barrel\n// so session hosts do not pay for unrelated React surfaces.\nexport { HumanInputForm } from \"./components/human-input-form\";\nexport type {\n HumanInputAnswerDraft,\n HumanInputFormMessages,\n HumanInputFormProps,\n} from \"./components/human-input-form\";\nexport { HumanInputSurface } from \"./components/human-input-surface\";\nexport { ApprovalSurface } from \"./components/approval-surface\";\nexport { ToolActionReviewCard, ToolActionReviewDetails } from \"./components/tool-action-review\";\nexport type { ToolReviewDetailsLoader } from \"./components/tool-action-review\";\nexport type { ApprovalSurfaceProps, ApprovalSurfaceMessages } from \"./components/approval-surface\";\nexport type { HumanInputSurfaceProps } from \"./components/human-input-surface\";\nexport { MessageTimeline, TimelineRow } from \"./components/message-timeline\";\nexport type { MessageTimelineProps } from \"./components/message-timeline\";\nexport type { RenderAllowanceExhausted } from \"./timeline/allowance-exhausted-row\";\nexport type { AllowanceLabels, AllowanceScope } from \"./usage/allowance-copy\";\nexport {\n OpenGeniLinkProvider,\n chainLinkResolvers,\n sessionLinkResolver,\n useOpenGeniLinkResolver,\n viewerLinkResolver,\n} from \"./components/open-geni-links\";\nexport type {\n OpenGeniLinkResolution,\n OpenGeniLinkResolver,\n OpenGeniLinkTarget,\n OpenGeniViewerTarget,\n} from \"./components/open-geni-links\";\nexport { parseOpenGeniLink } from \"@opengeni/sdk\";\nexport {\n ArtifactLabelsProvider,\n DEFAULT_ARTIFACT_LABELS,\n type ArtifactLabels,\n} from \"./components/artifacts/artifact-chrome\";\nexport type { TimelineSearchTarget } from \"./components/timeline-search\";\nexport { createOlderHistoryLoadReceipt } from \"./older-history\";\nexport type { OlderHistoryLoader, OlderHistoryLoadReceipt } from \"./older-history\";\nexport { UserMessageBody, userMessageLikelyNeedsDisclosure } from \"./components/user-message-body\";\nexport type {\n UserMessageBodyProps,\n UserMessageDisclosureLabels,\n} from \"./components/user-message-body\";\nexport { BUILT_IN_TURN_SUMMARY_FACET_IDS } from \"./timeline/turn-summary\";\nexport type {\n BuiltInTurnSummaryFacetId,\n TurnSummaryContext,\n TurnSummaryFacet,\n TurnSummaryFacetConfiguration,\n TurnSummaryFacetResult,\n TurnSummaryOptions,\n} from \"./timeline/turn-summary\";\nexport { QueueSurface } from \"./components/queue-surface\";\n// The provider too, so a host needs only this entry (the root also exports the\n// workbench, whose editors, terminal and desktop are optional peers).\nexport { OpenGeniProvider } from \"./provider\";\nexport type { OpenGeniProviderProps, ErrorMessageFormatter } from \"./provider\";\n// The tool-renderer registry, so custom tool renderers need no root import.\nexport { createDefaultToolRegistry, createToolRegistry, defaultToolRegistry } from \"./timeline\";\nexport type {\n CreateToolRegistryOptions,\n ToolRegistry,\n ToolRegistryEntry,\n ToolRenderer,\n ToolRendererProps,\n} from \"./timeline\";\nexport { SessionConversation } from \"./components/session-conversation\";\nexport { SessionList } from \"./components/session-list\";\nexport type { SessionListLabels, SessionListProps } from \"./components/session-list\";\nexport { OpenGeniChat } from \"./components/open-geni-chat\";\nexport type {\n OpenGeniChatCreateOptions,\n OpenGeniChatLabels,\n OpenGeniChatProps,\n} from \"./components/open-geni-chat\";\nexport type {\n SessionConversationLabels,\n SessionConversationProps,\n} from \"./components/session-conversation\";\nexport type { QueueSurfaceProps } from \"./components/queue-surface\";\nexport {\n SessionChrome,\n sessionChromeGoalPillExplanation,\n sessionChromeGoalPillLabel,\n sessionChromeGoalPillState,\n} from \"./components/session-chrome\";\nexport type {\n SessionChromeAgentsSignal,\n SessionChromeProps,\n SessionChromeSignalId,\n SessionChromeSignalTone,\n} from \"./components/session-chrome\";\nexport { SessionCommandsPanel } from \"./components/session-commands-panel\";\nexport { SessionCommands } from \"./components/session-commands\";\n\nexport { KnowledgeActivityProvider } from \"./timeline/knowledge-receipt\";\nexport type { KnowledgeActivityActions } from \"./timeline/knowledge-receipt\";\nexport { StartupTimings } from \"./timeline/startup-timings\";\nexport { useStartupDetails, setStartupDetails } from \"./timeline/startup-preference\";\nexport type { GenieLoadingOptions } from \"./timeline/genie-loading\";\n\nexport { ToolReviewHistoryProvider } from \"./components/tool-review-history\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAS,yBAAyB;","names":[]}
|
package/dist/session.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "React hooks and styled components for OpenGeni: live session streaming, chat composer, message timeline, session status, and fleet views — token-themed (CSS variables), dark-first, built on Tailwind v4 + Radix + Motion.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
"@dnd-kit/utilities": "3.2.2",
|
|
154
154
|
"@fontsource-variable/noto-sans-arabic": "5.2.10",
|
|
155
155
|
"@fontsource-variable/noto-sans-jp": "5.2.10",
|
|
156
|
-
"@opengeni/connect": "1.
|
|
157
|
-
"@opengeni/sdk": "1.
|
|
156
|
+
"@opengeni/connect": "1.3.0",
|
|
157
|
+
"@opengeni/sdk": "1.3.0",
|
|
158
158
|
"clsx": "^2.1.1",
|
|
159
159
|
"dequal": "2.0.3",
|
|
160
160
|
"lucide-react": "^1.8.0",
|