@gemies/sdk 3.0.0 → 3.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 +13 -0
- package/package.json +1 -1
- package/src/lib/agent-character.ts +2 -2
- package/src/lib/participants.ts +1 -1
- package/src/runtime/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @gemies/sdk
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
- **New: `AGENT_ROUTES` and `threadKey` from `@gemies/sdk/runtime`**, the routes and cache key of a
|
|
6
|
+
gemie's thread by its address (`{ handle }` or `{ gemieId }`), so a host opening a thread by id
|
|
7
|
+
reads the same path and invalidates the same key as `GemieChatContent`. A gemie with no Oxy
|
|
8
|
+
account (an external agent, Gemies ADR 0036) has no handle: its thread is addressed by its id.
|
|
9
|
+
|
|
10
|
+
## 3.0.1
|
|
11
|
+
|
|
12
|
+
- **A gemie's account colour may be any hex, not only a Bloom preset key.** `readAgentCharacter`
|
|
13
|
+
paints either through Bloom's `avatarCharacterInColor`; the docs said "a preset key". The gemie
|
|
14
|
+
editor's picker is free again (Bloom 21), and Oxy stores the colour it writes as a hex.
|
|
15
|
+
|
|
3
16
|
## 3.0.0
|
|
4
17
|
|
|
5
18
|
- **Breaking: a gemie is painted in its Oxy account's colour, and nothing else.**
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The colour a gemie is painted in when its account's is not known: an account Oxy did not resolve,
|
|
9
|
-
* an agent that has since been deleted. A Bloom colour preset key
|
|
9
|
+
* an agent that has since been deleted. A Bloom colour preset key; an account colour may also be a hex.
|
|
10
10
|
*/
|
|
11
11
|
export const DEFAULT_AGENT_COLOR = 'gray';
|
|
12
12
|
|
|
@@ -53,7 +53,7 @@ export function readAgentLook(value: unknown): AvatarCharacter {
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* The character a gemie is drawn as: its look (`readAgentLook`) painted in its account's colour
|
|
56
|
-
* (`color`, `User.color`, a Bloom preset key). A gemie's colour is its Oxy account's and nothing
|
|
56
|
+
* (`color`, `User.color`, a Bloom preset key or any hex). A gemie's colour is its Oxy account's and nothing
|
|
57
57
|
* else, so `color` is required: every surface that draws a gemie has it beside the character.
|
|
58
58
|
*/
|
|
59
59
|
export function readAgentCharacter(
|
package/src/lib/participants.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface GemieParticipant {
|
|
|
11
11
|
handle?: string;
|
|
12
12
|
/** The character it is drawn as, painted in its colour. */
|
|
13
13
|
character: AvatarCharacter;
|
|
14
|
-
/** Its colour: its Oxy account's (`User.color`, a Bloom preset key). */
|
|
14
|
+
/** Its colour: its Oxy account's (`User.color`, a Bloom preset key or any hex). */
|
|
15
15
|
color?: string;
|
|
16
16
|
}
|
|
17
17
|
|
package/src/runtime/index.ts
CHANGED
|
@@ -124,6 +124,7 @@ export { useThreadHistory } from './use-thread-history';
|
|
|
124
124
|
export { useThreadSearch, useThreadWindow } from './use-thread-search';
|
|
125
125
|
export { useGemieThread } from './use-gemie-thread';
|
|
126
126
|
export type { GemieThreadInfo } from './use-gemie-thread';
|
|
127
|
+
export { AGENT_ROUTES, threadKey } from './routes';
|
|
127
128
|
export type { GemieThreadAddress } from './routes';
|
|
128
129
|
export { useStartConversation } from './use-start-conversation';
|
|
129
130
|
export type { StartConversationOptions } from './use-start-conversation';
|