@lincyaw/dsh 0.2.0-rc.24 → 0.2.0-rc.26

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.
@@ -45,6 +45,7 @@
45
45
  "../kernel/src/contracts/projects.ts",
46
46
  "../kernel/src/contracts/document-image.ts",
47
47
  "../kernel/src/contracts.ts",
48
+ "../kernel/src/random-uuid.ts",
48
49
  "../kernel/src/document-operations.ts",
49
50
  "../kernel/src/document-schema.ts",
50
51
  "../kernel/src/authoring.ts",
@@ -127,6 +128,7 @@
127
128
  "../workbench/src/preview.ts",
128
129
  "../workbench/src/caption-timing.ts",
129
130
  "../workbench/src/document-draft-store.ts",
131
+ "../workbench/src/sha256.ts",
130
132
  "../workbench/src/document-editor/comment-drafts.ts",
131
133
  "../workbench/src/component-property-drafts.ts",
132
134
  "../workbench/src/component-properties.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/dsh",
3
- "version": "0.2.0-rc.24",
3
+ "version": "0.2.0-rc.26",
4
4
  "description": "Presmium's bundle for DeepSeek Harness: the workbench of presmium studio, its host side (Presmium's tools, approvals, document context, skills and routes) and its client side (the root layout and the workbench's panels, precompiled) (experimental)",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -84,10 +84,10 @@
84
84
  "jiti": "^2.7.0",
85
85
  "ws": "8.22.0",
86
86
  "zod": "4.4.3",
87
- "@lincyaw/cli": "1.0.0-rc.25",
88
- "@lincyaw/mcp": "1.0.0-rc.25",
89
- "@lincyaw/skills": "1.0.0-rc.25",
90
- "@lincyaw/kernel": "1.0.0-rc.25"
87
+ "@lincyaw/cli": "1.0.0-rc.27",
88
+ "@lincyaw/kernel": "1.0.0-rc.27",
89
+ "@lincyaw/skills": "1.0.0-rc.27",
90
+ "@lincyaw/mcp": "1.0.0-rc.27"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@deepseek-ai/dsh": "0.2.1-alpha.4"
@@ -103,8 +103,8 @@
103
103
  "react": "18.3.1",
104
104
  "react-dom": "18.3.1",
105
105
  "react-resizable-panels": "^4.14.5",
106
- "@lincyaw/workbench": "0.2.0-rc.24",
107
- "@lincyaw/design": "1.0.0-rc.25"
106
+ "@lincyaw/design": "1.0.0-rc.27",
107
+ "@lincyaw/workbench": "0.2.0-rc.26"
108
108
  },
109
109
  "scripts": {}
110
110
  }
@@ -37,6 +37,12 @@ export function apply(ctx: DshContext): void {
37
37
  const value = request.headers.get(name)
38
38
  if (value !== null) headers[name] = value
39
39
  }
40
+ if (path === 'preview') {
41
+ const browser = new URL(request.url)
42
+ const host = request.headers.get('host')
43
+ if (host) browser.host = host
44
+ headers['x-presmium-preview-origin'] = browser.origin
45
+ }
40
46
  const upstream = await ctx.presmium.server.request(`${target}${new URL(request.url).search}`, {
41
47
  method: request.method,
42
48
  headers,