@yugoo-design/dsh-design-studio-dsh 0.2.3 → 0.2.6

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.
@@ -1,5 +1,5 @@
1
1
  import { prepareStudioAuthoringDirectory } from "./authoring-reference-store.js";
2
- import { t as DshStudioAuthoringService } from "./authoring-service-WClXJGik.js";
2
+ import { t as DshStudioAuthoringService } from "./authoring-service-BRUrHzSH.js";
3
3
  import { dshHomePath } from "@deepseek-ai/dsh-home-paths";
4
4
  //#region src/authoring-entry.ts
5
5
  const name = "studio-authoring";
@@ -102,10 +102,12 @@ function registerStudioCustomizationTool(ctx, service) {
102
102
  break;
103
103
  default: throw new Error("Unknown Studio customization action");
104
104
  }
105
- const candidate = args.action === "prepareChanges" ? STUDIO_AUTHORING_RPC_SCHEMAS.prepareChanges.result.parse(result) : void 0;
105
+ const studioPath = (args.action === "prepareChanges" ? STUDIO_AUTHORING_RPC_SCHEMAS.prepareChanges.result.parse(result) : void 0)?.authoring?.url ?? `/design-studio/?agentId=${encodeURIComponent(String(agent.id))}`;
106
+ const webServer = ctx.get("webServer");
107
+ const studioUrl = webServer ? new URL(studioPath, `http://127.0.0.1:${webServer.port}`).href : studioPath;
106
108
  return { content: JSON.stringify({
107
109
  result,
108
- studioUrl: candidate?.authoring?.url ?? `/design-studio/?agentId=${encodeURIComponent(String(agent.id))}`
110
+ studioUrl
109
111
  }) };
110
112
  }
111
113
  }));
@@ -1,2 +1,2 @@
1
- import { t as DshStudioAuthoringService } from "./authoring-service-WClXJGik.js";
1
+ import { t as DshStudioAuthoringService } from "./authoring-service-BRUrHzSH.js";
2
2
  export { DshStudioAuthoringService, DshStudioAuthoringService as default };
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/lib/page-client.js
3
- size: 38615910 bytes
4
- sha256: eaac301bb7cc3c4b92ee108166d4c380246944328a7ac8f1b0b67083b447b800
3
+ size: 38635837 bytes
4
+ sha256: 2a58f979c56fe4aa27442a97ea79b76492943886d96f4c3ee56c12f19b2874cc