@glodon-aiot/bot-client-sdk 3.27.0-alpha.0 → 3.27.0-alpha.1

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.
@@ -21,6 +21,7 @@ export interface BotClientConfig {
21
21
  stream?: boolean;
22
22
  /**
23
23
  * 应用编排版本。Agent 建连时写入 WebSocket query 的 `appVersion`。
24
+ * 应用详情、promptVariables、recommendQues、prompts,以及创建会话,写入 `version`。
24
25
  * `draft`:草稿;`v1` / `v2` / `vx`:指定版本,大小写不敏感;`latest`:始终最新。
25
26
  * 不传或空白时 SDK 默认传 `latest`。其他值原样传递,由服务端改用最新版本。
26
27
  * ready 带回的版本与请求不一致时,SDK 输出告警,连接仍然成功。
@@ -57,6 +58,8 @@ export declare let configuration: {
57
58
  stream: boolean;
58
59
  appVersion: string;
59
60
  };
61
+ /** 建连和应用详情使用的编排版本。空白或不传时为 latest。 */
62
+ export declare function resolveAppVersion(): string;
60
63
  export declare function setActiveLocalWorkspace(workspace?: LocalWorkspace): void;
61
64
  export declare function getActiveLocalWorkspace(): LocalWorkspace | undefined;
62
65
  /** 当前已注册到 configuration.plugins 的内置文件工具编码;未注册时返回 undefined。 */
@@ -1,5 +1,5 @@
1
1
  export type { AgentPluginRegistor, AgentPluginMap, BotClientConfig, MCPConfig, McpServer } from './Config';
2
- export { configure, configuration, getRegisteredLocalFilesPluginCode, resolveLocalFilesPluginCode, } from './Config';
2
+ export { configure, configuration, getRegisteredLocalFilesPluginCode, resolveAppVersion, resolveLocalFilesPluginCode, } from './Config';
3
3
  export type { ISessionArtifact } from '@glodon-aiot/apis';
4
4
  export { default as BotClient } from './BotClient';
5
5
  export { default as Session } from './Session';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/bot-client-sdk",
3
- "version": "3.27.0-alpha.0",
3
+ "version": "3.27.0-alpha.1",
4
4
  "author": "glodoncv",
5
5
  "description": "aiot bot client js sdk",
6
6
  "type": "module",
@@ -69,7 +69,7 @@
69
69
  "registry": "https://registry.npmjs.org/"
70
70
  },
71
71
  "dependencies": {
72
- "@glodon-aiot/apis": "^3.27.0-alpha.0",
72
+ "@glodon-aiot/apis": "^3.27.0-alpha.1",
73
73
  "axios": "0.24.0",
74
74
  "dayjs": "^1.11.13",
75
75
  "js-base64": "^3.7.7",