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

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 };
@@ -10,7 +10,7 @@ declare const TYPERT: {
10
10
  readonly events: readonly [];
11
11
  readonly objects: readonly [];
12
12
  };
13
- readonly invocations: readonly ({
13
+ readonly invocations: readonly (StudioRemoteDescriptor | {
14
14
  id: string;
15
15
  service: string;
16
16
  namespace: string;
@@ -835,7 +835,7 @@ declare const TYPERT: {
835
835
  sha256: import("zod").ZodString;
836
836
  }, import("zod/v4/core").$strict>;
837
837
  };
838
- } | StudioRemoteDescriptor)[];
838
+ })[];
839
839
  };
840
840
  //#endregion
841
841
  export { TYPERT, TYPERT as default };