@flamingo-stack/openframe-frontend-core 0.0.293 → 0.0.294
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/{chunk-JSOMFVEV.cjs → chunk-6LUVYHKD.cjs} +25 -25
- package/dist/{chunk-JSOMFVEV.cjs.map → chunk-6LUVYHKD.cjs.map} +1 -1
- package/dist/{chunk-BRNHX6C6.js → chunk-6SG25O2N.js} +2 -2
- package/dist/{chunk-VTY7S2QG.cjs → chunk-73QT66LJ.cjs} +5 -5
- package/dist/{chunk-VTY7S2QG.cjs.map → chunk-73QT66LJ.cjs.map} +1 -1
- package/dist/{chunk-X3TSMCKX.cjs → chunk-AFKRDSRS.cjs} +4 -4
- package/dist/{chunk-X3TSMCKX.cjs.map → chunk-AFKRDSRS.cjs.map} +1 -1
- package/dist/{chunk-6G2INVGG.cjs → chunk-B4T3RTFX.cjs} +3 -3
- package/dist/{chunk-6G2INVGG.cjs.map → chunk-B4T3RTFX.cjs.map} +1 -1
- package/dist/{chunk-TYMUKFP2.cjs → chunk-CLWQ7MHW.cjs} +23 -23
- package/dist/{chunk-TYMUKFP2.cjs.map → chunk-CLWQ7MHW.cjs.map} +1 -1
- package/dist/{chunk-YICTMMXP.js → chunk-DEBURY5R.js} +2 -2
- package/dist/{chunk-FJDPUPXC.js → chunk-E24HKKIE.js} +2 -2
- package/dist/{chunk-2U2M2TG2.js → chunk-QFG4G62D.js} +2 -2
- package/dist/{chunk-SOJCR63T.js → chunk-RT6DJB3C.js} +2 -2
- package/dist/{chunk-RJL6PIOK.cjs → chunk-V6YZGLHZ.cjs} +2 -8
- package/dist/chunk-V6YZGLHZ.cjs.map +1 -0
- package/dist/{chunk-DOMJSNXW.js → chunk-ZYZWD7LS.js} +2 -8
- package/dist/{chunk-DOMJSNXW.js.map → chunk-ZYZWD7LS.js.map} +1 -1
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +0 -5
- package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/types/api.types.d.ts +0 -6
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +46 -46
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +45 -45
- package/dist/components/tickets/index.js +3 -3
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/hooks/use-nats-chat-adapter.ts +0 -8
- package/src/components/chat/hooks/use-realtime-chunk-processor.ts +1 -12
- package/src/components/chat/types/api.types.ts +0 -6
- package/dist/chunk-RJL6PIOK.cjs.map +0 -1
- /package/dist/{chunk-BRNHX6C6.js.map → chunk-6SG25O2N.js.map} +0 -0
- /package/dist/{chunk-YICTMMXP.js.map → chunk-DEBURY5R.js.map} +0 -0
- /package/dist/{chunk-FJDPUPXC.js.map → chunk-E24HKKIE.js.map} +0 -0
- /package/dist/{chunk-2U2M2TG2.js.map → chunk-QFG4G62D.js.map} +0 -0
- /package/dist/{chunk-SOJCR63T.js.map → chunk-RT6DJB3C.js.map} +0 -0
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
MessageSegmentAccumulator,
|
|
12
12
|
createMessageSegmentAccumulator,
|
|
13
13
|
} from '../utils/message-segment-accumulator'
|
|
14
|
-
import { MESSAGE_TYPE } from '../types'
|
|
15
14
|
import type { UseRealtimeChunkProcessorReturn, UseRealtimeChunkProcessorOptions, ChatApprovalStatus, PendingToolCallData, MessageSegment, SegmentsUpdateMetadata } from '../types'
|
|
16
15
|
import { getCommandText } from '../utils/tool-call-helpers'
|
|
17
16
|
|
|
@@ -31,7 +30,6 @@ export function useRealtimeChunkProcessor(
|
|
|
31
30
|
displayApprovalTypes = ['CLIENT'],
|
|
32
31
|
approvalStatuses = {},
|
|
33
32
|
initialState,
|
|
34
|
-
enableThinking = false,
|
|
35
33
|
// Owned by the consumer (e.g. oss-tenant chat client / openframe-frontend
|
|
36
34
|
// tickets view). Default ON so consumers that haven't wired the flag yet
|
|
37
35
|
// get the new batch UI; pass `false` explicitly to fall back to legacy.
|
|
@@ -93,15 +91,6 @@ export function useRealtimeChunkProcessor(
|
|
|
93
91
|
|
|
94
92
|
const processChunk = useCallback(
|
|
95
93
|
(chunk: unknown) => {
|
|
96
|
-
if (
|
|
97
|
-
!enableThinking &&
|
|
98
|
-
chunk &&
|
|
99
|
-
typeof chunk === 'object' &&
|
|
100
|
-
(chunk as { type?: string }).type === MESSAGE_TYPE.THINKING
|
|
101
|
-
) {
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
|
|
105
94
|
const action = parseChunkToAction(chunk)
|
|
106
95
|
if (!action) return
|
|
107
96
|
|
|
@@ -396,7 +385,7 @@ export function useRealtimeChunkProcessor(
|
|
|
396
385
|
break
|
|
397
386
|
}
|
|
398
387
|
},
|
|
399
|
-
[callbacks, displayApprovalTypes, approvalStatuses, initialState
|
|
388
|
+
[callbacks, displayApprovalTypes, approvalStatuses, initialState]
|
|
400
389
|
)
|
|
401
390
|
|
|
402
391
|
const getSegments = useCallback(() => {
|
|
@@ -232,12 +232,6 @@ export interface UseRealtimeChunkProcessorOptions {
|
|
|
232
232
|
{ command: string; explanation?: string; approvalType: string; toolCalls?: PendingToolCallData[] }
|
|
233
233
|
>
|
|
234
234
|
}
|
|
235
|
-
/**
|
|
236
|
-
* When true, THINKING chunks are processed into thinking segments. When false
|
|
237
|
-
* (default), they are dropped before parsing — they never enter the
|
|
238
|
-
* accumulator or store.
|
|
239
|
-
*/
|
|
240
|
-
enableThinking?: boolean
|
|
241
235
|
/**
|
|
242
236
|
* Consumer-owned (e.g. set in `openframe-oss-tenant` chat client via the
|
|
243
237
|
* `'batch-approvals'` feature flag and forwarded here). The lib does NOT
|