@getmikie/cli 1.1.91 → 1.1.92
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/mikie.mjs +4 -4
- package/lib/launcher.mjs +6 -0
- package/package.json +5 -5
package/bin/mikie.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
launchNativeCaptured,
|
|
11
11
|
launchNative,
|
|
12
12
|
prepareNativeLaunch,
|
|
13
|
+
resolveDependencyPackageJson,
|
|
13
14
|
resolveNativeBinary,
|
|
14
15
|
selectPlatformPackage,
|
|
15
16
|
translateArguments,
|
|
@@ -109,10 +110,9 @@ All commands execute the compiled Mikie native engine.`);
|
|
|
109
110
|
? path.join(stagingPrefix, "node_modules")
|
|
110
111
|
: path.join(stagingPrefix, "lib", "node_modules");
|
|
111
112
|
const stagedWrapper = path.join(nodeModules, "@getmikie", "cli", "package.json");
|
|
112
|
-
const stagedPlatform =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"package.json",
|
|
113
|
+
const stagedPlatform = resolveDependencyPackageJson(
|
|
114
|
+
stagedWrapper,
|
|
115
|
+
selected.packageName,
|
|
116
116
|
);
|
|
117
117
|
return {
|
|
118
118
|
wrapperPackageJson: stagedWrapper,
|
package/lib/launcher.mjs
CHANGED
|
@@ -185,6 +185,12 @@ export function translateArguments(arguments_) {
|
|
|
185
185
|
return ["serve", ...arguments_.slice(1)];
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
/** Resolve an installed dependency from the wrapper package that owns it. */
|
|
189
|
+
export function resolveDependencyPackageJson(wrapperPackageJson, dependencyPackageName) {
|
|
190
|
+
const wrapperRequire = createRequire(wrapperPackageJson);
|
|
191
|
+
return wrapperRequire.resolve(`${dependencyPackageName}/package.json`);
|
|
192
|
+
}
|
|
193
|
+
|
|
188
194
|
export async function resolveNativeBinary({
|
|
189
195
|
platform = process.platform,
|
|
190
196
|
arch = process.arch,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmikie/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.92",
|
|
4
4
|
"description": "Native Mikie relay launcher for MCP clients",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"node": ">=22"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@getmikie/darwin-arm64": "1.1.
|
|
24
|
-
"@getmikie/darwin-x64": "1.1.
|
|
25
|
-
"@getmikie/linux-x64-gnu": "1.1.
|
|
26
|
-
"@getmikie/win32-x64": "1.1.
|
|
23
|
+
"@getmikie/darwin-arm64": "1.1.92",
|
|
24
|
+
"@getmikie/darwin-x64": "1.1.92",
|
|
25
|
+
"@getmikie/linux-x64-gnu": "1.1.92",
|
|
26
|
+
"@getmikie/win32-x64": "1.1.92"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|