mirror of
https://github.com/anywhere-labs/dsh-desktop.git
synced 2026-09-29 16:57:03 +08:00
Rebuild the vendored runtime from the newly pinned harness commit and repoint every consumer at 0.1.5-rc.2. Generated by scripts/sync-vendored-runtime.mjs --write for both channels: vendor/dsh-runtime/0.1.5-rc.2/ (265 tarballs + manifest), the 539 root resolutions, and the dependency ranges in both desktop editions and the community market. The 13 DSH patches are renamed from @0.1.5-rc.1.patch to @0.1.5-rc.2.patch and are otherwise byte-identical, so expectedResolution() keeps resolving them through the patch: protocol. The 5 third-party patches are untouched. Tests that pin patch filenames, peer ranges or the runtime version are updated to match. THIRD_PARTY_NOTICES.md is regenerated for both editions per CONTRIBUTING, and the README pair plus README.i18n.yaml hash records are updated where they state the pinned runtime version. No src/ changes.
57 lines
3.5 KiB
Diff
57 lines
3.5 KiB
Diff
diff --git a/lib/bin.js b/lib/bin.js
|
|
index 0ccc772..24db492 100755
|
|
--- a/lib/bin.js
|
|
+++ b/lib/bin.js
|
|
@@ -79,7 +79,7 @@ function resolveBoot(program, profile, options, args) {
|
|
* @param version - version string printed by `--version`.
|
|
* @returns the resolved invocation.
|
|
*/
|
|
-function parseDshArgs(argv, version) {
|
|
+function parseDshArgs(argv, version, allowDesktopProfile = false) {
|
|
let resolved;
|
|
const program = new Command();
|
|
program.name("dsh").version(version, "-V, --version", "output the version number").description("dsh: boot a DeepSeek Harness profile — an ordered stack of plugin-bundle patch layers under your own overrides.").addHelpText("after", HELP_EXAMPLES).exitOverride().helpOption(false).allowUnknownOption().passThroughOptions().enablePositionalOptions().argument("[args...]", "arguments for the booted profile's app (see: dsh --profile <name> --help)").option("--profile <name>", "the profile under $DSH_HOME/profiles to boot").option("--from-default-profile <name>", "initialize a new custom profile from a shipped profile template").option("--patch <path>", "extra patch-list overlay applied after the profile layer (repeatable)", collect).option("--dump-config", "print the composed profile tree and exit").option("--dump-default-config", "print the profile tree without its user layer or --patch overlays and exit").action((args, options) => {
|
|
@@ -89,7 +89,7 @@ function parseDshArgs(argv, version) {
|
|
}
|
|
const profile = options.profile;
|
|
if (profile === "") program.error("error: --profile needs a name");
|
|
- rejectElectronProfile(program, profile);
|
|
+ if (!allowDesktopProfile) rejectElectronProfile(program, profile);
|
|
resolved = resolveBoot(program, profile, options, args);
|
|
});
|
|
/** Reject parent options supplied before a subcommand. */
|
|
@@ -106,7 +106,7 @@ function parseDshArgs(argv, version) {
|
|
plugin.requiredOption("--profile <name>", "the profile whose plugins to manage (initialized on first use)").allowUnknownOption().argument("[args...]", "pnpm arguments, forwarded verbatim (add <pkg>, remove <pkg>, why <pkg>, ...)").action((args, options) => {
|
|
rejectParentOptions("plugin");
|
|
if (options.profile === "") program.error("error: --profile needs a name");
|
|
- rejectElectronProfile(plugin, options.profile);
|
|
+ if (!allowDesktopProfile) rejectElectronProfile(plugin, options.profile);
|
|
if (args.length === 0) program.error("error: plugin needs pnpm arguments to forward (e.g. add <package>)");
|
|
resolved = {
|
|
mode: "plugin",
|
|
@@ -138,8 +138,8 @@ function readVersion() {
|
|
* Run the public dsh command-line interface.
|
|
* @returns a promise that settles when the selected command mode finishes.
|
|
*/
|
|
-async function runCli() {
|
|
- const invocation = parseDshArgs(process.argv.slice(2), readVersion());
|
|
+async function runCli({ allowDesktopProfile = false } = {}) {
|
|
+ const invocation = parseDshArgs(process.argv.slice(2), readVersion(), allowDesktopProfile);
|
|
switch (invocation.mode) {
|
|
case "profile": {
|
|
const { runProfile } = await import("./profile-boot-BP_C0vpU.js");
|
|
diff --git a/lib/plugin-Ddi42qoW.js b/lib/plugin-Ddi42qoW.js
|
|
index bf2655e..d267f22 100644
|
|
--- a/lib/plugin-Ddi42qoW.js
|
|
+++ b/lib/plugin-Ddi42qoW.js
|
|
@@ -109,7 +109,8 @@ function runPlugin(profile, args) {
|
|
const result = spawnSync("pnpm", args.map((argument) => anchorPathSpec(argument, process.cwd())), {
|
|
cwd: dir,
|
|
stdio: "inherit",
|
|
- shell: process.platform === "win32"
|
|
+ shell: process.platform === "win32",
|
|
+ windowsHide: true
|
|
});
|
|
if (result.error !== void 0) {
|
|
if (result.error.code === "ENOENT") {
|