@agentrun/sdk 0.0.1-test.5b55888 → 0.0.1-test.70561fe
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,7 @@ import * as openai_core_streaming from 'openai/core/streaming';
|
|
|
2
2
|
import * as openai_resources from 'openai/resources';
|
|
3
3
|
import { ChatCompletionMessageParam } from 'openai/resources';
|
|
4
4
|
import * as $AgentRun from '@alicloud/agentrun20250910';
|
|
5
|
+
import $AgentRun__default from '@alicloud/agentrun20250910';
|
|
5
6
|
import * as $Devs from '@alicloud/devs20230714';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -1021,7 +1022,6 @@ declare class AgentRuntimeClient {
|
|
|
1021
1022
|
* This module defines the base class for control API.
|
|
1022
1023
|
*/
|
|
1023
1024
|
|
|
1024
|
-
type Client = InstanceType<typeof $AgentRun.default>;
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Base class for Control API clients
|
|
1027
1027
|
*
|
|
@@ -1034,7 +1034,7 @@ declare class ControlAPI {
|
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Get the underlying AgentRun client instance
|
|
1036
1036
|
*/
|
|
1037
|
-
getClient(config?: Config):
|
|
1037
|
+
getClient(config?: Config): $AgentRun__default;
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as openai_core_streaming from 'openai/core/streaming';
|
|
|
2
2
|
import * as openai_resources from 'openai/resources';
|
|
3
3
|
import { ChatCompletionMessageParam } from 'openai/resources';
|
|
4
4
|
import * as $AgentRun from '@alicloud/agentrun20250910';
|
|
5
|
+
import $AgentRun__default from '@alicloud/agentrun20250910';
|
|
5
6
|
import * as $Devs from '@alicloud/devs20230714';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -1021,7 +1022,6 @@ declare class AgentRuntimeClient {
|
|
|
1021
1022
|
* This module defines the base class for control API.
|
|
1022
1023
|
*/
|
|
1023
1024
|
|
|
1024
|
-
type Client = InstanceType<typeof $AgentRun.default>;
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Base class for Control API clients
|
|
1027
1027
|
*
|
|
@@ -1034,7 +1034,7 @@ declare class ControlAPI {
|
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Get the underlying AgentRun client instance
|
|
1036
1036
|
*/
|
|
1037
|
-
getClient(config?: Config):
|
|
1037
|
+
getClient(config?: Config): $AgentRun__default;
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as dotenv from 'dotenv';
|
|
2
2
|
import * as $AgentRun4 from '@alicloud/agentrun20250910';
|
|
3
|
+
import $AgentRun4__default from '@alicloud/agentrun20250910';
|
|
3
4
|
import * as $OpenApi from '@alicloud/openapi-client';
|
|
4
5
|
import * as http from 'http';
|
|
5
6
|
import * as https from 'https';
|
|
@@ -523,7 +524,7 @@ var init_control_api = __esm({
|
|
|
523
524
|
endpoint,
|
|
524
525
|
connectTimeout: cfg.timeout
|
|
525
526
|
});
|
|
526
|
-
return new $
|
|
527
|
+
return new $AgentRun4__default(openApiConfig);
|
|
527
528
|
}
|
|
528
529
|
};
|
|
529
530
|
}
|
|
@@ -3833,10 +3834,10 @@ var init_mcp = __esm({
|
|
|
3833
3834
|
*/
|
|
3834
3835
|
connect = async (_params) => {
|
|
3835
3836
|
try {
|
|
3836
|
-
const { Client } = await import('@modelcontextprotocol/sdk/client/index.js');
|
|
3837
|
+
const { Client: Client2 } = await import('@modelcontextprotocol/sdk/client/index.js');
|
|
3837
3838
|
const { SSEClientTransport } = await import('@modelcontextprotocol/sdk/client/sse.js');
|
|
3838
3839
|
const transport = new SSEClientTransport(new URL(this.url));
|
|
3839
|
-
this.client = new
|
|
3840
|
+
this.client = new Client2(
|
|
3840
3841
|
{
|
|
3841
3842
|
name: "agentrun-nodejs-client",
|
|
3842
3843
|
version: "1.0.0"
|