@chatu-ai/builder-sdk 0.2.1 → 0.2.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.
package/dist/client.d.ts CHANGED
@@ -159,6 +159,15 @@ export interface BuilderClient {
159
159
  /** 推送到用户 Git 仓库;沙箱未运行时 ok=false, error='SANDBOX_NOT_RUNNING' */
160
160
  pushGit(conversationId: string, input: GitPushInput): Promise<GitPushResult>;
161
161
  };
162
+ /** 平台数据能力接入信息(技术方案 15):线上部署所需环境变量;apiKey 为服务端密钥 */
163
+ data: {
164
+ access(conversationId: string): Promise<{
165
+ baseUrl?: string | null;
166
+ apiKey: string;
167
+ envs: string[];
168
+ envVars: Record<string, string | null>;
169
+ }>;
170
+ };
162
171
  export: {
163
172
  /**
164
173
  * 导出应用源码 ZIP(含 Dockerfile/DEPLOY.md)。沙箱未运行时服务端返回 409 SANDBOX_NOT_RUNNING —— 调用方先 sandbox.wake()。
package/dist/client.js CHANGED
@@ -86,6 +86,9 @@ export function createBuilderClient(options) {
86
86
  saveSetting: (id, input) => req(`/${id}/deploy-settings`, { method: 'PUT', headers: { 'content-type': 'application/json' }, body: JSON.stringify(input) }),
87
87
  pushGit: (id, input) => req(`/${id}/export/git`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(input) }),
88
88
  },
89
+ data: {
90
+ access: id => req(`/${id}/data-access`),
91
+ },
89
92
  export: {
90
93
  zip: async (id) => {
91
94
  const res = await doFetch(`${restBase}/${id}/export/zip`, auth.apply({}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatu-ai/builder-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "ChatU Builder client SDK core: REST + streaming client, zod event schemas, seq resume",
5
5
  "license": "MIT",
6
6
  "type": "module",