@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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
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,
|
|
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/${
|
|
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({
|
|
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,
|
|
846
|
-
const url = `${baseUrl}/workflow/${
|
|
847
|
-
const data = await client.post({ url, data: {
|
|
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
|
};
|