standup-mr 0.1.0 → 0.1.1
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/dist/cli.js +8 -1
- package/dist/mcp/server.js +8 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-SKCJT2AY.js";
|
|
13
13
|
|
|
14
14
|
// src/cli/cli.ts
|
|
15
|
+
import { realpathSync } from "fs";
|
|
15
16
|
import { pathToFileURL } from "url";
|
|
16
17
|
import { parseArgs } from "util";
|
|
17
18
|
|
|
@@ -95,7 +96,13 @@ ${USAGE}
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
var entry = process.argv[1];
|
|
98
|
-
|
|
99
|
+
var entryUrl;
|
|
100
|
+
try {
|
|
101
|
+
entryUrl = entry ? pathToFileURL(realpathSync(entry)).href : void 0;
|
|
102
|
+
} catch {
|
|
103
|
+
entryUrl = void 0;
|
|
104
|
+
}
|
|
105
|
+
if (entryUrl && import.meta.url === entryUrl) {
|
|
99
106
|
main(process.argv.slice(2)).then((code) => {
|
|
100
107
|
process.exitCode = code;
|
|
101
108
|
});
|
package/dist/mcp/server.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// mcp/server.ts
|
|
4
|
+
import { realpathSync } from "fs";
|
|
4
5
|
import { pathToFileURL } from "url";
|
|
5
6
|
|
|
6
7
|
// src/config/config.ts
|
|
@@ -450,7 +451,13 @@ async function main() {
|
|
|
450
451
|
await server.connect(new StdioServerTransport());
|
|
451
452
|
}
|
|
452
453
|
var entry = process.argv[1];
|
|
453
|
-
|
|
454
|
+
var entryUrl;
|
|
455
|
+
try {
|
|
456
|
+
entryUrl = entry ? pathToFileURL(realpathSync(entry)).href : void 0;
|
|
457
|
+
} catch {
|
|
458
|
+
entryUrl = void 0;
|
|
459
|
+
}
|
|
460
|
+
if (entryUrl && import.meta.url === entryUrl) {
|
|
454
461
|
main().catch((error) => {
|
|
455
462
|
if (error instanceof Error && error.code === "ERR_MODULE_NOT_FOUND") {
|
|
456
463
|
process.stderr.write(
|