guideai-app 0.5.4-2 → 0.5.4-8
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 +105 -1
- package/dist/GuideAI.d.ts +2 -5
- package/dist/GuideAI.js +1 -1
- package/dist/GuideAI.js.LICENSE.txt +2 -17
- package/dist/buddy/buddyPropTools.d.ts +188 -0
- package/dist/buddy/buddyStore.d.ts +88 -0
- package/dist/buddy/buddyTools.d.ts +6 -0
- package/dist/buddy/types.d.ts +56 -0
- package/dist/components/DeveloperTools.d.ts +5 -3
- package/dist/components/Microphone.d.ts +17 -2
- package/dist/components/PlaybackLockDebugOverlayRoot.d.ts +1 -1
- package/dist/components/SessionRatingPopup.d.ts +16 -0
- package/dist/components/SubtitleInputBar.d.ts +23 -0
- package/dist/components/SubtitleSettingsMenu.d.ts +9 -0
- package/dist/components/TranscriptBox.d.ts +16 -12
- package/dist/components/TranscriptMessages.d.ts +8 -1
- package/dist/components/TranscriptNextStepBar.d.ts +34 -0
- package/dist/components/TranscriptSessionMicLevels.d.ts +8 -0
- package/dist/components/TranscriptStudioChrome.d.ts +8 -7
- package/dist/components/TranscriptTextInput.d.ts +4 -12
- package/dist/components/TranscriptToolbar.d.ts +3 -1
- package/dist/components/TranscriptWorkflowDrawer.d.ts +5 -7
- package/dist/contexts/GuideAIThemeContext.d.ts +13 -0
- package/dist/devtools/DeveloperToolsShell.d.ts +1 -1
- package/dist/devtools/TranscriptDeveloperToolsMenuItems.d.ts +45 -0
- package/dist/devtools/TranscriptUiDevtoolsPanel.d.ts +10 -0
- package/dist/devtools/adminToolDiagnostics/AdminToolDiagnosticsPanel.d.ts +1 -1
- package/dist/devtools/developerToolPanelId.d.ts +1 -1
- package/dist/devtools/devtoolsAdminPortalLinks.d.ts +11 -0
- package/dist/devtools/devtoolsAuth/DevtoolsAuthContext.d.ts +14 -0
- package/dist/devtools/devtoolsAuth/DevtoolsLoginModal.d.ts +13 -0
- package/dist/devtools/devtoolsAuth/devtoolsAccessTrigger.d.ts +9 -0
- package/dist/devtools/devtoolsAuth/devtoolsAdminApi.d.ts +13 -0
- package/dist/devtools/devtoolsAuth/devtoolsLoginModalStyles.d.ts +1 -0
- package/dist/devtools/devtoolsAuth/devtoolsPortalLogin.d.ts +15 -0
- package/dist/devtools/devtoolsAuth/devtoolsSessionStorage.d.ts +4 -0
- package/dist/devtools/devtoolsAuth/index.d.ts +9 -0
- package/dist/devtools/devtoolsAuth/types.d.ts +21 -0
- package/dist/devtools/devtoolsAuth/useDevtoolsAccess.d.ts +33 -0
- package/dist/devtools/devtoolsThemePreference.d.ts +3 -0
- package/dist/devtools/excavator/ExcavatorPanel.d.ts +17 -0
- package/dist/devtools/excavator/excavatorPanelStyles.d.ts +5 -0
- package/dist/devtools/excavator/excavatorSse.d.ts +6 -0
- package/dist/devtools/learn/LearnCaptureChrome.stub.d.ts +3 -0
- package/dist/devtools/learn/LearnModePanel.d.ts +18 -0
- package/dist/devtools/learn/LearnModePanel.stub.d.ts +3 -0
- package/dist/devtools/learn/LearnOrchestrationHost.d.ts +52 -0
- package/dist/devtools/learn/injectLearnModeStyles.d.ts +2 -0
- package/dist/devtools/learn/learnCaptureChrome.d.ts +33 -0
- package/dist/devtools/learn/learnCaptureLayout.d.ts +26 -0
- package/dist/devtools/learn/learnCaptureToolbar.d.ts +27 -0
- package/dist/devtools/learn/learnClarifyKickoff.d.ts +6 -0
- package/dist/devtools/learn/learnLiteTranscript.d.ts +22 -0
- package/dist/devtools/learn/learnModeStyles.d.ts +5 -0
- package/dist/devtools/learn/learnModeTypes.d.ts +5 -0
- package/dist/devtools/learn/learnOrchestrationStub.d.ts +5 -0
- package/dist/devtools/learn/learnPanelSyncFieldsEqual.d.ts +3 -0
- package/dist/devtools/learn/learnRealtimeSession.d.ts +10 -0
- package/dist/devtools/learn/learnRefBag.d.ts +41 -0
- package/dist/devtools/learn/learnSessionStorage.d.ts +23 -0
- package/dist/devtools/learn/learnWebRTCInit.d.ts +20 -0
- package/dist/devtools/learn/learnWorkspaceContext.d.ts +5 -0
- package/dist/devtools/learn/loadLearnOrchestration.d.ts +10 -0
- package/dist/devtools/learn/useLearnCaptureDuration.d.ts +4 -0
- package/dist/devtools/learn/useLearnClickCapture.d.ts +9 -0
- package/dist/devtools/learn/useLearnMode.d.ts +47 -0
- package/dist/devtools/learn/useLearnMode.stub.d.ts +3 -0
- package/dist/devtools/panelLayout.d.ts +6 -0
- package/dist/devtools/silentMessages/silentMessageDebug.d.ts +86 -0
- package/dist/devtools/silentMessages/useSilentMessageDebug.d.ts +18 -0
- package/dist/devtools/transcriptDevtoolsMenuProps.d.ts +33 -0
- package/dist/devtools/transcriptMoreMenu/DeveloperToolsAdminPortalFlyout.d.ts +20 -0
- package/dist/devtools/transcriptMoreMenu/DeveloperToolsLoggerFlyout.d.ts +16 -0
- package/dist/devtools/transcriptMoreMenu/DeveloperToolsMicPresetFlyout.d.ts +22 -0
- package/dist/devtools/transcriptMoreMenu/ThemePresetSwatch.d.ts +8 -0
- package/dist/devtools/transcriptMoreMenu/TranscriptDeveloperToolsMenuItems.d.ts +25 -0
- package/dist/devtools/transcriptMoreMenu/TranscriptDeveloperToolsThemeFlyout.d.ts +13 -0
- package/dist/devtools/transcriptMoreMenu/TranscriptMoreMenuDevtools.d.ts +27 -0
- package/dist/devtools/transcriptMoreMenu/devtoolsFlyoutTypes.d.ts +1 -0
- package/dist/devtools/transcriptMoreMenu/index.d.ts +2 -0
- package/dist/devtools/transcriptMoreMenu/readWindowGuideAILogger.d.ts +12 -0
- package/dist/devtools/transcriptMoreMenu/useTranscriptMoreMenuDebugFlyouts.d.ts +24 -0
- package/dist/devtools/useDraggableDialog.d.ts +8 -1
- package/dist/devtools/useGuideDeveloperTools.d.ts +16 -7
- package/dist/devtools/useGuideDevtoolsIntegration.d.ts +56 -0
- package/dist/devtools/workflowTester/WorkflowTesterPanel.d.ts +4 -28
- package/dist/devtools/workflowTester/WorkflowTesterPanel.stub.d.ts +3 -0
- package/dist/devtools/workflowTester/index.d.ts +1 -2
- package/dist/devtools/workflowTester/useWorkflowSimulationController.d.ts +12 -0
- package/dist/devtools/workflowTester/useWorkflowSimulationRun.d.ts +47 -0
- package/dist/devtools/workflowTester/workflowSimulationController.d.ts +31 -0
- package/dist/devtools/workflowTester/workflowSimulationDevtoolsApi.d.ts +51 -0
- package/dist/devtools/workflowTester/workflowSimulationFinishRun.d.ts +4 -0
- package/dist/devtools/workflowTester/workflowSimulationRunner.d.ts +46 -0
- package/dist/devtools/workflowTester/workflowSimulationRunnerAi.d.ts +20 -0
- package/dist/devtools/workflowTester/workflowSimulationSessionRestore.d.ts +21 -0
- package/dist/devtools/workflowTester/workflowSimulationTurnState.d.ts +20 -0
- package/dist/devtools/workflowTester/workflowSimulationTypes.d.ts +28 -0
- package/dist/devtools/workflowTester/workflowSimulationWaits.d.ts +55 -0
- package/dist/devtools/workflowTester/workflowTesterPanel.types.d.ts +25 -0
- package/dist/devtools/workflowTester/workflowTesterRunSessionStorage.d.ts +43 -0
- package/dist/devtools/workflowTester/workflowTesterWorkspaceBridge.d.ts +4 -2
- package/dist/hooks/useConversationSession.d.ts +16 -2
- package/dist/hooks/useGuideAIMutePipeline.d.ts +1 -0
- package/dist/hooks/useGuideAIThemeState.d.ts +6 -0
- package/dist/hooks/useHiddenRealtimeSteers.d.ts +3 -1
- package/dist/hooks/useLauncherTabDrag.d.ts +23 -0
- package/dist/hooks/useMicMute.d.ts +1 -0
- package/dist/hooks/useSessionRating.d.ts +21 -0
- package/dist/hooks/useSubtitleAppearancePrefs.d.ts +5 -0
- package/dist/hooks/useThemePortalProps.d.ts +4 -0
- package/dist/hooks/useTranscriptChrome.d.ts +7 -2
- package/dist/hooks/useTranscriptDisplayMode.d.ts +6 -0
- package/dist/hooks/useTranscriptPanelDragResize.d.ts +47 -0
- package/dist/hooks/useWebRTC.d.ts +9 -0
- package/dist/hooks/useWidgetWorkflowSession.d.ts +2 -0
- package/dist/hooks/useWorkflowTesterOverlay.d.ts +10 -10
- package/dist/hooks/useWorkspaceCatalog.d.ts +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/lib/workspaceEmbedIcons.d.ts +0 -1
- package/dist/playwrightBuddyHarness.d.ts +12 -0
- package/dist/playwrightBuddyHarness.js +1766 -0
- package/dist/playwrightSimulationHarness.d.ts +16 -0
- package/dist/playwrightSimulationHarness.js +1 -0
- package/dist/playwrightToolHarness.d.ts +6 -2
- package/dist/playwrightToolHarness.js +1 -1
- package/dist/sessionRating.defaults.d.ts +4 -0
- package/dist/sessionRatingPrompts.d.ts +1 -0
- package/dist/staticContext/collectContext.d.ts +24 -13
- package/dist/staticContext/collectors/domSignals.d.ts +29 -0
- package/dist/staticContext/collectors/jqueryUi.d.ts +7 -0
- package/dist/staticContext/collectors/visibility.d.ts +6 -0
- package/dist/staticContext/hostPageFrameworkProbe.d.ts +21 -0
- package/dist/staticContext/index.d.ts +3 -2
- package/dist/staticContext/types.d.ts +112 -4
- package/dist/staticContext/useStaticContext.d.ts +5 -3
- package/dist/stubs/workspaces.d.ts +2 -2
- package/dist/styles/GuideAI.styles.d.ts +5 -1
- package/dist/styles/guideAIStylesTabLauncher.d.ts +7 -0
- package/dist/styles/guideAIThemeTokens.d.ts +5 -0
- package/dist/styles/guideaiTestsiteWidgetTheme.d.ts +6 -0
- package/dist/themes/buildThemeCss.d.ts +8 -0
- package/dist/themes/guideAIThemeIds.d.ts +5 -0
- package/dist/themes/presetThemes.d.ts +9 -0
- package/dist/themes/syncGuideAITheme.d.ts +2 -0
- package/dist/themes/themeTokens.types.d.ts +37 -0
- package/dist/types/GuideAI.types.d.ts +43 -4
- package/dist/utils/api.d.ts +39 -0
- package/dist/utils/api.learn.d.ts +18 -0
- package/dist/utils/conversationContextSwitch.d.ts +41 -0
- package/dist/utils/conversationManager.d.ts +39 -2
- package/dist/utils/dataChannel.d.ts +15 -0
- package/dist/utils/dataChannelHelpers.d.ts +26 -6
- package/dist/utils/guideaiMirroredStorageKeys.d.ts +35 -0
- package/dist/utils/lastSystemToolCall.d.ts +2 -1
- package/dist/utils/localStorageHelper.d.ts +52 -32
- package/dist/utils/localStorageThrottle.d.ts +6 -0
- package/dist/utils/messageStorage.d.ts +20 -7
- package/dist/utils/parseWorkspaceSlugList.d.ts +13 -0
- package/dist/utils/pathIncludesAnyRef.d.ts +12 -0
- package/dist/utils/resolveCatalogWorkspaceSlug.d.ts +11 -0
- package/dist/utils/sessionRatingThrottle.d.ts +3 -0
- package/dist/utils/sessionStorageJson.d.ts +3 -0
- package/dist/utils/themeRegistry.d.ts +14 -0
- package/dist/utils/tools/clickElement.d.ts +6 -0
- package/dist/utils/tools/cursorStyles.d.ts +17 -0
- package/dist/utils/tools/descriptionToHighlightSelector.d.ts +1 -1
- package/dist/utils/tools/docToForm.d.ts +2 -2
- package/dist/utils/tools/elementInteractions.d.ts +35 -1
- package/dist/utils/tools/elementToBestInteractionSelector.d.ts +8 -0
- package/dist/utils/tools/fillField.d.ts +1 -1
- package/dist/utils/tools/hover.d.ts +6 -0
- package/dist/utils/tools/selectWorkspace.d.ts +45 -0
- package/dist/utils/tools/toolRegistry.d.ts +5 -1
- package/dist/utils/tools/workspaceToolBridge.d.ts +22 -0
- package/dist/utils/transcriptDisplayModePref.d.ts +4 -0
- package/dist/utils/transcriptFloatGeometry.d.ts +78 -0
- package/dist/utils/transcriptSubtitleUiPref.d.ts +5 -0
- package/dist/utils/webrtcConnection.d.ts +7 -0
- package/dist/utils/widgetBearerStorage.d.ts +2 -2
- package/dist/utils/widgetWorkspaces.d.ts +0 -2
- package/dist/utils/workflowProgressSync.d.ts +65 -0
- package/dist/utils/workflowSteer.d.ts +10 -0
- package/dist/utils/workspaceCatalog.d.ts +20 -3
- package/dist/utils/workspaceCatalogFatal.d.ts +4 -0
- package/dist/visualContext/defaultProvider.d.ts +4 -10
- package/dist/visualContext/screenshotEncoding.d.ts +37 -0
- package/dist/visualContext/useVisualContext.d.ts +2 -1
- package/dist/visualContext/visualContextCaptureLock.d.ts +17 -0
- package/package.json +2 -2
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* html2canvas
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* html2canvas-pro 2.0.4 <https://yorickshan.github.io/html2canvas-pro/>
|
|
3
|
+
* Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
|
|
4
4
|
* Released under MIT License
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
|
|
22
7
|
/**
|
|
23
8
|
* @license lucide-react v0.469.0 - ISC
|
|
24
9
|
*
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { executeBuddyMemory, executeBuddyQuickie, executeBuddyResearch, executeBuddyTaskList } from './buddyTools';
|
|
2
|
+
export declare const BUDDY_TOOL_NAMES: readonly ["buddyTaskList", "buddyResearch", "buddyQuickie", "buddyMemory"];
|
|
3
|
+
export declare const buddyPropTools: {
|
|
4
|
+
buddyTaskList: {
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
type: "object";
|
|
8
|
+
properties: {
|
|
9
|
+
action: {
|
|
10
|
+
enum: readonly ["add", "list", "getNext", "complete", "update", "remove"];
|
|
11
|
+
type: "string";
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
userId: {
|
|
15
|
+
type: "string";
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
title: {
|
|
19
|
+
type: "string";
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
description: {
|
|
23
|
+
type: "string";
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
taskId: {
|
|
27
|
+
type: "string";
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
status: {
|
|
31
|
+
type: "string";
|
|
32
|
+
enum: readonly ["pending", "in_progress", "completed", "cancelled"];
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
priority: {
|
|
36
|
+
type: "string";
|
|
37
|
+
enum: readonly ["low", "normal", "high"];
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
required: readonly ["action"];
|
|
42
|
+
};
|
|
43
|
+
execute: typeof executeBuddyTaskList;
|
|
44
|
+
};
|
|
45
|
+
buddyResearch: {
|
|
46
|
+
description: string;
|
|
47
|
+
parameters: {
|
|
48
|
+
type: "object";
|
|
49
|
+
properties: {
|
|
50
|
+
action: {
|
|
51
|
+
enum: readonly ["add", "list", "get"];
|
|
52
|
+
type: "string";
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
userId: {
|
|
56
|
+
type: "string";
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
title: {
|
|
60
|
+
type: "string";
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
content: {
|
|
64
|
+
type: "string";
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
sources: {
|
|
68
|
+
type: "array";
|
|
69
|
+
items: {
|
|
70
|
+
type: "string";
|
|
71
|
+
};
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
tags: {
|
|
75
|
+
type: "array";
|
|
76
|
+
items: {
|
|
77
|
+
type: "string";
|
|
78
|
+
};
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
taskId: {
|
|
82
|
+
type: "string";
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
noteId: {
|
|
86
|
+
type: "string";
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
query: {
|
|
90
|
+
type: "string";
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
required: readonly ["action"];
|
|
95
|
+
};
|
|
96
|
+
execute: typeof executeBuddyResearch;
|
|
97
|
+
};
|
|
98
|
+
buddyQuickie: {
|
|
99
|
+
description: string;
|
|
100
|
+
parameters: {
|
|
101
|
+
type: "object";
|
|
102
|
+
properties: {
|
|
103
|
+
action: {
|
|
104
|
+
enum: readonly ["save", "list", "get", "run", "delete"];
|
|
105
|
+
type: "string";
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
108
|
+
userId: {
|
|
109
|
+
type: "string";
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
quickieId: {
|
|
113
|
+
type: "string";
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
name: {
|
|
117
|
+
type: "string";
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
description: {
|
|
121
|
+
type: "string";
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
trigger: {
|
|
125
|
+
type: "string";
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
steps: {
|
|
129
|
+
type: "array";
|
|
130
|
+
description: string;
|
|
131
|
+
items: {
|
|
132
|
+
type: "object";
|
|
133
|
+
properties: {
|
|
134
|
+
kind: {
|
|
135
|
+
type: "string";
|
|
136
|
+
enum: readonly ["instruction", "tool"];
|
|
137
|
+
};
|
|
138
|
+
content: {
|
|
139
|
+
type: "string";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
required: readonly ["kind", "content"];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
tags: {
|
|
146
|
+
type: "array";
|
|
147
|
+
items: {
|
|
148
|
+
type: "string";
|
|
149
|
+
};
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
required: readonly ["action"];
|
|
154
|
+
};
|
|
155
|
+
execute: typeof executeBuddyQuickie;
|
|
156
|
+
};
|
|
157
|
+
buddyMemory: {
|
|
158
|
+
description: string;
|
|
159
|
+
parameters: {
|
|
160
|
+
type: "object";
|
|
161
|
+
properties: {
|
|
162
|
+
action: {
|
|
163
|
+
enum: readonly ["get", "search", "setNote", "appendOrganization", "appendWorkStyle"];
|
|
164
|
+
type: "string";
|
|
165
|
+
description: string;
|
|
166
|
+
};
|
|
167
|
+
userId: {
|
|
168
|
+
type: "string";
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
key: {
|
|
172
|
+
type: "string";
|
|
173
|
+
description: string;
|
|
174
|
+
};
|
|
175
|
+
value: {
|
|
176
|
+
type: "string";
|
|
177
|
+
description: string;
|
|
178
|
+
};
|
|
179
|
+
query: {
|
|
180
|
+
type: "string";
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
required: readonly ["action"];
|
|
185
|
+
};
|
|
186
|
+
execute: typeof executeBuddyMemory;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { type BuddyMemory, type BuddyState, type BuddyTask, type BuddyTaskPriority, type BuddyTaskStatus, type Quickie, type QuickieStep, type ResearchNote } from './types';
|
|
2
|
+
export declare const BUDDY_STATE_CHANGED_EVENT = "guideai_buddy_state_changed";
|
|
3
|
+
export declare function resolveBuddyUserId(override?: string): string;
|
|
4
|
+
export declare function readBuddyState(userId?: string): BuddyState;
|
|
5
|
+
export declare function writeBuddyState(state: BuddyState): BuddyState;
|
|
6
|
+
export declare function addBuddyTask(input: {
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
priority?: BuddyTaskPriority;
|
|
10
|
+
status?: BuddyTaskStatus;
|
|
11
|
+
userId?: string;
|
|
12
|
+
}): BuddyTask;
|
|
13
|
+
export declare function listBuddyTasks(input?: {
|
|
14
|
+
status?: BuddyTaskStatus;
|
|
15
|
+
userId?: string;
|
|
16
|
+
}): BuddyTask[];
|
|
17
|
+
export declare function getNextBuddyTask(userId?: string): BuddyTask | null;
|
|
18
|
+
export declare function updateBuddyTask(input: {
|
|
19
|
+
taskId: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
status?: BuddyTaskStatus;
|
|
23
|
+
priority?: BuddyTaskPriority;
|
|
24
|
+
userId?: string;
|
|
25
|
+
}): BuddyTask;
|
|
26
|
+
export declare function completeBuddyTask(input: {
|
|
27
|
+
taskId: string;
|
|
28
|
+
userId?: string;
|
|
29
|
+
}): BuddyTask;
|
|
30
|
+
export declare function removeBuddyTask(input: {
|
|
31
|
+
taskId: string;
|
|
32
|
+
userId?: string;
|
|
33
|
+
}): boolean;
|
|
34
|
+
export declare function addResearchNote(input: {
|
|
35
|
+
title: string;
|
|
36
|
+
content: string;
|
|
37
|
+
sources?: string[];
|
|
38
|
+
tags?: string[];
|
|
39
|
+
taskId?: string;
|
|
40
|
+
userId?: string;
|
|
41
|
+
}): ResearchNote;
|
|
42
|
+
export declare function listResearchNotes(input?: {
|
|
43
|
+
query?: string;
|
|
44
|
+
taskId?: string;
|
|
45
|
+
userId?: string;
|
|
46
|
+
}): ResearchNote[];
|
|
47
|
+
export declare function getResearchNote(input: {
|
|
48
|
+
noteId: string;
|
|
49
|
+
userId?: string;
|
|
50
|
+
}): ResearchNote;
|
|
51
|
+
export declare function saveQuickie(input: {
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
trigger?: string;
|
|
55
|
+
steps: QuickieStep[];
|
|
56
|
+
tags?: string[];
|
|
57
|
+
quickieId?: string;
|
|
58
|
+
userId?: string;
|
|
59
|
+
}): Quickie;
|
|
60
|
+
export declare function listQuickies(userId?: string): Quickie[];
|
|
61
|
+
export declare function getQuickie(input: {
|
|
62
|
+
quickieId: string;
|
|
63
|
+
userId?: string;
|
|
64
|
+
}): Quickie;
|
|
65
|
+
export declare function runQuickie(input: {
|
|
66
|
+
quickieId: string;
|
|
67
|
+
userId?: string;
|
|
68
|
+
}): Quickie;
|
|
69
|
+
export declare function deleteQuickie(input: {
|
|
70
|
+
quickieId: string;
|
|
71
|
+
userId?: string;
|
|
72
|
+
}): boolean;
|
|
73
|
+
export declare function getBuddyMemory(userId?: string): BuddyMemory;
|
|
74
|
+
export declare function setBuddyMemoryNote(input: {
|
|
75
|
+
key: string;
|
|
76
|
+
value: string;
|
|
77
|
+
userId?: string;
|
|
78
|
+
}): BuddyMemory;
|
|
79
|
+
export declare function appendBuddyMemoryList(input: {
|
|
80
|
+
category: 'organization' | 'workStyle';
|
|
81
|
+
value: string;
|
|
82
|
+
userId?: string;
|
|
83
|
+
}): BuddyMemory;
|
|
84
|
+
export declare function searchBuddyMemory(input: {
|
|
85
|
+
query?: string;
|
|
86
|
+
userId?: string;
|
|
87
|
+
}): BuddyMemory;
|
|
88
|
+
export declare function clearBuddyState(userId?: string): BuddyState;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type RecordArgs = Record<string, unknown>;
|
|
2
|
+
export declare function executeBuddyTaskList(args: RecordArgs): Promise<unknown>;
|
|
3
|
+
export declare function executeBuddyResearch(args: RecordArgs): Promise<unknown>;
|
|
4
|
+
export declare function executeBuddyQuickie(args: RecordArgs): Promise<unknown>;
|
|
5
|
+
export declare function executeBuddyMemory(args: RecordArgs): Promise<unknown>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type BuddyTaskStatus = 'pending' | 'in_progress' | 'completed' | 'cancelled';
|
|
2
|
+
export type BuddyTaskPriority = 'low' | 'normal' | 'high';
|
|
3
|
+
export type BuddyTask = {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
status: BuddyTaskStatus;
|
|
8
|
+
priority: BuddyTaskPriority;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
completedAt?: string;
|
|
12
|
+
relatedResearchIds?: string[];
|
|
13
|
+
};
|
|
14
|
+
export type ResearchNote = {
|
|
15
|
+
id: string;
|
|
16
|
+
title: string;
|
|
17
|
+
content: string;
|
|
18
|
+
sources?: string[];
|
|
19
|
+
tags?: string[];
|
|
20
|
+
taskId?: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
};
|
|
24
|
+
export type QuickieStepKind = 'instruction' | 'tool';
|
|
25
|
+
export type QuickieStep = {
|
|
26
|
+
kind: QuickieStepKind;
|
|
27
|
+
content: string;
|
|
28
|
+
};
|
|
29
|
+
export type Quickie = {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
description: string;
|
|
33
|
+
trigger?: string;
|
|
34
|
+
steps: QuickieStep[];
|
|
35
|
+
tags?: string[];
|
|
36
|
+
usageCount: number;
|
|
37
|
+
lastUsedAt?: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
};
|
|
41
|
+
export type BuddyMemory = {
|
|
42
|
+
organization: string[];
|
|
43
|
+
workStyle: string[];
|
|
44
|
+
notes: Record<string, string>;
|
|
45
|
+
updatedAt: string;
|
|
46
|
+
};
|
|
47
|
+
export type BuddyState = {
|
|
48
|
+
version: 1;
|
|
49
|
+
userId: string;
|
|
50
|
+
tasks: BuddyTask[];
|
|
51
|
+
research: ResearchNote[];
|
|
52
|
+
quickies: Quickie[];
|
|
53
|
+
memory: BuddyMemory;
|
|
54
|
+
};
|
|
55
|
+
export declare const BUDDY_STATE_VERSION: 1;
|
|
56
|
+
export declare const EMPTY_BUDDY_MEMORY: BuddyMemory;
|
|
@@ -3,7 +3,8 @@ import { type DataChannelManager } from '../utils/dataChannel';
|
|
|
3
3
|
import { type VisualContextInspectorProps } from '../devtools/visualContextInspector';
|
|
4
4
|
import { type PlaybackLockDebugOverlayRootProps } from './PlaybackLockDebugOverlayRoot';
|
|
5
5
|
import AudioConfigDialog from './AudioConfigDialog';
|
|
6
|
-
import {
|
|
6
|
+
import type { WorkflowTesterPanelProps } from '../devtools/workflowTester';
|
|
7
|
+
import type { LearnModePanelProps } from '../devtools/learn/LearnModePanel';
|
|
7
8
|
import type { DeveloperToolPanelId } from '../devtools/developerToolPanelId';
|
|
8
9
|
type AudioConfigForDeveloperTools = Omit<React.ComponentProps<typeof AudioConfigDialog>, 'React' | 'ReactDOM'>;
|
|
9
10
|
type VisualContextForDeveloperTools = {
|
|
@@ -13,7 +14,7 @@ type ToolDiagnosticsForDeveloperTools = {
|
|
|
13
14
|
/** @see DataChannelManager — not the WebRTC `RTCDataChannel` from `DataChannelManager#getDataChannel()`. */
|
|
14
15
|
getDataChannelManager: () => DataChannelManager | null;
|
|
15
16
|
propToolNames: string[];
|
|
16
|
-
|
|
17
|
+
developerToolsSectionVisible: boolean;
|
|
17
18
|
};
|
|
18
19
|
export type DeveloperToolsShellState = {
|
|
19
20
|
zIndex: number;
|
|
@@ -33,11 +34,12 @@ type DeveloperToolsProps = {
|
|
|
33
34
|
audioConfig: AudioConfigForDeveloperTools;
|
|
34
35
|
visualContext: VisualContextForDeveloperTools;
|
|
35
36
|
workflowTester: WorkflowTesterPanelProps;
|
|
37
|
+
learn: LearnModePanelProps;
|
|
36
38
|
shell: DeveloperToolsShellState | null;
|
|
37
39
|
};
|
|
38
40
|
/**
|
|
39
41
|
* Debug / developer-only UI in a **single** draggable shell (icon rail + title select).
|
|
40
42
|
* Opened from the transcript ⋯ “more” menu. Mount as a sibling to mic + transcript.
|
|
41
43
|
*/
|
|
42
|
-
export declare function DeveloperTools({ React: R, ReactDOM, toolDiagnostics: { getDataChannelManager, propToolNames,
|
|
44
|
+
export declare function DeveloperTools({ React: R, ReactDOM, toolDiagnostics: { getDataChannelManager, propToolNames, developerToolsSectionVisible }, playbackLock, audioConfig, visualContext, workflowTester, learn, shell, }: DeveloperToolsProps): React.JSX.Element | null;
|
|
43
45
|
export {};
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { PopupPosition, RecordingStatus } from '../types/GuideAI.types';
|
|
1
|
+
import { GuideAILauncherTabSide, GuideAILauncherVariant, PopupPosition, RecordingStatus } from '../types/GuideAI.types';
|
|
2
2
|
interface MicrophoneProps {
|
|
3
3
|
componentRef: React.RefObject<HTMLDivElement>;
|
|
4
4
|
baseStyles: React.CSSProperties;
|
|
5
5
|
popupPosition: PopupPosition;
|
|
6
|
+
/** `mic` (default): floating circle. `tab`: edge-docked draggable tab — same behavior, different shell. */
|
|
7
|
+
launcherVariant?: GuideAILauncherVariant;
|
|
8
|
+
/** Tab variant only — screen edge the tab docks to (default `right`). */
|
|
9
|
+
launcherTabSide?: GuideAILauncherTabSide;
|
|
10
|
+
/** Tab variant only — localStorage scope for the persisted drag offset. */
|
|
11
|
+
launcherTabPrefsKey?: string;
|
|
6
12
|
showOnboarding: boolean;
|
|
7
13
|
handleOnboardingComplete: () => void;
|
|
8
14
|
handleOnboardingClose: () => void;
|
|
15
|
+
sessionRatingVisible: boolean;
|
|
16
|
+
sessionRatingClosing: boolean;
|
|
17
|
+
sessionRatingTitle: string;
|
|
18
|
+
sessionRatingComment: string;
|
|
19
|
+
sessionRatingShowCommentField: boolean;
|
|
20
|
+
onSessionRatingCommentChange: (value: string) => void;
|
|
21
|
+
onSessionRatingTellUsMore: () => void;
|
|
22
|
+
onSessionRating: (stars: number) => void;
|
|
23
|
+
onSessionRatingDismiss: () => void;
|
|
9
24
|
isConnecting: boolean;
|
|
10
25
|
connectionMessage?: string | null;
|
|
11
26
|
status: RecordingStatus;
|
|
@@ -17,5 +32,5 @@ interface MicrophoneProps {
|
|
|
17
32
|
hasInteracted: boolean;
|
|
18
33
|
React: typeof import('react');
|
|
19
34
|
}
|
|
20
|
-
declare const Microphone: ({ componentRef, baseStyles, popupPosition, showOnboarding, handleOnboardingComplete, handleOnboardingClose, isConnecting, connectionMessage, status, handleToggleConversation, showTranscript, hasMic, isMuted, hasInteracted, React, }: MicrophoneProps) => import("react").JSX.Element;
|
|
35
|
+
declare const Microphone: ({ componentRef, baseStyles, popupPosition, launcherVariant, launcherTabSide, launcherTabPrefsKey, showOnboarding, handleOnboardingComplete, handleOnboardingClose, sessionRatingVisible, sessionRatingClosing, sessionRatingTitle, sessionRatingComment, sessionRatingShowCommentField, onSessionRatingCommentChange, onSessionRatingTellUsMore, onSessionRating, onSessionRatingDismiss, isConnecting, connectionMessage, status, handleToggleConversation, showTranscript, hasMic, isMuted, hasInteracted, React, }: MicrophoneProps) => import("react").JSX.Element;
|
|
21
36
|
export default Microphone;
|
|
@@ -11,5 +11,5 @@ export interface PlaybackLockDebugOverlayRootProps {
|
|
|
11
11
|
playbackInterruptDebug: boolean;
|
|
12
12
|
embedded?: boolean;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/** Renders `PlaybackInterruptLockDebugOverlay` from shell-provided playback lock / VAD state. */
|
|
15
15
|
export declare function PlaybackLockDebugOverlayRoot({ zIndex, visible, onClose, micPreset, protectedPlaybackActive, overlayConfig, playbackInterruptDebug, embedded, }: PlaybackLockDebugOverlayRootProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PopupPosition } from '../types/GuideAI.types';
|
|
2
|
+
type SessionRatingPopupProps = {
|
|
3
|
+
position: PopupPosition;
|
|
4
|
+
isVisible: boolean;
|
|
5
|
+
isClosing: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
comment: string;
|
|
8
|
+
showCommentField: boolean;
|
|
9
|
+
onCommentChange: (value: string) => void;
|
|
10
|
+
onTellUsMoreClick: () => void;
|
|
11
|
+
onRate: (stars: number) => void;
|
|
12
|
+
onDismiss: () => void;
|
|
13
|
+
React: typeof import('react');
|
|
14
|
+
};
|
|
15
|
+
declare const SessionRatingPopup: ({ position, isVisible, isClosing, title, comment, showCommentField, onCommentChange, onTellUsMoreClick, onRate, onDismiss, React, }: SessionRatingPopupProps) => import("react").JSX.Element | null;
|
|
16
|
+
export default SessionRatingPopup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RecordingStatus } from '../types/GuideAI.types';
|
|
2
|
+
import type { TranscriptDevtoolsMenuProps } from '../devtools/transcriptDevtoolsMenuProps';
|
|
3
|
+
export type SubtitleInputBarProps = {
|
|
4
|
+
textInput?: string;
|
|
5
|
+
setTextInput?: (value: string) => void;
|
|
6
|
+
handleTextSubmit?: () => void;
|
|
7
|
+
handleTextKeyPress?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
8
|
+
textPlaceholder?: string;
|
|
9
|
+
connectionMessage?: string | null;
|
|
10
|
+
isDataChannelOpen?: boolean;
|
|
11
|
+
isResponseActive?: boolean;
|
|
12
|
+
isConversationActive?: boolean;
|
|
13
|
+
onToggleConversation?: () => void;
|
|
14
|
+
recordingStatus?: RecordingStatus;
|
|
15
|
+
isConnecting?: boolean;
|
|
16
|
+
hasMic?: boolean;
|
|
17
|
+
isMuted?: boolean;
|
|
18
|
+
handleToggleMute?: () => void;
|
|
19
|
+
transcriptDevtools?: TranscriptDevtoolsMenuProps;
|
|
20
|
+
React: typeof import('react');
|
|
21
|
+
};
|
|
22
|
+
/** Compact bottom bar for subtitle mode: mic/session, text input, send, settings. */
|
|
23
|
+
export declare function SubtitleInputBar({ textInput, setTextInput, handleTextSubmit, handleTextKeyPress, textPlaceholder, connectionMessage, isDataChannelOpen, isResponseActive, isConversationActive, onToggleConversation, recordingStatus, isConnecting, hasMic, isMuted, handleToggleMute, transcriptDevtools, React, }: SubtitleInputBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TranscriptDevtoolsMenuProps } from '../devtools/transcriptDevtoolsMenuProps';
|
|
2
|
+
export type SubtitleSettingsMenuProps = {
|
|
3
|
+
transcriptDevtools?: TranscriptDevtoolsMenuProps;
|
|
4
|
+
/** `bar` = inline on subtitle input bar; `floating` = fixed bottom-right. */
|
|
5
|
+
variant?: 'bar' | 'floating';
|
|
6
|
+
React: typeof import('react');
|
|
7
|
+
};
|
|
8
|
+
/** Settings control for subtitle mode (developer tools + transcript UI). */
|
|
9
|
+
export declare function SubtitleSettingsMenu({ transcriptDevtools, variant, React, }: SubtitleSettingsMenuProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { StoredMessage } from '../utils/messageStorage';
|
|
2
|
+
import type { SilentDebugMessage } from '../devtools/silentMessages/silentMessageDebug';
|
|
2
3
|
import { TranscriptPanelMode, TranscriptPosition, MicButtonPosition, TranscriptSessionMode, RecordingStatus } from '../types/GuideAI.types';
|
|
3
4
|
import { type StubWorkflowItem, type StubWorkspaceOption } from '../stubs/workspaces';
|
|
4
|
-
import type {
|
|
5
|
+
import type { TranscriptDevtoolsMenuProps } from '../devtools/transcriptDevtoolsMenuProps';
|
|
5
6
|
import type { MicPresetId } from '../types/audioConfig.types';
|
|
6
7
|
interface TranscriptBoxProps {
|
|
7
8
|
allMessages: StoredMessage[];
|
|
9
|
+
/** Devtools "Show silent messages": hidden LLM sends shown inline in the transcript. */
|
|
10
|
+
silentMessages?: SilentDebugMessage[];
|
|
8
11
|
showTranscript: boolean;
|
|
9
12
|
fileDropTargetActive?: boolean;
|
|
10
13
|
transcriptFileDropAllowed?: boolean;
|
|
@@ -13,6 +16,8 @@ interface TranscriptBoxProps {
|
|
|
13
16
|
onTranscriptFileDrop?: (file: File) => void;
|
|
14
17
|
/** Tear down WebRTC, clear session, return to mic — toolbar X only (footer status control toggles mute). */
|
|
15
18
|
onEndSession?: () => void;
|
|
19
|
+
/** Footer "Next" bar button: inject a silent "What's next?" note and request a reply. */
|
|
20
|
+
onSendWhatsNext?: () => void;
|
|
16
21
|
recordingStatus?: RecordingStatus;
|
|
17
22
|
isConnecting?: boolean;
|
|
18
23
|
showTextInput?: boolean;
|
|
@@ -34,14 +39,9 @@ interface TranscriptBoxProps {
|
|
|
34
39
|
handleResetChat?: () => void;
|
|
35
40
|
isDataChannelOpen?: boolean;
|
|
36
41
|
isResponseActive?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
developerToolsMenu?: {
|
|
41
|
-
shellOpen: boolean;
|
|
42
|
-
onToggleShell: () => void;
|
|
43
|
-
} | null;
|
|
44
|
-
/** Current mic preset (Precise / Noisy); shown in ⋯ flyout when debug menu is on. */
|
|
42
|
+
/** Transcript ⋯ developer tools menu + embed unlock (toolbar title triple-click). */
|
|
43
|
+
transcriptDevtools?: TranscriptDevtoolsMenuProps;
|
|
44
|
+
/** Current mic preset (Precise / Noisy); shown in ⋯ when developer tools menu is on. */
|
|
45
45
|
micPreset?: MicPresetId;
|
|
46
46
|
/** Apply preset from transcript menu: persist, reset stored audio to preset base, live session.update. */
|
|
47
47
|
onApplyMicPreset?: (preset: MicPresetId) => void;
|
|
@@ -55,18 +55,22 @@ interface TranscriptBoxProps {
|
|
|
55
55
|
*/
|
|
56
56
|
transcriptPanelMode?: TranscriptPanelMode;
|
|
57
57
|
onToggleTranscriptPanelMode?: () => void;
|
|
58
|
+
/** Switch float panel to docked (e.g. drag past the right viewport edge). */
|
|
59
|
+
onDockTranscriptPanel?: () => void;
|
|
60
|
+
/** Switch docked panel to float (e.g. drag away from the right edge). */
|
|
61
|
+
onUndockTranscriptPanel?: () => void;
|
|
58
62
|
transcriptSessionMode?: TranscriptSessionMode;
|
|
59
63
|
onTranscriptSessionModeChange?: (mode: TranscriptSessionMode) => void;
|
|
60
64
|
/** Stub list until API-driven; computed once in GuideAI. */
|
|
61
65
|
workspaceOptions: StubWorkspaceOption[];
|
|
62
|
-
/**
|
|
63
|
-
workspaceDataSource: WorkspaceDataSource;
|
|
64
|
-
/** Workflow steps for the current workspace; from stubs or future API. */
|
|
66
|
+
/** Workflow steps for the current workspace from the API catalog. */
|
|
65
67
|
workspaceWorkflows: StubWorkflowItem[];
|
|
66
68
|
workflowDrawerOpen?: boolean;
|
|
67
69
|
onWorkflowDrawerOpenChange: (open: boolean) => void;
|
|
68
70
|
/** Access-key realtime: notify parent of DB workflow id for next initialize (workspace prompt + this step). Label used for rollup silent steer. */
|
|
69
71
|
onSessionWorkflowForRealtimeInit?: (workflowId: string | null, workflowLabel?: string) => void;
|
|
72
|
+
/** Namespace for sticky workflow prefs (`guideAI_transcriptWorkflowState`). */
|
|
73
|
+
conversationKey?: string;
|
|
70
74
|
/** Docked drawer width (px); persisted by parent when `onDrawerWidthChange` is used. */
|
|
71
75
|
drawerWidthPx?: number;
|
|
72
76
|
onDrawerWidthChange?: (widthPx: number) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StoredMessage } from '../utils/messageStorage';
|
|
2
2
|
import type { StubWorkspaceOption } from '../stubs/workspaces';
|
|
3
3
|
import type { TranscriptSessionMode } from '../types/GuideAI.types';
|
|
4
|
+
import type { SilentDebugMessage } from '../devtools/silentMessages/silentMessageDebug';
|
|
4
5
|
interface TranscriptMessagesProps {
|
|
5
6
|
allMessages: StoredMessage[];
|
|
6
7
|
messagesEndRef: React.RefObject<HTMLDivElement>;
|
|
@@ -9,7 +10,13 @@ interface TranscriptMessagesProps {
|
|
|
9
10
|
workspaceOptions?: StubWorkspaceOption[];
|
|
10
11
|
selectedWorkspaceId?: TranscriptSessionMode;
|
|
11
12
|
onSelectWorkspace?: (mode: TranscriptSessionMode) => void;
|
|
13
|
+
/** Devtools "Show silent messages": hidden LLM sends interleaved by timestamp. */
|
|
14
|
+
silentMessages?: SilentDebugMessage[];
|
|
15
|
+
/** Portal target for the silent-message detail dialog (matches transcript menus). */
|
|
16
|
+
ReactDOM?: {
|
|
17
|
+
createPortal: (children: React.ReactNode, container: Element) => React.ReactNode;
|
|
18
|
+
};
|
|
12
19
|
React: typeof import('react');
|
|
13
20
|
}
|
|
14
|
-
declare const TranscriptMessages: ({ allMessages, messagesEndRef, docFormProgress, workspaceSelectorPosted, workspaceOptions, selectedWorkspaceId, onSelectWorkspace, React, }: TranscriptMessagesProps) => import("react").JSX.Element;
|
|
21
|
+
declare const TranscriptMessages: ({ allMessages, messagesEndRef, docFormProgress, workspaceSelectorPosted, workspaceOptions, selectedWorkspaceId, onSelectWorkspace, silentMessages, ReactDOM, React, }: TranscriptMessagesProps) => import("react").JSX.Element;
|
|
15
22
|
export default TranscriptMessages;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordingStatus } from '../types/GuideAI.types';
|
|
3
|
+
/** Idle time before the tab slides into view once all activity stops (ms). */
|
|
4
|
+
export declare const NEXT_BAR_IDLE_DELAY_MS = 3000;
|
|
5
|
+
/**
|
|
6
|
+
* Conversation statuses that count as activity for the "Next" tab: the user speaking
|
|
7
|
+
* (`active`), work in flight (`processing`), and assistant audio playing (`playing`).
|
|
8
|
+
* `recording` (listening, no speech) and `idle` are quiet — the user may need a nudge.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isConversationQuiet(status: RecordingStatus | undefined): boolean;
|
|
11
|
+
export interface TranscriptNextStepBarProps {
|
|
12
|
+
/**
|
|
13
|
+
* No activity of any kind: data channel open, no reply in flight, and the conversation
|
|
14
|
+
* quiet per {@link isConversationQuiet} (no user speech / assistant audio). The tab
|
|
15
|
+
* slides in 3s after this becomes true.
|
|
16
|
+
*/
|
|
17
|
+
available: boolean;
|
|
18
|
+
/** Inject a silent "What's next?" note and request a reply. */
|
|
19
|
+
onNext: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* "Next" tab that slides up from the input row's top edge, right-aligned. It is a nudge for
|
|
23
|
+
* users who have stalled: hidden by default and during any activity (user speaking, reply in
|
|
24
|
+
* flight, assistant audio), it slides into view after 3s of inactivity and slides away when
|
|
25
|
+
* clicked or when activity resumes, staying hidden until the conversation goes quiet again.
|
|
26
|
+
*
|
|
27
|
+
* Styling lives in `guideAIStylesTranscript.ts` and must use `--guideai-t-*` theme tokens
|
|
28
|
+
* so the tab follows the active theme preset — see docs/THEMES.md ("Theming new UI").
|
|
29
|
+
*/
|
|
30
|
+
declare const TranscriptNextStepBar: {
|
|
31
|
+
({ available, onNext }: TranscriptNextStepBarProps): React.JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
export default TranscriptNextStepBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TranscriptSessionMicLevelsMode = 'standby' | 'live' | 'voice';
|
|
3
|
+
/** Bars around a centerline; inactive modes use index-staggered ripples, voice uses center-out swell delays. */
|
|
4
|
+
export declare function TranscriptSessionMicLevels({ mode }: {
|
|
5
|
+
mode: TranscriptSessionMicLevelsMode;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
export declare function shouldUseSessionMicLevels(status: import('../types/GuideAI.types').RecordingStatus, isConnecting: boolean, isMuted: boolean, hasMic: boolean): boolean;
|
|
8
|
+
export declare function sessionMicLevelsMode(status: import('../types/GuideAI.types').RecordingStatus): TranscriptSessionMicLevelsMode;
|