agent-bridge-doubao 1.0.1 → 1.0.2

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.
@@ -18,7 +18,7 @@ class DoubaoCdpClient {
18
18
  sequence = 0;
19
19
  pending = new Map();
20
20
  options;
21
- constructor(options = {}) { this.options = { ...defaults, ...options, fetchImpl: options.fetchImpl }; }
21
+ constructor(options = {}) { this.options = { port: options.port ?? defaults.port, conversationId: options.conversationId ?? defaults.conversationId, botId: options.botId ?? defaults.botId, timeoutMs: options.timeoutMs ?? defaults.timeoutMs, fetchImpl: options.fetchImpl }; }
22
22
  connected() { return Boolean(this.socket); }
23
23
  async connect() {
24
24
  if (this.socket)
@@ -4,7 +4,7 @@ exports.DoubaoPlugin = exports.doubaoManifest = void 0;
4
4
  const cdp_client_1 = require("./cdp-client");
5
5
  exports.doubaoManifest = {
6
6
  id: "doubao",
7
- version: "1.0.1",
7
+ version: "1.0.2",
8
8
  displayName: "豆包",
9
9
  entry: "dist/index.js",
10
10
  apiVersion: "1",
@@ -32,7 +32,7 @@ class DoubaoPlugin {
32
32
  try {
33
33
  await this.client.connect();
34
34
  if (context.http)
35
- this.disposer = context.http.register({ method: "POST", path: "/v1/chat/completions", handler: (request, response) => this.handleHttp(request, response) }) || undefined;
35
+ this.disposer = context.http.register({ method: "POST", path: "/doubao/v1/chat/completions", handler: (request, response) => this.handleHttp(request, response) }) || undefined;
36
36
  this.state = "ready";
37
37
  this.message = "";
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-bridge-doubao",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "agent-bridge 的豆包插件。",
5
5
  "keywords": ["mu-agent-bridge-plugin", "mu-agent-bridge-agent"],
6
6
  "repository": { "type": "git", "url": "https://codeup.aliyun.com/6808da56fb3da14b899afd54/agent_bridge.git", "directory": "packages/doubao" },
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "doubao",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "agent",
5
5
  "displayName": "豆包",
6
6
  "entry": "dist/src-ts/plugins/doubao/index.js",