@xenosystem/agent-sdk 0.10.22 → 0.10.24
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/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/automation/index.cjs +1 -1
- package/dist/automation/index.js +1 -1
- package/dist/control-plane/index.cjs +1 -1
- package/dist/control-plane/index.js +1 -1
- package/dist/electron/index.cjs +163 -162
- package/dist/electron/index.d.cts +7 -1
- package/dist/electron/index.d.ts +7 -1
- package/dist/electron/index.js +163 -162
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/index.cjs +344 -343
- package/dist/index.d.cts +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/index.js +342 -341
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/providers/index.cjs +10 -10
- package/dist/providers/index.d.cts +7 -1
- package/dist/providers/index.d.ts +7 -1
- package/dist/providers/index.js +10 -10
- package/dist/providers/metafile-cjs.json +1 -1
- package/dist/providers/metafile-esm.json +1 -1
- package/dist/session/index.cjs +25 -23
- package/dist/session/index.js +24 -22
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/package.json +1 -1
|
@@ -720,6 +720,10 @@ interface ToolFailureGuardTrip {
|
|
|
720
720
|
targetFingerprint?: string;
|
|
721
721
|
lastError: string;
|
|
722
722
|
}
|
|
723
|
+
interface ToolNameCodec {
|
|
724
|
+
encode(name: string): string;
|
|
725
|
+
decode(wireName: string): string;
|
|
726
|
+
}
|
|
723
727
|
interface ApiTextContentBlock {
|
|
724
728
|
type: "text";
|
|
725
729
|
text: string;
|
|
@@ -838,13 +842,14 @@ declare class LlmClient {
|
|
|
838
842
|
}>;
|
|
839
843
|
toXenoMessages(apiMessages: ApiMessage[], options?: {
|
|
840
844
|
allowImages?: boolean;
|
|
845
|
+
toolNames?: ToolNameCodec;
|
|
841
846
|
}): XenoChatMessage[];
|
|
842
847
|
private buildStructuredToolContextMessage;
|
|
843
848
|
private modelSupportsImageInputs;
|
|
844
849
|
private describeSuppressedImageBlock;
|
|
845
850
|
getChatCompletionsBaseUrl(): string;
|
|
846
851
|
private condenseToolResultForModel;
|
|
847
|
-
buildXenoToolDefinitions(tools: ToolDefinition[]): Array<{
|
|
852
|
+
buildXenoToolDefinitions(tools: ToolDefinition[], toolNames?: ToolNameCodec): Array<{
|
|
848
853
|
type: "function";
|
|
849
854
|
function: {
|
|
850
855
|
name: string;
|
|
@@ -854,6 +859,7 @@ declare class LlmClient {
|
|
|
854
859
|
}>;
|
|
855
860
|
estimateChatCompletionsInputTokens(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[]): number;
|
|
856
861
|
private buildChatCompletionsRequestBody;
|
|
862
|
+
private toolNameCodecFor;
|
|
857
863
|
private parseXenoCompletion;
|
|
858
864
|
static parseRetryAfterSeconds(value: string | null): number | undefined;
|
|
859
865
|
private static getHeaderValue;
|
package/dist/electron/index.d.ts
CHANGED
|
@@ -720,6 +720,10 @@ interface ToolFailureGuardTrip {
|
|
|
720
720
|
targetFingerprint?: string;
|
|
721
721
|
lastError: string;
|
|
722
722
|
}
|
|
723
|
+
interface ToolNameCodec {
|
|
724
|
+
encode(name: string): string;
|
|
725
|
+
decode(wireName: string): string;
|
|
726
|
+
}
|
|
723
727
|
interface ApiTextContentBlock {
|
|
724
728
|
type: "text";
|
|
725
729
|
text: string;
|
|
@@ -838,13 +842,14 @@ declare class LlmClient {
|
|
|
838
842
|
}>;
|
|
839
843
|
toXenoMessages(apiMessages: ApiMessage[], options?: {
|
|
840
844
|
allowImages?: boolean;
|
|
845
|
+
toolNames?: ToolNameCodec;
|
|
841
846
|
}): XenoChatMessage[];
|
|
842
847
|
private buildStructuredToolContextMessage;
|
|
843
848
|
private modelSupportsImageInputs;
|
|
844
849
|
private describeSuppressedImageBlock;
|
|
845
850
|
getChatCompletionsBaseUrl(): string;
|
|
846
851
|
private condenseToolResultForModel;
|
|
847
|
-
buildXenoToolDefinitions(tools: ToolDefinition[]): Array<{
|
|
852
|
+
buildXenoToolDefinitions(tools: ToolDefinition[], toolNames?: ToolNameCodec): Array<{
|
|
848
853
|
type: "function";
|
|
849
854
|
function: {
|
|
850
855
|
name: string;
|
|
@@ -854,6 +859,7 @@ declare class LlmClient {
|
|
|
854
859
|
}>;
|
|
855
860
|
estimateChatCompletionsInputTokens(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[]): number;
|
|
856
861
|
private buildChatCompletionsRequestBody;
|
|
862
|
+
private toolNameCodecFor;
|
|
857
863
|
private parseXenoCompletion;
|
|
858
864
|
static parseRetryAfterSeconds(value: string | null): number | undefined;
|
|
859
865
|
private static getHeaderValue;
|