@howone/sdk 0.1.11 → 0.1.12

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.mjs CHANGED
@@ -254,7 +254,7 @@ var FloatingButton = ({
254
254
  // src/services/unified-oauth.ts
255
255
  var UnifiedAuthService = class {
256
256
  constructor() {
257
- this.API_BASE_URL = "https://create-x-backend.fly.dev";
257
+ this.API_BASE_URL = "https://create-x-backend-dev.fly.dev";
258
258
  }
259
259
  /**
260
260
  * 初始化 Google 登录流程
@@ -689,16 +689,16 @@ var AIWorkflowClient = class {
689
689
  * 按 ID 执行工作流:POST {baseUrl}/workflow/{workflowId}/execute
690
690
  * body: { input, options }
691
691
  */
692
- async executeWorkflow(workflowId, input, options) {
692
+ async executeWorkflow(workflowId, inputs, options) {
693
693
  if (!this.baseUrl) {
694
694
  throw new Error("AI workflow client requires a baseUrl (e.g. https://evoagentx-server.fly.dev)");
695
695
  }
696
- const url = `${this.baseUrl}/workflow/${encodeURIComponent(workflowId)}/execute`;
696
+ const url = `${this.baseUrl}/workflow/${workflowId}/execute`;
697
697
  try {
698
698
  const res = await this.fetchImpl(url, {
699
699
  method: "POST",
700
700
  headers: this.buildHeaders(),
701
- body: JSON.stringify({ input, options })
701
+ body: JSON.stringify({ inputs, options })
702
702
  });
703
703
  const data = await this.safeJson(res);
704
704
  if (!res.ok) {
@@ -842,9 +842,9 @@ function createAIWorkflowClientAxios(options = {}) {
842
842
  }
843
843
  });
844
844
  return {
845
- async executeWorkflow(workflowId, input, opts) {
846
- const url = `${baseUrl}/workflow/${encodeURIComponent(workflowId)}/execute`;
847
- const data = await client.post({ url, data: { input, options: opts } });
845
+ async executeWorkflow(workflowId, inputs, opts) {
846
+ const url = `${baseUrl}/workflow/${workflowId}/execute`;
847
+ const data = await client.post({ url, data: { inputs, options: opts } });
848
848
  return data;
849
849
  }
850
850
  };