@flamingo-stack/openframe-frontend-core 0.0.691 → 0.0.692-snapshot.20261001220222
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/chat-protocol/events.d.ts +3 -0
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/frames.d.ts +6 -0
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +26 -1
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +23 -2
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
- package/dist/chat-protocol/progress.d.ts +35 -0
- package/dist/chat-protocol/progress.d.ts.map +1 -0
- package/dist/{chunk-Y3Q76RAA.cjs → chunk-3HGVRJTC.cjs} +33 -33
- package/dist/{chunk-Y3Q76RAA.cjs.map → chunk-3HGVRJTC.cjs.map} +1 -1
- package/dist/{chunk-WZYIAKIH.cjs → chunk-4KM5MVBM.cjs} +3 -3
- package/dist/{chunk-WZYIAKIH.cjs.map → chunk-4KM5MVBM.cjs.map} +1 -1
- package/dist/{chunk-KMW2PXBU.js → chunk-5CZZ4JLE.js} +751 -213
- package/dist/chunk-5CZZ4JLE.js.map +1 -0
- package/dist/{chunk-JSG7WZKV.js → chunk-5NUOZZRR.js} +2 -2
- package/dist/{chunk-N4S7RBUM.cjs → chunk-6H5PPQWP.cjs} +3 -3
- package/dist/{chunk-N4S7RBUM.cjs.map → chunk-6H5PPQWP.cjs.map} +1 -1
- package/dist/{chunk-4N2JOPAQ.cjs → chunk-7BC3NJAV.cjs} +15 -15
- package/dist/{chunk-4N2JOPAQ.cjs.map → chunk-7BC3NJAV.cjs.map} +1 -1
- package/dist/{chunk-Y3BC7TOJ.cjs → chunk-BDGNKIHU.cjs} +22 -22
- package/dist/{chunk-Y3BC7TOJ.cjs.map → chunk-BDGNKIHU.cjs.map} +1 -1
- package/dist/{chunk-Z5FHXCXF.js → chunk-BFV4L3D7.js} +5 -5
- package/dist/{chunk-GZRU2A4L.cjs → chunk-CMA74BXW.cjs} +40 -3
- package/dist/chunk-CMA74BXW.cjs.map +1 -0
- package/dist/{chunk-5N2ZSB42.cjs → chunk-DDCQG3WO.cjs} +10 -10
- package/dist/{chunk-5N2ZSB42.cjs.map → chunk-DDCQG3WO.cjs.map} +1 -1
- package/dist/{chunk-BXE2RZEV.cjs → chunk-DVEFZ5DU.cjs} +22 -22
- package/dist/{chunk-BXE2RZEV.cjs.map → chunk-DVEFZ5DU.cjs.map} +1 -1
- package/dist/{chunk-CMYDGVTZ.js → chunk-EZFSUHNP.js} +2 -2
- package/dist/{chunk-MJI5GVT7.js → chunk-F2ZBNRTF.js} +5 -5
- package/dist/{chunk-CWXRZVDI.cjs → chunk-FMPH6G3E.cjs} +926 -388
- package/dist/chunk-FMPH6G3E.cjs.map +1 -0
- package/dist/{chunk-4HZXOQRM.js → chunk-GVMVPMDE.js} +3 -3
- package/dist/{chunk-SA4KQCNB.cjs → chunk-HRGG56GC.cjs} +45 -45
- package/dist/{chunk-SA4KQCNB.cjs.map → chunk-HRGG56GC.cjs.map} +1 -1
- package/dist/{chunk-DZMDG7PC.js → chunk-I72FRMF6.js} +2 -2
- package/dist/{chunk-DC3G4XGP.js → chunk-IC2SDW6U.js} +4 -4
- package/dist/{chunk-Y7ZEVTLC.js → chunk-ID5QPM3X.js} +40 -3
- package/dist/chunk-ID5QPM3X.js.map +1 -0
- package/dist/{chunk-TSNGVWQO.js → chunk-INVP4WLX.js} +5 -5
- package/dist/{chunk-H54RDLVC.cjs → chunk-JAQK3GQJ.cjs} +26 -26
- package/dist/{chunk-H54RDLVC.cjs.map → chunk-JAQK3GQJ.cjs.map} +1 -1
- package/dist/{chunk-Y7ZQZOE6.js → chunk-PPRD3PTW.js} +3 -3
- package/dist/{chunk-KVDLL4LU.js → chunk-QDH62H4N.js} +3 -3
- package/dist/{chunk-LCENRN2N.cjs → chunk-RKIMG67Q.cjs} +10 -10
- package/dist/{chunk-LCENRN2N.cjs.map → chunk-RKIMG67Q.cjs.map} +1 -1
- package/dist/{chunk-BXAGR3PO.cjs → chunk-S54QA2VE.cjs} +5 -5
- package/dist/{chunk-BXAGR3PO.cjs.map → chunk-S54QA2VE.cjs.map} +1 -1
- package/dist/{chunk-DDWLF2JV.cjs → chunk-SG57SBYG.cjs} +10 -10
- package/dist/{chunk-DDWLF2JV.cjs.map → chunk-SG57SBYG.cjs.map} +1 -1
- package/dist/{chunk-6Z26ZMR4.js → chunk-TFSRPBVT.js} +2 -2
- package/dist/{chunk-ESFPY5FF.cjs → chunk-UWJZRI5J.cjs} +71 -71
- package/dist/{chunk-ESFPY5FF.cjs.map → chunk-UWJZRI5J.cjs.map} +1 -1
- package/dist/{chunk-XBYF4SGD.js → chunk-WJAMBSMW.js} +3 -3
- package/dist/{chunk-ZLYLHP64.cjs → chunk-WSYCPIRG.cjs} +4 -4
- package/dist/{chunk-ZLYLHP64.cjs.map → chunk-WSYCPIRG.cjs.map} +1 -1
- package/dist/{chunk-FNMQ2J44.js → chunk-XI2BAIKJ.js} +3 -3
- package/dist/{chunk-7WYWPELF.js → chunk-XWAT6ZP5.js} +6 -6
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.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/stream/chat-dialog-store.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +4 -0
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +2 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +5 -0
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +35 -3
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +34 -2
- package/dist/components/features/remote-session/index.d.ts +13 -0
- package/dist/components/features/remote-session/index.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-access-request-card.d.ts +19 -0
- package/dist/components/features/remote-session/remote-access-request-card.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-block.d.ts +41 -0
- package/dist/components/features/remote-session/remote-session-block.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-chat-panel.d.ts +23 -0
- package/dist/components/features/remote-session/remote-session-chat-panel.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-dialog.d.ts +15 -0
- package/dist/components/features/remote-session/remote-session-dialog.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-overlay.d.ts +12 -0
- package/dist/components/features/remote-session/remote-session-overlay.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-session-parts.d.ts +34 -0
- package/dist/components/features/remote-session/remote-session-parts.d.ts.map +1 -0
- package/dist/components/features/remote-session/types.d.ts +33 -0
- package/dist/components/features/remote-session/types.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +73 -73
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +72 -40
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +45 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +25 -25
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/index.cjs +39 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chat-protocol/__tests__/progress.test.ts +39 -0
- package/src/chat-protocol/events.ts +3 -0
- package/src/chat-protocol/frames.ts +7 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/chat-protocol/leading-frames.ts +4 -1
- package/src/chat-protocol/progress.ts +55 -0
- package/src/components/chat/chat-message-list.tsx +10 -1
- package/src/components/chat/embeddable-chat.tsx +5 -0
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +2 -0
- package/src/components/chat/hooks/use-unified-chat.ts +1 -0
- package/src/components/chat/stream/__tests__/chat-stream-reducer-progress.test.ts +40 -0
- package/src/components/chat/stream/chat-dialog-store.ts +1 -0
- package/src/components/chat/stream/chat-stream-reducer.ts +13 -0
- package/src/components/chat/types/component.types.ts +2 -0
- package/src/components/chat/types/unified-chat-state.types.ts +6 -0
- package/src/components/features/__tests__/remote-session.test.tsx +97 -0
- package/src/components/features/index.ts +1 -0
- package/src/components/features/remote-session/index.ts +36 -0
- package/src/components/features/remote-session/remote-access-request-card.tsx +102 -0
- package/src/components/features/remote-session/remote-session-block.tsx +182 -0
- package/src/components/features/remote-session/remote-session-chat-panel.tsx +178 -0
- package/src/components/features/remote-session/remote-session-dialog.tsx +77 -0
- package/src/components/features/remote-session/remote-session-overlay.tsx +33 -0
- package/src/components/features/remote-session/remote-session-parts.tsx +138 -0
- package/src/components/features/remote-session/types.ts +41 -0
- package/src/stories/RemoteSessionAccessRequest.stories.tsx +71 -0
- package/src/stories/RemoteSessionBlock.stories.tsx +164 -0
- package/src/stories/RemoteSessionDialog.stories.tsx +49 -0
- package/src/stories/RemoteSessionIndicator.stories.tsx +44 -0
- package/dist/chunk-CWXRZVDI.cjs.map +0 -1
- package/dist/chunk-GZRU2A4L.cjs.map +0 -1
- package/dist/chunk-KMW2PXBU.js.map +0 -1
- package/dist/chunk-Y7ZEVTLC.js.map +0 -1
- /package/dist/{chunk-JSG7WZKV.js.map → chunk-5NUOZZRR.js.map} +0 -0
- /package/dist/{chunk-Z5FHXCXF.js.map → chunk-BFV4L3D7.js.map} +0 -0
- /package/dist/{chunk-CMYDGVTZ.js.map → chunk-EZFSUHNP.js.map} +0 -0
- /package/dist/{chunk-MJI5GVT7.js.map → chunk-F2ZBNRTF.js.map} +0 -0
- /package/dist/{chunk-4HZXOQRM.js.map → chunk-GVMVPMDE.js.map} +0 -0
- /package/dist/{chunk-DZMDG7PC.js.map → chunk-I72FRMF6.js.map} +0 -0
- /package/dist/{chunk-DC3G4XGP.js.map → chunk-IC2SDW6U.js.map} +0 -0
- /package/dist/{chunk-TSNGVWQO.js.map → chunk-INVP4WLX.js.map} +0 -0
- /package/dist/{chunk-Y7ZQZOE6.js.map → chunk-PPRD3PTW.js.map} +0 -0
- /package/dist/{chunk-KVDLL4LU.js.map → chunk-QDH62H4N.js.map} +0 -0
- /package/dist/{chunk-6Z26ZMR4.js.map → chunk-TFSRPBVT.js.map} +0 -0
- /package/dist/{chunk-XBYF4SGD.js.map → chunk-WJAMBSMW.js.map} +0 -0
- /package/dist/{chunk-FNMQ2J44.js.map → chunk-XI2BAIKJ.js.map} +0 -0
- /package/dist/{chunk-7WYWPELF.js.map → chunk-XWAT6ZP5.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chat-protocol/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chat-protocol/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGzD,cAAc,eAAe,CAAC"}
|
|
@@ -38,6 +38,26 @@ function errorDetailsMessage(details) {
|
|
|
38
38
|
}
|
|
39
39
|
var CHAT_OWNER_ADMIN = "ADMIN";
|
|
40
40
|
|
|
41
|
+
// src/chat-protocol/progress.ts
|
|
42
|
+
var CHAT_PROGRESS_STAGES = ["understanding", "searching", "searching_again", "reading"];
|
|
43
|
+
function isChatProgressStage(value) {
|
|
44
|
+
return typeof value === "string" && CHAT_PROGRESS_STAGES.includes(value);
|
|
45
|
+
}
|
|
46
|
+
function chatProgressOf(frame) {
|
|
47
|
+
if (!isChatProgressStage(frame.stage)) return null;
|
|
48
|
+
const count = typeof frame.count === "number" && Number.isFinite(frame.count) && frame.count > 0 ? Math.floor(frame.count) : void 0;
|
|
49
|
+
return count === void 0 ? { stage: frame.stage } : { stage: frame.stage, count };
|
|
50
|
+
}
|
|
51
|
+
var PROGRESS_LABEL = {
|
|
52
|
+
understanding: () => "Understanding your question",
|
|
53
|
+
searching: (count) => count ? `Searching ${count} ${count === 1 ? "source" : "sources"}` : "Searching",
|
|
54
|
+
searching_again: () => "Searching more broadly",
|
|
55
|
+
reading: (count) => count ? `Reading ${count} ${count === 1 ? "result" : "results"}` : "Reading the results"
|
|
56
|
+
};
|
|
57
|
+
function chatProgressLabel(progress) {
|
|
58
|
+
return PROGRESS_LABEL[progress.stage](progress.count);
|
|
59
|
+
}
|
|
60
|
+
|
|
41
61
|
// src/chat-protocol/encode.ts
|
|
42
62
|
var encoder = new TextEncoder();
|
|
43
63
|
var SENTINEL_BYTES_RE = /[\u0000\u001E\u001F]/g;
|
|
@@ -69,7 +89,8 @@ function frameNum(value) {
|
|
|
69
89
|
}
|
|
70
90
|
function mapLeadingFrame(meta, out) {
|
|
71
91
|
if (meta.status === "thinking") {
|
|
72
|
-
|
|
92
|
+
const progress = chatProgressOf(meta);
|
|
93
|
+
out.push(progress ? { type: "status", phase: "thinking", progress } : { type: "status", phase: "thinking" });
|
|
73
94
|
} else if (meta.kind === "thinking-delta" && typeof meta.text === "string") {
|
|
74
95
|
out.push({ type: "thinking-delta", text: meta.text });
|
|
75
96
|
} else if (meta.kind === "usage" && meta.stage === "start") {
|
|
@@ -881,6 +902,6 @@ function envFlagEnabled(name) {
|
|
|
881
902
|
return v !== "" && v !== "0" && v !== "false" && v !== "off";
|
|
882
903
|
}
|
|
883
904
|
|
|
884
|
-
export { CARD_REFERENCE, CHAT_OWNER_ADMIN, END_OF_LEADING, ESCALATION_STATE, FRAME_TERMINATOR, IP_BUCKET_KEY_MAX_LENGTH, TRAILER_SENTINEL, buildConfirmToolBody, createCardMarkerScanner, createSseFrameDecoder, decodeNatsChunk, encodeEndOfLeading, encodeLeadingFrame, encodeTextDelta, encodeTrailingUsageFrame, envFlagEnabled, errorDetailsMessage, escalationResolvedStatus, escapeThinkingTags, extractCardReferences, isRecord, normalizeAskOptions, normalizeIpForBucketKey, readServerErrorMessage, stripSentinelBytes, unwrapEnvelope };
|
|
905
|
+
export { CARD_REFERENCE, CHAT_OWNER_ADMIN, CHAT_PROGRESS_STAGES, END_OF_LEADING, ESCALATION_STATE, FRAME_TERMINATOR, IP_BUCKET_KEY_MAX_LENGTH, TRAILER_SENTINEL, buildConfirmToolBody, chatProgressLabel, chatProgressOf, createCardMarkerScanner, createSseFrameDecoder, decodeNatsChunk, encodeEndOfLeading, encodeLeadingFrame, encodeTextDelta, encodeTrailingUsageFrame, envFlagEnabled, errorDetailsMessage, escalationResolvedStatus, escapeThinkingTags, extractCardReferences, isChatProgressStage, isRecord, normalizeAskOptions, normalizeIpForBucketKey, readServerErrorMessage, stripSentinelBytes, unwrapEnvelope };
|
|
885
906
|
//# sourceMappingURL=index.js.map
|
|
886
907
|
//# sourceMappingURL=index.js.map
|