@duckmind/dm 0.37.0 → 0.37.8
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/bin/dm.js +9 -6
- package/package.json +6 -6
package/bin/dm.js
CHANGED
|
@@ -18,7 +18,14 @@ if (!packageName) {
|
|
|
18
18
|
|
|
19
19
|
let packageJsonPath;
|
|
20
20
|
try {
|
|
21
|
-
|
|
21
|
+
const resolutionPaths = [
|
|
22
|
+
__dirname,
|
|
23
|
+
join(__dirname, ".."),
|
|
24
|
+
join(__dirname, "..", "node_modules"),
|
|
25
|
+
join(__dirname, "..", "lib", "node_modules"),
|
|
26
|
+
join(__dirname, "..", "..", "node_modules"),
|
|
27
|
+
];
|
|
28
|
+
packageJsonPath = require.resolve(`${packageName}/package.json`, { paths: resolutionPaths });
|
|
22
29
|
} catch (error) {
|
|
23
30
|
console.error(`Missing optional dependency ${packageName}. Reinstall @duckmind/dm for ${process.platform}/${process.arch}.`);
|
|
24
31
|
process.exit(1);
|
|
@@ -186,10 +193,6 @@ if (args[0] === "upgrade") {
|
|
|
186
193
|
process.exit(runUpgrade(args.slice(1)));
|
|
187
194
|
}
|
|
188
195
|
|
|
189
|
-
function isDuckmindUltraAlias(value) {
|
|
190
|
-
return value === "ultra" || value === "@preset/ultra" || value === "duckmind/ultra" || value === "duckmind/@preset/ultra";
|
|
191
|
-
}
|
|
192
|
-
|
|
193
196
|
let openrouterProvider = false;
|
|
194
197
|
let duckmindProvider = false;
|
|
195
198
|
let requestedModel;
|
|
@@ -219,7 +222,7 @@ for (let index = 0; index < args.length; index += 1) {
|
|
|
219
222
|
}
|
|
220
223
|
}
|
|
221
224
|
|
|
222
|
-
if (duckmindProvider
|
|
225
|
+
if (duckmindProvider) {
|
|
223
226
|
for (let index = 0; index < args.length; index += 1) {
|
|
224
227
|
const value = args[index];
|
|
225
228
|
if (value === "--provider" && index + 1 < args.length && args[index + 1] === "duckmind") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckmind/dm",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.8",
|
|
4
4
|
"description": "DuckMind (dm) terminal AI coworker",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@duckmind/dm-darwin-arm64": "0.37.
|
|
18
|
-
"@duckmind/dm-darwin-x64": "0.37.
|
|
19
|
-
"@duckmind/dm-linux-arm64": "0.37.
|
|
20
|
-
"@duckmind/dm-linux-x64": "0.37.
|
|
21
|
-
"@duckmind/dm-windows-x64": "0.37.
|
|
17
|
+
"@duckmind/dm-darwin-arm64": "0.37.8",
|
|
18
|
+
"@duckmind/dm-darwin-x64": "0.37.8",
|
|
19
|
+
"@duckmind/dm-linux-arm64": "0.37.8",
|
|
20
|
+
"@duckmind/dm-linux-x64": "0.37.8",
|
|
21
|
+
"@duckmind/dm-windows-x64": "0.37.8"
|
|
22
22
|
}
|
|
23
23
|
}
|