@xenosystem/agent-sdk 0.9.28 → 0.9.29
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 +59 -59
- package/dist/electron/index.d.cts +15 -0
- package/dist/electron/index.d.ts +15 -0
- package/dist/electron/index.js +49 -49
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/index.cjs +110 -110
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +102 -102
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/session/index.cjs +1 -1
- package/dist/session/index.js +1 -1
- package/package.json +1 -1
|
@@ -759,6 +759,13 @@ interface LlmClientDeps {
|
|
|
759
759
|
readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
|
|
760
760
|
readonly localTransportLimits?: ProviderTransportLimits;
|
|
761
761
|
readonly apiKey?: string;
|
|
762
|
+
authorizeRequest?(target: {
|
|
763
|
+
method: string;
|
|
764
|
+
url: string;
|
|
765
|
+
}): Promise<{
|
|
766
|
+
authorization: string;
|
|
767
|
+
dpop?: string;
|
|
768
|
+
} | null>;
|
|
762
769
|
readonly maxTokens: number;
|
|
763
770
|
getApiRequestTimeoutMs(): number;
|
|
764
771
|
buildRuntimeSystemPrompt(): string;
|
|
@@ -805,6 +812,7 @@ declare class LlmClient {
|
|
|
805
812
|
private static getHeaderValue;
|
|
806
813
|
private static stripHtml;
|
|
807
814
|
private static summarizeErrorBody;
|
|
815
|
+
private authorizationHeaders;
|
|
808
816
|
private createApiRequestSignal;
|
|
809
817
|
callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
810
818
|
callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
@@ -1347,6 +1355,13 @@ interface ModeSwitchRequest {
|
|
|
1347
1355
|
}
|
|
1348
1356
|
interface AgentLoopConfig {
|
|
1349
1357
|
apiKey?: string;
|
|
1358
|
+
authorizeRequest?(target: {
|
|
1359
|
+
method: string;
|
|
1360
|
+
url: string;
|
|
1361
|
+
}): Promise<{
|
|
1362
|
+
authorization: string;
|
|
1363
|
+
dpop?: string;
|
|
1364
|
+
} | null>;
|
|
1350
1365
|
baseURL: string;
|
|
1351
1366
|
ollamaBaseURL?: string;
|
|
1352
1367
|
localRuntimeUrl?: string;
|
package/dist/electron/index.d.ts
CHANGED
|
@@ -759,6 +759,13 @@ interface LlmClientDeps {
|
|
|
759
759
|
readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
|
|
760
760
|
readonly localTransportLimits?: ProviderTransportLimits;
|
|
761
761
|
readonly apiKey?: string;
|
|
762
|
+
authorizeRequest?(target: {
|
|
763
|
+
method: string;
|
|
764
|
+
url: string;
|
|
765
|
+
}): Promise<{
|
|
766
|
+
authorization: string;
|
|
767
|
+
dpop?: string;
|
|
768
|
+
} | null>;
|
|
762
769
|
readonly maxTokens: number;
|
|
763
770
|
getApiRequestTimeoutMs(): number;
|
|
764
771
|
buildRuntimeSystemPrompt(): string;
|
|
@@ -805,6 +812,7 @@ declare class LlmClient {
|
|
|
805
812
|
private static getHeaderValue;
|
|
806
813
|
private static stripHtml;
|
|
807
814
|
private static summarizeErrorBody;
|
|
815
|
+
private authorizationHeaders;
|
|
808
816
|
private createApiRequestSignal;
|
|
809
817
|
callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
810
818
|
callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
@@ -1347,6 +1355,13 @@ interface ModeSwitchRequest {
|
|
|
1347
1355
|
}
|
|
1348
1356
|
interface AgentLoopConfig {
|
|
1349
1357
|
apiKey?: string;
|
|
1358
|
+
authorizeRequest?(target: {
|
|
1359
|
+
method: string;
|
|
1360
|
+
url: string;
|
|
1361
|
+
}): Promise<{
|
|
1362
|
+
authorization: string;
|
|
1363
|
+
dpop?: string;
|
|
1364
|
+
} | null>;
|
|
1350
1365
|
baseURL: string;
|
|
1351
1366
|
ollamaBaseURL?: string;
|
|
1352
1367
|
localRuntimeUrl?: string;
|