@startsimpli/integrations 0.2.227 → 0.2.229
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startsimpli/integrations",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.229",
|
|
4
4
|
"description": "Provider-agnostic types, API clients, hooks, and UI primitives for email + calendar integrations across StartSimpli apps, plus foundry customer email (subpath ./comms).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://startsimpli.com",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"react-native": ">=0.74.0",
|
|
51
51
|
"@startsimpli/ui-native": ">=0.1.12",
|
|
52
52
|
"react-native-safe-area-context": ">=4.0.0",
|
|
53
|
-
"@startsimpli/ui": "^0.4.211",
|
|
54
53
|
"@startsimpli/auth": "^0.4.64",
|
|
54
|
+
"@startsimpli/ui": "^0.4.211",
|
|
55
55
|
"@startsimpli/utils": "^0.4.23"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"vitest": "^3.0.0",
|
|
99
99
|
"react-native": "0.85.3",
|
|
100
100
|
"react-native-safe-area-context": "~5.7.0",
|
|
101
|
-
"@startsimpli/llm": "0.4.
|
|
101
|
+
"@startsimpli/llm": "0.4.32",
|
|
102
102
|
"@startsimpli/ui": "0.4.211",
|
|
103
103
|
"@startsimpli/ui-native": "0.1.15",
|
|
104
104
|
"@startsimpli/auth": "0.4.64",
|
|
@@ -48,7 +48,7 @@ const MicIcon = () => (
|
|
|
48
48
|
);
|
|
49
49
|
const StopIcon = () => <span aria-hidden="true" className="inline-block h-3.5 w-3.5 rounded-sm bg-current" />;
|
|
50
50
|
|
|
51
|
-
const EMPTY: MeetingState = { phase: 'idle', retryable: false, lines: [], error: null, noAudio: null, conversationId: null, saved: null, relayNotice: null, micOn: false, micLive: false };
|
|
51
|
+
const EMPTY: MeetingState = { phase: 'idle', retryable: false, lines: [], error: null, noAudio: null, conversationId: null, saved: null, relayNotice: null, micOn: false, micLive: false, hearing: false };
|
|
52
52
|
|
|
53
53
|
export function ConversePage({ client, meeting, createIO, savedLink, notify, cards: hostCards, assistantName = ASSISTANT_NAME }: ConversePageProps) {
|
|
54
54
|
const [state, setState] = React.useState<MeetingState>(EMPTY);
|
|
@@ -201,10 +201,10 @@ function Root({ config, device, registry }: { config: FoundryAppConfig; device:
|
|
|
201
201
|
useEffect(() => {
|
|
202
202
|
const snap = device.recording?.session.snapshot;
|
|
203
203
|
if (!launch.shotEveryMs || !snap || auth !== 'signedIn') return undefined;
|
|
204
|
-
const shoot = () => {
|
|
204
|
+
const shoot = () => { const uri = device.documentUri(`shots/${Date.now()}.jpg`); void snap(uri).then((ok) => services.diag.log('shot.result', { ok }), (e: unknown) => services.diag.log('shot.result', { ok: false, error: String(e) })); };
|
|
205
205
|
const t = setInterval(shoot, launch.shotEveryMs);
|
|
206
206
|
return () => clearInterval(t);
|
|
207
|
-
}, [launch, device, auth]);
|
|
207
|
+
}, [launch, device, auth, services]);
|
|
208
208
|
useEffect(() => {
|
|
209
209
|
if (!nav) return undefined;
|
|
210
210
|
services.bindOpen((tab, id) => nav.open(tab, id ? { id } : null));
|
|
@@ -25,4 +25,13 @@ describe('the SessionInspector the recorder and player use', () => {
|
|
|
25
25
|
expect(base.onInterruption).not.toHaveBeenCalled();
|
|
26
26
|
expect(base.onRouteChange).not.toHaveBeenCalled();
|
|
27
27
|
});
|
|
28
|
+
|
|
29
|
+
it('keeps the base inspector\'s snapshot so -tgShotEvery device screenshots still work', async () => {
|
|
30
|
+
const voice = createVoiceSession({ native: createFakeNativeSession(), log: vi.fn() });
|
|
31
|
+
const snapshot = vi.fn(async () => true);
|
|
32
|
+
const withSnap = voiceInspector(voice, { info: async () => info, snapshot } as never);
|
|
33
|
+
expect(await withSnap.snapshot?.('file:///x.jpg')).toBe(true);
|
|
34
|
+
expect(snapshot).toHaveBeenCalledWith('file:///x.jpg');
|
|
35
|
+
expect(voiceInspector(voice, { info: async () => info }).snapshot).toBeUndefined();
|
|
36
|
+
});
|
|
28
37
|
});
|
|
@@ -5,9 +5,11 @@ import type { VoiceSession } from './index';
|
|
|
5
5
|
* The inspector the recorder and the player are built with: facts come from the native module, but interruptions and route
|
|
6
6
|
* changes come ONLY from VoiceSession's decisions, so there is one authority and they never subscribe to the OS themselves.
|
|
7
7
|
*/
|
|
8
|
-
export function voiceInspector(voice: VoiceSession, base: Pick<SessionInspector, 'info'>): SessionInspector {
|
|
8
|
+
export function voiceInspector(voice: VoiceSession, base: Pick<SessionInspector, 'info' | 'snapshot'>): SessionInspector {
|
|
9
9
|
return {
|
|
10
10
|
info: () => base.info(),
|
|
11
|
+
// Device-test screenshots (-tgShotEvery) go through the inspector; dropping this silently disabled them.
|
|
12
|
+
...(base.snapshot ? { snapshot: (fileUri: string) => base.snapshot!(fileUri) } : {}),
|
|
11
13
|
onInterruption: (cb) => voice.onInterruption((e) => cb(e.type === 'began' ? { type: 'began' } : { type: 'ended', shouldResume: e.shouldResume })),
|
|
12
14
|
onRouteChange: (cb) => voice.onRouteChange((e) => cb({ reason: e.reason })),
|
|
13
15
|
};
|