@crazx/dsh 0.1.6-alpha.2.zw.1 → 0.1.6-alpha.2.zw.2
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/lib/bin.js +15 -26
- package/package.json +6 -6
package/lib/bin.js
CHANGED
|
@@ -104,19 +104,6 @@ function parseDshArgs(argv, version) {
|
|
|
104
104
|
rejectElectronProfile(program, profile);
|
|
105
105
|
resolved = resolveBoot(program, profile, options, args);
|
|
106
106
|
});
|
|
107
|
-
if (first === "plugin") {
|
|
108
|
-
const plugin = program.command("plugin").description("manage a profile's plugins by forwarding the remaining arguments to pnpm in the profile directory");
|
|
109
|
-
plugin.requiredOption("--profile <name>", "the profile whose plugins to manage (initialized on first use)", selectProfile).allowUnknownOption().argument("[args...]", "pnpm arguments, forwarded verbatim (add <pkg>, remove <pkg>, why <pkg>, ...)").action((args, options) => {
|
|
110
|
-
if (options.profile === "") program.error("error: --profile needs a name");
|
|
111
|
-
rejectElectronProfile(plugin, options.profile);
|
|
112
|
-
if (args.length === 0) program.error("error: plugin needs pnpm arguments to forward (e.g. add <package>)");
|
|
113
|
-
resolved = {
|
|
114
|
-
mode: "plugin",
|
|
115
|
-
profile: options.profile,
|
|
116
|
-
args
|
|
117
|
-
};
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
107
|
/** Reject parent options supplied before a subcommand. */
|
|
121
108
|
const rejectParentOptions = (command) => {
|
|
122
109
|
const parent = program.opts();
|
|
@@ -142,20 +129,22 @@ function parseDshArgs(argv, version) {
|
|
|
142
129
|
};
|
|
143
130
|
registerWebLog("web:log", false);
|
|
144
131
|
registerWebLog("web:log:tmp", true);
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
132
|
+
if (first === "plugin") {
|
|
133
|
+
const plugin = program.command("plugin").description("manage a profile's plugins by forwarding the remaining arguments to pnpm in the profile directory");
|
|
134
|
+
plugin.requiredOption("--profile <name>", "the profile whose plugins to manage (initialized on first use)", selectProfile).allowUnknownOption().argument("[args...]", "pnpm arguments, forwarded verbatim (add <pkg>, remove <pkg>, why <pkg>, ...)").action((args, options) => {
|
|
135
|
+
if (options.profile === "") program.error("error: --profile needs a name");
|
|
136
|
+
rejectElectronProfile(plugin, options.profile);
|
|
137
|
+
if (args.length === 0) program.error("error: plugin needs pnpm arguments to forward (e.g. add <package>)");
|
|
138
|
+
resolved = {
|
|
139
|
+
mode: "plugin",
|
|
140
|
+
profile: options.profile,
|
|
141
|
+
args
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
}
|
|
157
145
|
try {
|
|
158
|
-
const
|
|
146
|
+
const forkCommand = first === "plugin" || first === "web:log" || first === "web:log:tmp";
|
|
147
|
+
const expanded = first !== void 0 && !first.startsWith("-") && !forkCommand ? ["--profile", ...argv] : argv;
|
|
159
148
|
program.parse(expanded, { from: "user" });
|
|
160
149
|
} catch (error) {
|
|
161
150
|
return process.exit(error instanceof CommanderError ? error.exitCode : 1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crazx/dsh",
|
|
3
3
|
"description": "dsh CLI: profile launch, plugin management, and configuration inspection",
|
|
4
|
-
"version": "0.1.6-alpha.2.zw.
|
|
4
|
+
"version": "0.1.6-alpha.2.zw.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@deepseek-ai/dsh-cmdline": "^0.1.6-alpha.2",
|
|
45
45
|
"@deepseek-ai/dsh-command-compact": "^0.1.6-alpha.2",
|
|
46
46
|
"@deepseek-ai/dsh-command-goal": "^0.1.6-alpha.2",
|
|
47
|
-
"@deepseek-ai/dsh-compaction-basic": "npm:@crazx/dsh-compaction-basic@0.1.6-alpha.2.zw.
|
|
47
|
+
"@deepseek-ai/dsh-compaction-basic": "npm:@crazx/dsh-compaction-basic@0.1.6-alpha.2.zw.2",
|
|
48
48
|
"@deepseek-ai/dsh-compaction-tool-result-pruner": "^0.1.6-alpha.2",
|
|
49
49
|
"@deepseek-ai/dsh-cordis-client-runner": "^0.1.6-alpha.2",
|
|
50
50
|
"@deepseek-ai/dsh-experimental-agent-team-profile": "^0.1.6-alpha.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@deepseek-ai/dsh-hooks-codex": "^0.1.6-alpha.2",
|
|
59
59
|
"@deepseek-ai/dsh-jobs-local": "^0.1.6-alpha.2",
|
|
60
60
|
"@deepseek-ai/dsh-launch-environment": "^0.1.6-alpha.2",
|
|
61
|
-
"@deepseek-ai/dsh-mcp-client": "npm:@crazx/dsh-mcp-client@0.1.6-alpha.2.zw.
|
|
61
|
+
"@deepseek-ai/dsh-mcp-client": "npm:@crazx/dsh-mcp-client@0.1.6-alpha.2.zw.2",
|
|
62
62
|
"@deepseek-ai/dsh-persona": "^0.1.6-alpha.2",
|
|
63
63
|
"@deepseek-ai/dsh-plan-mode": "^0.1.6-alpha.2",
|
|
64
64
|
"@deepseek-ai/dsh-pwsh-local": "^0.1.6-alpha.2",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@deepseek-ai/dsh-tool-ask-user": "^0.1.6-alpha.2",
|
|
79
79
|
"@deepseek-ai/dsh-tool-bash": "^0.1.6-alpha.2",
|
|
80
80
|
"@deepseek-ai/dsh-tool-bash-persistent": "^0.1.6-alpha.2",
|
|
81
|
-
"@deepseek-ai/dsh-tool-cordis": "npm:@crazx/dsh-tool-cordis@0.1.6-alpha.2.zw.
|
|
81
|
+
"@deepseek-ai/dsh-tool-cordis": "npm:@crazx/dsh-tool-cordis@0.1.6-alpha.2.zw.2",
|
|
82
82
|
"@deepseek-ai/dsh-tool-present": "^0.1.6-alpha.2",
|
|
83
83
|
"@deepseek-ai/dsh-tool-fs": "^0.1.6-alpha.2",
|
|
84
84
|
"@deepseek-ai/dsh-tool-fs-search": "^0.1.6-alpha.2",
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"@deepseek-ai/dsh-experimental-tool-agent-team": "^0.1.6-alpha.2",
|
|
123
123
|
"@deepseek-ai/dsh-fs-observation-policy": "^0.1.6-alpha.2",
|
|
124
124
|
"@deepseek-ai/dsh-fs-sandbox": "^0.1.6-alpha.2",
|
|
125
|
-
"@deepseek-ai/dsh-host-frontend-static": "npm:@crazx/dsh-host-frontend-static@0.1.6-alpha.2.zw.
|
|
125
|
+
"@deepseek-ai/dsh-host-frontend-static": "npm:@crazx/dsh-host-frontend-static@0.1.6-alpha.2.zw.2",
|
|
126
126
|
"@deepseek-ai/dsh-host-webserver": "^0.1.6-alpha.2",
|
|
127
127
|
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
128
128
|
"@deepseek-ai/dsh-llm-deepseek": "^0.1.6-alpha.2",
|
|
129
129
|
"@deepseek-ai/dsh-llm-mock-server": "^0.1.6-alpha.2",
|
|
130
|
-
"@deepseek-ai/dsh-llm-pi-ai": "npm:@crazx/dsh-llm-pi-ai@0.1.6-alpha.2.zw.
|
|
130
|
+
"@deepseek-ai/dsh-llm-pi-ai": "npm:@crazx/dsh-llm-pi-ai@0.1.6-alpha.2.zw.2",
|
|
131
131
|
"@deepseek-ai/dsh-llm-replay": "^0.1.6-alpha.2",
|
|
132
132
|
"@deepseek-ai/dsh-loader-smoke": "^0.1.6-alpha.2",
|
|
133
133
|
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "^0.1.6-alpha.2",
|