@salsita-ai/contracts 0.50.0-develop.1cc8da993f → 0.50.0-develop.231285e85a
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.
|
@@ -11,6 +11,8 @@ export interface AssistantGraphQLOperation {
|
|
|
11
11
|
* against the configurator's GraphQL schema, each one seeing the changes of the ones before it.
|
|
12
12
|
*/
|
|
13
13
|
export interface AssistantGraphQLToolInput {
|
|
14
|
+
/** A short name of the call for the user, in their language; the panel shows it on the call's chip. */
|
|
15
|
+
readonly title?: string | null;
|
|
14
16
|
readonly operations: ReadonlyArray<AssistantGraphQLOperation>;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
@@ -19,6 +21,7 @@ export interface AssistantGraphQLToolInput {
|
|
|
19
21
|
* out; the tools are not sent as strict schemas, because `variables` is a free-form map.
|
|
20
22
|
*/
|
|
21
23
|
export declare const AssistantGraphQLToolInput: z.ZodObject<{
|
|
24
|
+
title: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
22
25
|
operations: z.ZodArray<z.ZodObject<{
|
|
23
26
|
query: z.ZodString;
|
|
24
27
|
variables: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -33,12 +36,14 @@ export declare const AssistantGraphQLToolInput: z.ZodObject<{
|
|
|
33
36
|
operationName?: string | null | undefined;
|
|
34
37
|
}>, "many">;
|
|
35
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
title?: string | null | undefined;
|
|
36
40
|
operations: {
|
|
37
41
|
query: string;
|
|
38
42
|
variables?: Record<string, unknown> | null | undefined;
|
|
39
43
|
operationName?: string | null | undefined;
|
|
40
44
|
}[];
|
|
41
45
|
}, {
|
|
46
|
+
title?: unknown;
|
|
42
47
|
operations: {
|
|
43
48
|
query: string;
|
|
44
49
|
variables?: Record<string, unknown> | null | undefined;
|
|
@@ -57,6 +62,10 @@ export declare const AssistantGraphQLToolInput: z.ZodObject<{
|
|
|
57
62
|
export declare const queryTool: import("@tanstack/ai").ToolDefinition<{
|
|
58
63
|
type: string;
|
|
59
64
|
properties: {
|
|
65
|
+
title: {
|
|
66
|
+
type: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
60
69
|
operations: {
|
|
61
70
|
type: string;
|
|
62
71
|
minItems: number;
|
|
@@ -92,6 +101,10 @@ export declare const queryTool: import("@tanstack/ai").ToolDefinition<{
|
|
|
92
101
|
export declare const applyTool: import("@tanstack/ai").ToolDefinition<{
|
|
93
102
|
type: string;
|
|
94
103
|
properties: {
|
|
104
|
+
title: {
|
|
105
|
+
type: string;
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
95
108
|
operations: {
|
|
96
109
|
type: string;
|
|
97
110
|
minItems: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toolDefinition as e}from"@tanstack/ai";import{z as t}from"zod";export const AssistantGraphQLToolInput=t.object({operations:t.array(t.object({query:t.string(),variables:t.record(t.unknown()).nullish(),operationName:t.string().nullish()})).min(1)});let o={type:"object",properties:{operations:{type:"array",minItems:1,description:"The operations to run, in order. Each one sees the changes of the ones before it.",items:{type:"object",properties:{query:{type:"string",description:"A GraphQL document with exactly one operation, a query or a mutation."},variables:{type:"object",description:"Values of the variables the document declares. Prefer literals written into the document."},operationName:{type:"string",description:"The name of the operation, when the document names it."}},required:["query"]}}},required:["operations"]};export const queryTool=e({name:"query",description:"Reads the open configuration: runs GraphQL operations and returns their results. Changes nothing; mutations run on a copy discarded after the call. Screenshots the operations take follow the results as images, each after its label.",inputSchema:o});export const applyTool=e({name:"apply",description:"Changes the open configuration: runs GraphQL operations and keeps their changes as one undo step. All or nothing: when any operation fails, nothing changes. `committed` says whether the changes were kept. Screenshots the operations take follow the results as images, each after its label.",inputSchema:o});
|
|
1
|
+
import{toolDefinition as e}from"@tanstack/ai";import{z as t}from"zod";export const AssistantGraphQLToolInput=t.object({title:t.string().nullish().catch(void 0),operations:t.array(t.object({query:t.string(),variables:t.record(t.unknown()).nullish(),operationName:t.string().nullish()})).min(1)});let o={type:"object",properties:{title:{type:"string",description:"A short name of this call for the user, two to five words in their language, saying what it does."},operations:{type:"array",minItems:1,description:"The operations to run, in order. Each one sees the changes of the ones before it.",items:{type:"object",properties:{query:{type:"string",description:"A GraphQL document with exactly one operation, a query or a mutation."},variables:{type:"object",description:"Values of the variables the document declares. Prefer literals written into the document."},operationName:{type:"string",description:"The name of the operation, when the document names it."}},required:["query"]}}},required:["operations"]};export const queryTool=e({name:"query",description:"Reads the open configuration: runs GraphQL operations and returns their results. Changes nothing; mutations run on a copy discarded after the call. `errors` say why an operation failed; `warnings` are what its changes would newly cause, and do not make it fail. Screenshots the operations take follow the results as images, each after its label.",inputSchema:o});export const applyTool=e({name:"apply",description:"Changes the open configuration: runs GraphQL operations and keeps their changes as one undo step. All or nothing: when any operation fails, nothing changes. `committed` says whether the changes were kept. `errors` say why an operation failed; `warnings` are what the changes newly cause, and do not stop them. Screenshots the operations take follow the results as images, each after its label.",inputSchema:o});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The URL an image part
|
|
3
|
-
* `assistant-image:<imageId>`, the id the
|
|
2
|
+
* The URL an image part carries for an image the browser uploaded, a screenshot in an assistant tool
|
|
3
|
+
* result or an image the user attached to their message: `assistant-image:<imageId>`, the id the
|
|
4
|
+
* server's image upload answered with. The thread stores
|
|
4
5
|
* the reference; the server swaps it for the image only in the copy of the thread sent to the model,
|
|
5
6
|
* and the panel fetches the image by its id.
|
|
6
7
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salsita-ai/contracts",
|
|
3
|
-
"version": "0.50.0-develop.
|
|
3
|
+
"version": "0.50.0-develop.231285e85a",
|
|
4
4
|
"description": "Shared API, authentication, domain, chat, and webhook contracts for Phoenix.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"salsita",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"uuid": "14.0.0",
|
|
55
55
|
"valid-url": "1.0.9",
|
|
56
56
|
"zod": "3.25.76",
|
|
57
|
-
"@salsita-ai/common": "0.50.0-develop.
|
|
57
|
+
"@salsita-ai/common": "0.50.0-develop.231285e85a"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@lingui/core": "5.9.5",
|