@opengeni/react-native 5.5.2-canary.40953009950001 → 5.5.2-canary.40973241992001
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/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/timeline/markdown-table-layout.d.ts +4 -4
- package/dist/timeline/markdown.js +28 -28
- package/dist/timeline/markdown.js.map +1 -1
- package/package.json +5 -5
- package/src/timeline/markdown-table-layout.ts +20 -7
- package/src/timeline/markdown.tsx +26 -26
- package/src/use-native-session.ts +13 -3
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createContext, useState, useRef, useLayoutEffect, useEffect, useCallbac
|
|
|
9
9
|
import { useOpenGeniText, SingleSendWording } from '@opengeni/react/messages';
|
|
10
10
|
import { errorMessage } from '@opengeni/contracts/values';
|
|
11
11
|
import { useSessionEvents, useSession, useTurnQueue, useComposer, useSessionControl, useHumanInputRequests, useGoal, useSessionLineage, projectPendingApprovals, groupTimeline, useSessionMcpApprovalPolicy, useSessionReadAcknowledgement } from '@opengeni/react/session';
|
|
12
|
-
import { sessionAdmissionBlocked, isAgentWorkHumanInput } from '@opengeni/react/timeline-model';
|
|
12
|
+
import { promptSendDestination, sessionAdmissionBlocked, isAgentWorkHumanInput } from '@opengeni/react/timeline-model';
|
|
13
13
|
import '@opengeni/react/session-attention-model';
|
|
14
14
|
import { StyleSheet, Platform, KeyboardAvoidingView, View, FlatList, ActivityIndicator, Text, ScrollView, Pressable, TextInput, Modal, Linking, Alert } from 'react-native';
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -370,8 +370,14 @@ function useOpenGeniNativeSession(input) {
|
|
|
370
370
|
events: events.events,
|
|
371
371
|
effectiveControl: queue.effectiveControl,
|
|
372
372
|
// As on web: while a turn runs or prompts wait, a Send shows in the queue
|
|
373
|
-
// at once instead of flashing as a chat bubble before it is queued.
|
|
374
|
-
|
|
373
|
+
// at once instead of flashing as a chat bubble before it is queued. A turn
|
|
374
|
+
// parked on a usage limit is replaced by the Send, which starts at once.
|
|
375
|
+
sendDestination: () => promptSendDestination({
|
|
376
|
+
status: session.session?.status,
|
|
377
|
+
activeTurnId: session.session?.activeTurnId,
|
|
378
|
+
queuedPrompts: queue.queue.length,
|
|
379
|
+
admissionBlock: session.session?.admissionBlock
|
|
380
|
+
}),
|
|
375
381
|
busySend: input.busySend,
|
|
376
382
|
offerQueue: input.offerQueue,
|
|
377
383
|
sendExtras: () => ({ resources: attachments.readyResources }),
|