@gemies/sdk 4.0.0 → 4.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @gemies/sdk
2
2
 
3
+ ## 4.1.0
4
+
5
+ - **The group welcome no longer links Bloom's whole multi-agent template.** `GemieGroupWelcome`
6
+ imports `SelectedAgentPreview` from `@oxy.so/bloom/multi-agent-chat/selected-agent-preview`
7
+ instead of the `multi-agent-chat` barrel: in Gemies' web export that took `multi-agent-chat` from
8
+ 149,484 to 9,309 bytes of the chunk every route loads first. The Bloom peer floor is
9
+ `>=21.1.0`, the first Bloom with that entry.
10
+
3
11
  ## 4.0.0
4
12
 
5
13
  - **Breaking: a connected account is the person's, granted to their gemies (Gemies ADR 0035 as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gemies/sdk",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "The Gemies SDK: the conversation runtime, chat UI, voice calls and dictation for Oxy apps that talk to a gemie",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -59,7 +59,7 @@
59
59
  "react": "^19.2.3",
60
60
  "react-native": "^0.86.0 || ^0.88.0",
61
61
  "@expo/vector-icons": "^15.1.1",
62
- "@oxy.so/bloom": ">=20.0.0",
62
+ "@oxy.so/bloom": ">=21.1.0",
63
63
  "@oxy.so/core": ">=7.1.0 <8",
64
64
  "@oxy.so/services": ">=14.19.1 <15",
65
65
  "@tanstack/react-query": "^5.101",
@@ -1,5 +1,5 @@
1
1
  import { useAvatarFlights } from '@oxy.so/bloom/avatar-flight';
2
- import { SelectedAgentPreview } from '@oxy.so/bloom/multi-agent-chat';
2
+ import { SelectedAgentPreview } from '@oxy.so/bloom/multi-agent-chat/selected-agent-preview';
3
3
  import { Text, View } from 'react-native';
4
4
  import { useMemo } from 'react';
5
5
  import { useGemieFlights } from '../lib/flights';
@@ -71,7 +71,7 @@ async function readBody(response: Response): Promise<unknown> {
71
71
 
72
72
  /** The structural slice of `OxyServices` the API layer needs. */
73
73
  export interface LinkableOxy {
74
- createLinkedClient(config: { baseURL: string }): {
74
+ createLinkedClient(config: { baseURL: string; receiverSendsNoStore?: boolean }): {
75
75
  client: {
76
76
  requestAuthenticatedResponse(config: {
77
77
  method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
@@ -102,7 +102,9 @@ export function createGemieApi(
102
102
  request: GemieApiRequest = {},
103
103
  ): Promise<GemieApiResult<T>> {
104
104
  const assertion = await appAssertionHeaders();
105
- const linked = oxyServices.createLinkedClient({ baseURL: apiUrl });
105
+ // The Gemies API sends `Cache-Control: no-store` on every response, so the browser may use its
106
+ // CORS preflight cache (`@oxy.so/core` >= 7.50; an older core ignores the flag).
107
+ const linked = oxyServices.createLinkedClient({ baseURL: apiUrl, receiverSendsNoStore: true });
106
108
  try {
107
109
  const headers = {
108
110
  ...assertion,