@lincyaw/dsh 0.2.0-rc.30 → 0.2.0-rc.31
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 +8 -7
- package/src/node/launch.ts +7 -2
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.31",
|
|
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": {
|
|
@@ -82,12 +82,13 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"eventsource": "3.0.7",
|
|
84
84
|
"jiti": "^2.7.0",
|
|
85
|
+
"node-addon-require-builtin": "0.1.9",
|
|
85
86
|
"ws": "8.22.0",
|
|
86
87
|
"zod": "4.4.3",
|
|
87
|
-
"@lincyaw/cli": "1.0.0-rc.
|
|
88
|
-
"@lincyaw/
|
|
89
|
-
"@lincyaw/
|
|
90
|
-
"@lincyaw/
|
|
88
|
+
"@lincyaw/cli": "1.0.0-rc.32",
|
|
89
|
+
"@lincyaw/skills": "1.0.0-rc.32",
|
|
90
|
+
"@lincyaw/kernel": "1.0.0-rc.32",
|
|
91
|
+
"@lincyaw/mcp": "1.0.0-rc.32"
|
|
91
92
|
},
|
|
92
93
|
"peerDependencies": {
|
|
93
94
|
"@deepseek-ai/dsh": "0.2.1-alpha.4"
|
|
@@ -103,8 +104,8 @@
|
|
|
103
104
|
"react": "18.3.1",
|
|
104
105
|
"react-dom": "18.3.1",
|
|
105
106
|
"react-resizable-panels": "^4.14.5",
|
|
106
|
-
"@lincyaw/
|
|
107
|
-
"@lincyaw/
|
|
107
|
+
"@lincyaw/design": "1.0.0-rc.32",
|
|
108
|
+
"@lincyaw/workbench": "0.2.0-rc.32"
|
|
108
109
|
},
|
|
109
110
|
"scripts": {}
|
|
110
111
|
}
|
package/src/node/launch.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { spawn } from 'node:child_process'
|
|
|
2
2
|
import type { ChildProcess } from 'node:child_process'
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, realpathSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'
|
|
4
4
|
import { createRequire } from 'node:module'
|
|
5
|
-
import { dirname, join } from 'node:path'
|
|
5
|
+
import { delimiter, dirname, join } from 'node:path'
|
|
6
6
|
import { fileURLToPath } from 'node:url'
|
|
7
7
|
import { machineState, NODE_RESOURCE_ARGS, nodeResourceArgs, resourceEnvironment } from '@lincyaw/kernel/node'
|
|
8
8
|
export { bracketIPv6, systemLocale } from '@lincyaw/kernel/node'
|
|
@@ -41,7 +41,12 @@ export function dshBin(from = PACKAGE_DIR): string {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export function launchEnv(dshHome: string, env: NodeJS.ProcessEnv = process.env): Record<string, string> {
|
|
44
|
-
|
|
44
|
+
// The native addon's shared CJS loader resolves its optional platform package from its own directory.
|
|
45
|
+
// Strict pnpm installs keep that package beside the entry package instead; expose its declared dependencies.
|
|
46
|
+
const nativeModules = dirname(dirname(createRequire(import.meta.url).resolve('node-addon-require-builtin/package.json')))
|
|
47
|
+
return resourceEnvironment({ DSH_HOME: dshHome, DSH_AGENTS_HOME: join(dshHome, 'agents'), DSH_TELEMETRY_MODE: 'DISABLED', PRESMIUM_MAX_THREADS: env.PRESMIUM_MAX_THREADS,
|
|
48
|
+
NODE_PATH: [nativeModules, env.NODE_PATH].filter(Boolean).join(delimiter),
|
|
49
|
+
}, 'interactive')
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
/** The variables a launcher sets for the processes it starts; they are never inherited from its own environment. */
|