graphlit-client 1.0.20260422003 → 1.0.20260424001
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/client.d.ts
CHANGED
|
@@ -1872,6 +1872,12 @@ declare class Graphlit {
|
|
|
1872
1872
|
* @returns The updated connector.
|
|
1873
1873
|
*/
|
|
1874
1874
|
updateConnector(connector: Types.ConnectorUpdateInput): Promise<Types.UpdateConnectorMutation>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Creates or updates a connector.
|
|
1877
|
+
* @param connector - The connector to create or update.
|
|
1878
|
+
* @returns The created or updated connector.
|
|
1879
|
+
*/
|
|
1880
|
+
upsertConnector(connector: Types.ConnectorInput): Promise<Types.UpsertConnectorMutation>;
|
|
1875
1881
|
/**
|
|
1876
1882
|
* Deletes a connector.
|
|
1877
1883
|
* @param id - The ID of the connector to delete.
|
package/dist/client.js
CHANGED
|
@@ -3293,16 +3293,14 @@ class Graphlit {
|
|
|
3293
3293
|
async updateConnector(connector) {
|
|
3294
3294
|
return this.mutateAndCheckError(Documents.UpdateConnector, { connector: connector });
|
|
3295
3295
|
}
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
{ connector:
|
|
3303
|
-
>(Documents.UpsertConnector, { connector: connector });
|
|
3296
|
+
/**
|
|
3297
|
+
* Creates or updates a connector.
|
|
3298
|
+
* @param connector - The connector to create or update.
|
|
3299
|
+
* @returns The created or updated connector.
|
|
3300
|
+
*/
|
|
3301
|
+
async upsertConnector(connector) {
|
|
3302
|
+
return this.mutateAndCheckError(Documents.UpsertConnector, { connector: connector });
|
|
3304
3303
|
}
|
|
3305
|
-
*/
|
|
3306
3304
|
/**
|
|
3307
3305
|
* Deletes a connector.
|
|
3308
3306
|
* @param id - The ID of the connector to delete.
|
|
@@ -6116,8 +6114,7 @@ class Graphlit {
|
|
|
6116
6114
|
const toolCallNames = [];
|
|
6117
6115
|
const errors = [];
|
|
6118
6116
|
let totalToolCallCount = 0;
|
|
6119
|
-
|
|
6120
|
-
const reasoningByMessageIndex = new Map();
|
|
6117
|
+
const persistedIntermediateMessages = [];
|
|
6121
6118
|
// Artifact collector for tool handlers
|
|
6122
6119
|
const pendingArtifacts = [];
|
|
6123
6120
|
const artifactCollector = {
|
|
@@ -6134,7 +6131,6 @@ class Graphlit {
|
|
|
6134
6131
|
(OPENAI_RESPONSES_AUTO_ROUTING_ENABLED && useResponsesApi !== false)) &&
|
|
6135
6132
|
serviceType === Types.ModelServiceTypes.OpenAi &&
|
|
6136
6133
|
isOpenAIResponsesEligibleModel(specification);
|
|
6137
|
-
const toolMessagesStartIndex = messages.length;
|
|
6138
6134
|
let lastRoundReasoning;
|
|
6139
6135
|
let openAIResponsesState;
|
|
6140
6136
|
let openAIResponsesPendingToolMessages = [];
|
|
@@ -6548,9 +6544,9 @@ class Graphlit {
|
|
|
6548
6544
|
if (roundReasoning.signature) {
|
|
6549
6545
|
assistantMessage.thinkingSignature = roundReasoning.signature;
|
|
6550
6546
|
}
|
|
6551
|
-
reasoningByMessageIndex.set(messages.length, roundReasoning);
|
|
6552
6547
|
}
|
|
6553
6548
|
messages.push(assistantMessage);
|
|
6549
|
+
persistedIntermediateMessages.push(assistantMessage);
|
|
6554
6550
|
// Track tool names for stuck detection
|
|
6555
6551
|
for (const tc of roundToolCalls) {
|
|
6556
6552
|
toolCallNames.push(tc.name);
|
|
@@ -6845,6 +6841,7 @@ class Graphlit {
|
|
|
6845
6841
|
}
|
|
6846
6842
|
}
|
|
6847
6843
|
messages.push(executionResult.toolMessage);
|
|
6844
|
+
persistedIntermediateMessages.push(executionResult.toolMessage);
|
|
6848
6845
|
if (executionResult.errorEntry) {
|
|
6849
6846
|
errors.push(executionResult.errorEntry);
|
|
6850
6847
|
}
|
|
@@ -6874,7 +6871,7 @@ class Graphlit {
|
|
|
6874
6871
|
currentRound++;
|
|
6875
6872
|
}
|
|
6876
6873
|
// Build intermediate messages for completeConversation
|
|
6877
|
-
const intermediateMessages =
|
|
6874
|
+
const intermediateMessages = persistedIntermediateMessages;
|
|
6878
6875
|
const messageInputs = intermediateMessages.map((msg, idx) => {
|
|
6879
6876
|
const input = {
|
|
6880
6877
|
role: msg.role,
|
|
@@ -6898,12 +6895,10 @@ class Graphlit {
|
|
|
6898
6895
|
firstStatusAt: tc.firstStatusAt,
|
|
6899
6896
|
}));
|
|
6900
6897
|
}
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
if (reasoning.signature) {
|
|
6906
|
-
input.thinkingSignature = reasoning.signature;
|
|
6898
|
+
if (msg.thinkingContent) {
|
|
6899
|
+
input.thinkingContent = msg.thinkingContent;
|
|
6900
|
+
if (msg.thinkingSignature) {
|
|
6901
|
+
input.thinkingSignature = msg.thinkingSignature;
|
|
6907
6902
|
}
|
|
6908
6903
|
}
|
|
6909
6904
|
return input;
|
|
@@ -61,6 +61,7 @@ export declare const DeleteConnector: import("graphql").DocumentNode;
|
|
|
61
61
|
export declare const GetConnector: import("graphql").DocumentNode;
|
|
62
62
|
export declare const QueryConnectors: import("graphql").DocumentNode;
|
|
63
63
|
export declare const UpdateConnector: import("graphql").DocumentNode;
|
|
64
|
+
export declare const UpsertConnector: import("graphql").DocumentNode;
|
|
64
65
|
export declare const AddContentLabel: import("graphql").DocumentNode;
|
|
65
66
|
export declare const ApproveContent: import("graphql").DocumentNode;
|
|
66
67
|
export declare const ClassifyContents: import("graphql").DocumentNode;
|
|
@@ -2091,6 +2091,16 @@ export const UpdateConnector = gql `
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
`;
|
|
2094
|
+
export const UpsertConnector = gql `
|
|
2095
|
+
mutation UpsertConnector($connector: ConnectorInput!) {
|
|
2096
|
+
upsertConnector(connector: $connector) {
|
|
2097
|
+
id
|
|
2098
|
+
name
|
|
2099
|
+
state
|
|
2100
|
+
type
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
`;
|
|
2094
2104
|
export const AddContentLabel = gql `
|
|
2095
2105
|
mutation AddContentLabel($id: ID!, $label: String!) {
|
|
2096
2106
|
addContentLabel(id: $id, label: $label) {
|
|
@@ -3477,7 +3477,7 @@ export type Content = {
|
|
|
3477
3477
|
links?: Maybe<Array<LinkReference>>;
|
|
3478
3478
|
/** The geo-location of the content. */
|
|
3479
3479
|
location?: Maybe<Point>;
|
|
3480
|
-
/** The content text formatted as Markdown. Returns the persisted
|
|
3480
|
+
/** The content text formatted as Markdown. Returns the persisted Markdown body when available, and otherwise falls back to on-demand export. Export is bounded by stored token count. */
|
|
3481
3481
|
markdown?: Maybe<Scalars['String']['output']>;
|
|
3482
3482
|
/** The persisted Markdown export URI of the content. This references the frontmatter-aware Markdown file written under the content folder. */
|
|
3483
3483
|
markdownUri?: Maybe<Scalars['URL']['output']>;
|
|
@@ -17042,6 +17042,8 @@ export type Mutation = {
|
|
|
17042
17042
|
upsertAlert?: Maybe<Alert>;
|
|
17043
17043
|
/** Upserts a category. */
|
|
17044
17044
|
upsertCategory?: Maybe<Category>;
|
|
17045
|
+
/** Upserts a connector. */
|
|
17046
|
+
upsertConnector?: Maybe<Connector>;
|
|
17045
17047
|
/** Upserts an emotion. */
|
|
17046
17048
|
upsertEmotion?: Maybe<Emotion>;
|
|
17047
17049
|
/** Upserts a label. */
|
|
@@ -18327,6 +18329,9 @@ export type MutationUpsertCategoryArgs = {
|
|
|
18327
18329
|
category: CategoryInput;
|
|
18328
18330
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
18329
18331
|
};
|
|
18332
|
+
export type MutationUpsertConnectorArgs = {
|
|
18333
|
+
connector: ConnectorInput;
|
|
18334
|
+
};
|
|
18330
18335
|
export type MutationUpsertEmotionArgs = {
|
|
18331
18336
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
18332
18337
|
emotion: EmotionInput;
|
|
@@ -29308,6 +29313,19 @@ export type UpdateConnectorMutation = {
|
|
|
29308
29313
|
type?: ConnectorTypes | null;
|
|
29309
29314
|
} | null;
|
|
29310
29315
|
};
|
|
29316
|
+
export type UpsertConnectorMutationVariables = Exact<{
|
|
29317
|
+
connector: ConnectorInput;
|
|
29318
|
+
}>;
|
|
29319
|
+
export type UpsertConnectorMutation = {
|
|
29320
|
+
__typename?: 'Mutation';
|
|
29321
|
+
upsertConnector?: {
|
|
29322
|
+
__typename?: 'Connector';
|
|
29323
|
+
id: string;
|
|
29324
|
+
name: string;
|
|
29325
|
+
state: EntityState;
|
|
29326
|
+
type?: ConnectorTypes | null;
|
|
29327
|
+
} | null;
|
|
29328
|
+
};
|
|
29311
29329
|
export type AddContentLabelMutationVariables = Exact<{
|
|
29312
29330
|
id: Scalars['ID']['input'];
|
|
29313
29331
|
label: Scalars['String']['input'];
|