@howone/sdk 0.3.18 → 0.3.21

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
@@ -80,7 +80,7 @@ var init_config = __esm({
80
80
  prodEnv = {
81
81
  AUTH_ROOT_VALUE: "https://howone.ai",
82
82
  baseUrl: "https://api.howone.ai/api",
83
- aiBaseUrl: "https://evoagentx-server-deploy.fly.dev"
83
+ aiBaseUrl: "https://eax.services"
84
84
  };
85
85
  envs = {
86
86
  local: localEnv,
@@ -1769,6 +1769,8 @@ function ThemeToggle({ className }) {
1769
1769
  return /* @__PURE__ */ jsx11(
1770
1770
  "div",
1771
1771
  {
1772
+ className: `cursor-pointer ${className || ""}`,
1773
+ onClick: handleToggle,
1772
1774
  children: theme === "light" ? /* @__PURE__ */ jsx11(Icon3, { icon: "solar:sun-bold", width: 20, height: 20 }) : /* @__PURE__ */ jsx11(Icon3, { icon: "solar:moon-linear", width: 20, height: 20 })
1773
1775
  }
1774
1776
  );
@@ -2561,39 +2563,6 @@ function createUploadClient(req, projectId) {
2561
2563
  };
2562
2564
  }
2563
2565
 
2564
- // src/services/ai-client.ts
2565
- function createAIClient(req, projectId) {
2566
- const generateImageUrl = projectId ? `/entities/apps/${projectId}/generate-image` : "/generate-image";
2567
- return {
2568
- /**
2569
- * 生成/修改图片
2570
- *
2571
- * @example
2572
- * ```typescript
2573
- * const result = await client.ai.generateImage({
2574
- * imageUrl: 'https://example.com/image.jpg',
2575
- * description: '把天空改成蓝色'
2576
- * })
2577
- * console.log('新图片:', result.imageUrl)
2578
- * ```
2579
- */
2580
- async generateImage(options) {
2581
- const { imageUrl, description, signal } = options;
2582
- const response = await req.post({
2583
- url: generateImageUrl,
2584
- data: {
2585
- imageUrl,
2586
- description
2587
- },
2588
- signal
2589
- });
2590
- return {
2591
- imageUrl: response.data.result.imageUrl
2592
- };
2593
- }
2594
- };
2595
- }
2596
-
2597
2566
  // src/services/sse-executor.ts
2598
2567
  init_config();
2599
2568
  async function executeSSEWorkflow(request, options = {}) {
@@ -3697,20 +3666,6 @@ function createClient(opts) {
3697
3666
  * ```
3698
3667
  */
3699
3668
  upload: createUploadClient(bizWrapped, opts?.projectId),
3700
- /**
3701
- * AI 功能模块
3702
- *
3703
- * @example
3704
- * ```typescript
3705
- * // 图片生成/修改
3706
- * const result = await client.ai.generateImage({
3707
- * imageUrl: 'https://example.com/image.jpg',
3708
- * description: '把天空改成蓝色'
3709
- * })
3710
- * console.log('新图片:', result.imageUrl)
3711
- * ```
3712
- */
3713
- ai: createAIClient(bizWrapped, opts?.projectId),
3714
3669
  me: async () => {
3715
3670
  try {
3716
3671
  let availableToken = getCachedOrGlobalToken();
@@ -4214,7 +4169,6 @@ export {
4214
4169
  ThemeToggle,
4215
4170
  aiWorkflow,
4216
4171
  canAccessArtifact,
4217
- createAIClient,
4218
4172
  createAIWorkflowClient,
4219
4173
  createAIWorkflowClientAxios,
4220
4174
  createArtifactsClient,