@lincyaw/dsh 0.2.0-rc.34 → 0.2.0-rc.36
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/package.json +7 -7
- package/src/node/launch.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincyaw/dsh",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.36",
|
|
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": {
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"node-addon-require-builtin": "0.1.9",
|
|
86
86
|
"ws": "8.22.0",
|
|
87
87
|
"zod": "4.4.3",
|
|
88
|
-
"@lincyaw/cli": "1.0.0-rc.
|
|
89
|
-
"@lincyaw/
|
|
90
|
-
"@lincyaw/
|
|
91
|
-
"@lincyaw/skills": "1.0.0-rc.
|
|
88
|
+
"@lincyaw/cli": "1.0.0-rc.37",
|
|
89
|
+
"@lincyaw/mcp": "1.0.0-rc.37",
|
|
90
|
+
"@lincyaw/kernel": "1.0.0-rc.37",
|
|
91
|
+
"@lincyaw/skills": "1.0.0-rc.37"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@deepseek-ai/dsh": "0.2.1-alpha.4"
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"react": "18.3.1",
|
|
105
105
|
"react-dom": "18.3.1",
|
|
106
106
|
"react-resizable-panels": "^4.14.5",
|
|
107
|
-
"@lincyaw/design": "1.0.0-rc.
|
|
108
|
-
"@lincyaw/workbench": "0.2.0-rc.
|
|
107
|
+
"@lincyaw/design": "1.0.0-rc.37",
|
|
108
|
+
"@lincyaw/workbench": "0.2.0-rc.37"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {}
|
|
111
111
|
}
|
package/src/node/launch.ts
CHANGED
|
@@ -51,7 +51,7 @@ export function launchEnv(dshHome: string, env: NodeJS.ProcessEnv = process.env)
|
|
|
51
51
|
|
|
52
52
|
/** The variables a launcher sets for the processes it starts; they are never inherited from its own environment. */
|
|
53
53
|
export function isLauncherVariable(name: string): boolean {
|
|
54
|
-
return /^(?:DSH_|PRESMIUM_MODEL_|PRESMIUM_SERVICE_)/.test(name) || ['PRESMIUM_WORKSPACE', 'NODE_ENV', 'PORT'].includes(name)
|
|
54
|
+
return /^(?:DSH_|PRESMIUM_MODEL_|PRESMIUM_SERVICE_|PRESMIUM_MCP_)/.test(name) || ['PRESMIUM_WORKSPACE', 'NODE_ENV', 'PORT'].includes(name)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export function inheritedEnv(env: NodeJS.ProcessEnv, drop: (name: string) => boolean): Record<string, string> {
|
|
@@ -147,10 +147,10 @@ export interface LaunchedWorkspaceServer {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/** Starts `presmium serve <dir> --port <port, default 0: a free one> [args]` with `launchNode`, in `workspaceServerEnv`. */
|
|
150
|
-
export function launchWorkspaceServer(options: { presmium: string, dir: string, serviceToken: string, port?: number, args?: string[], env?: NodeJS.ProcessEnv, onOutput?(text: string): void }): LaunchedWorkspaceServer {
|
|
150
|
+
export function launchWorkspaceServer(options: { presmium: string, dir: string, serviceToken: string, mcpToken?: string, port?: number, args?: string[], env?: NodeJS.ProcessEnv, onOutput?(text: string): void }): LaunchedWorkspaceServer {
|
|
151
151
|
const server = launchNode('presmium serve', [options.presmium, 'serve', options.dir, '--port', String(options.port ?? 0), ...options.args ?? []], {
|
|
152
152
|
cwd: options.dir,
|
|
153
|
-
env: workspaceServerEnv(options.env ?? process.env, options.serviceToken),
|
|
153
|
+
env: { ...workspaceServerEnv(options.env ?? process.env, options.serviceToken), ...options.mcpToken ? { PRESMIUM_MCP_TOKEN: options.mcpToken } : {} },
|
|
154
154
|
...options.onOutput ? { onOutput: options.onOutput } : {},
|
|
155
155
|
})
|
|
156
156
|
const ready = (async () => {
|