@simfinity/constellation-ui 1.0.3 → 1.0.6
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/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -59,8 +59,8 @@ function useConstellationClient() {
|
|
|
59
59
|
const ctx = (0, import_react.useContext)(ConstellationContext);
|
|
60
60
|
if (!ctx) throw new Error("Must be used inside ConstellationProvider");
|
|
61
61
|
return {
|
|
62
|
-
|
|
63
|
-
return await ctx.client.
|
|
62
|
+
supportedTools: async () => {
|
|
63
|
+
return await ctx.client.fetchSupportedTools();
|
|
64
64
|
},
|
|
65
65
|
startSession: async (audio, voice, tools = []) => {
|
|
66
66
|
await ctx.client.startSession(audio, voice, tools);
|
package/dist/index.d.cts
CHANGED
|
@@ -82,7 +82,7 @@ declare function ConstellationProvider({ client, children, }: {
|
|
|
82
82
|
* @returns
|
|
83
83
|
* Lifecycle control methods:
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
* supportedTools()
|
|
86
86
|
* - Retrieve the list of tool names & descriptions that the server supports
|
|
87
87
|
* - Tools can be selectively added to a session at creation time
|
|
88
88
|
* - Tools included in a session are added to the model's context and available for it to use
|
package/dist/index.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ declare function ConstellationProvider({ client, children, }: {
|
|
|
82
82
|
* @returns
|
|
83
83
|
* Lifecycle control methods:
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
* supportedTools()
|
|
86
86
|
* - Retrieve the list of tool names & descriptions that the server supports
|
|
87
87
|
* - Tools can be selectively added to a session at creation time
|
|
88
88
|
* - Tools included in a session are added to the model's context and available for it to use
|
package/dist/index.js
CHANGED
|
@@ -21,8 +21,8 @@ function useConstellationClient() {
|
|
|
21
21
|
const ctx = useContext(ConstellationContext);
|
|
22
22
|
if (!ctx) throw new Error("Must be used inside ConstellationProvider");
|
|
23
23
|
return {
|
|
24
|
-
|
|
25
|
-
return await ctx.client.
|
|
24
|
+
supportedTools: async () => {
|
|
25
|
+
return await ctx.client.fetchSupportedTools();
|
|
26
26
|
},
|
|
27
27
|
startSession: async (audio, voice, tools = []) => {
|
|
28
28
|
await ctx.client.startSession(audio, voice, tools);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simfinity/constellation-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Simfinity",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@simfinity/constellation-client": "^1.0.
|
|
28
|
+
"@simfinity/constellation-client": "^1.0.10"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/react": "^19.2.11",
|