@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
package/dist/index.d.cts
CHANGED
|
@@ -4177,6 +4177,13 @@ interface LlmClientDeps {
|
|
|
4177
4177
|
readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
|
|
4178
4178
|
readonly localTransportLimits?: ProviderTransportLimits;
|
|
4179
4179
|
readonly apiKey?: string;
|
|
4180
|
+
authorizeRequest?(target: {
|
|
4181
|
+
method: string;
|
|
4182
|
+
url: string;
|
|
4183
|
+
}): Promise<{
|
|
4184
|
+
authorization: string;
|
|
4185
|
+
dpop?: string;
|
|
4186
|
+
} | null>;
|
|
4180
4187
|
readonly maxTokens: number;
|
|
4181
4188
|
getApiRequestTimeoutMs(): number;
|
|
4182
4189
|
buildRuntimeSystemPrompt(): string;
|
|
@@ -4223,6 +4230,7 @@ declare class LlmClient {
|
|
|
4223
4230
|
private static getHeaderValue;
|
|
4224
4231
|
private static stripHtml;
|
|
4225
4232
|
private static summarizeErrorBody;
|
|
4233
|
+
private authorizationHeaders;
|
|
4226
4234
|
private createApiRequestSignal;
|
|
4227
4235
|
callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
4228
4236
|
callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
@@ -5298,6 +5306,13 @@ interface ModeSwitchRequest {
|
|
|
5298
5306
|
}
|
|
5299
5307
|
interface AgentLoopConfig {
|
|
5300
5308
|
apiKey?: string;
|
|
5309
|
+
authorizeRequest?(target: {
|
|
5310
|
+
method: string;
|
|
5311
|
+
url: string;
|
|
5312
|
+
}): Promise<{
|
|
5313
|
+
authorization: string;
|
|
5314
|
+
dpop?: string;
|
|
5315
|
+
} | null>;
|
|
5301
5316
|
baseURL: string;
|
|
5302
5317
|
ollamaBaseURL?: string;
|
|
5303
5318
|
localRuntimeUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4177,6 +4177,13 @@ interface LlmClientDeps {
|
|
|
4177
4177
|
readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
|
|
4178
4178
|
readonly localTransportLimits?: ProviderTransportLimits;
|
|
4179
4179
|
readonly apiKey?: string;
|
|
4180
|
+
authorizeRequest?(target: {
|
|
4181
|
+
method: string;
|
|
4182
|
+
url: string;
|
|
4183
|
+
}): Promise<{
|
|
4184
|
+
authorization: string;
|
|
4185
|
+
dpop?: string;
|
|
4186
|
+
} | null>;
|
|
4180
4187
|
readonly maxTokens: number;
|
|
4181
4188
|
getApiRequestTimeoutMs(): number;
|
|
4182
4189
|
buildRuntimeSystemPrompt(): string;
|
|
@@ -4223,6 +4230,7 @@ declare class LlmClient {
|
|
|
4223
4230
|
private static getHeaderValue;
|
|
4224
4231
|
private static stripHtml;
|
|
4225
4232
|
private static summarizeErrorBody;
|
|
4233
|
+
private authorizationHeaders;
|
|
4226
4234
|
private createApiRequestSignal;
|
|
4227
4235
|
callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
4228
4236
|
callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
|
|
@@ -5298,6 +5306,13 @@ interface ModeSwitchRequest {
|
|
|
5298
5306
|
}
|
|
5299
5307
|
interface AgentLoopConfig {
|
|
5300
5308
|
apiKey?: string;
|
|
5309
|
+
authorizeRequest?(target: {
|
|
5310
|
+
method: string;
|
|
5311
|
+
url: string;
|
|
5312
|
+
}): Promise<{
|
|
5313
|
+
authorization: string;
|
|
5314
|
+
dpop?: string;
|
|
5315
|
+
} | null>;
|
|
5301
5316
|
baseURL: string;
|
|
5302
5317
|
ollamaBaseURL?: string;
|
|
5303
5318
|
localRuntimeUrl?: string;
|