midsomar 0.1.13 → 0.1.15
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/index.js +8 -12
- package/package.json +1 -1
- package/scripts/postinstall.js +14 -19
package/dist/index.js
CHANGED
|
@@ -3,15 +3,16 @@ import { startEngine, serveUI } from "./server.js";
|
|
|
3
3
|
const defaultPort = 3000;
|
|
4
4
|
const defaultHost = "127.0.0.1";
|
|
5
5
|
const art = `
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
███╗ ███╗██╗██████╗ ███████╗ ██████╗ ███╗ ███╗ █████╗ ██████╗
|
|
7
|
+
████╗ ████║██║██╔══██╗██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔══██╗
|
|
8
|
+
██╔████╔██║██║██║ ██║███████╗██║ ██║██╔████╔██║███████║██████╔╝
|
|
9
|
+
██║╚██╔╝██║██║██║ ██║╚════██║██║ ██║██║╚██╔╝██║██╔══██║██╔══██╗
|
|
10
|
+
██║ ╚═╝ ██║██║██████╔╝███████║╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ██║
|
|
11
|
+
╚═╝ ╚═╝╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
|
|
10
12
|
`;
|
|
11
13
|
function help() {
|
|
12
14
|
process.stdout.write(`${art}
|
|
13
|
-
|
|
14
|
-
AI coding agent — open-source
|
|
15
|
+
midsomar - AI coding agent
|
|
15
16
|
|
|
16
17
|
Usage:
|
|
17
18
|
npx midsomar web [options]
|
|
@@ -59,12 +60,7 @@ async function cmdWeb(args) {
|
|
|
59
60
|
hostname: host,
|
|
60
61
|
});
|
|
61
62
|
const url = `http://${host}:${ui.port}`;
|
|
62
|
-
process.stdout.write(
|
|
63
|
-
─────────────────────────────────────
|
|
64
|
-
midsomar ready at ${url}
|
|
65
|
-
─────────────────────────────────────
|
|
66
|
-
Next: open ${url} in your browser
|
|
67
|
-
`);
|
|
63
|
+
process.stdout.write(`midsomar ready at ${url}\n`);
|
|
68
64
|
const { default: open } = await import("open");
|
|
69
65
|
open(url).catch(() => { });
|
|
70
66
|
process.on("SIGINT", () => { engine.kill(); ui.close(); process.exit(0); });
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
https://opencode.ai
|
|
16
|
-
|
|
17
|
-
Report issues:
|
|
18
|
-
https://github.com/anomalyco/opencode/issues
|
|
19
|
-
`)
|
|
1
|
+
const msg = `
|
|
2
|
+
███╗ ███╗██╗██████╗ ███████╗ ██████╗ ███╗ ███╗ █████╗ ██████╗
|
|
3
|
+
████╗ ████║██║██╔══██╗██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔══██╗
|
|
4
|
+
██╔████╔██║██║██║ ██║███████╗██║ ██║██╔████╔██║███████║██████╔╝
|
|
5
|
+
██║╚██╔╝██║██║██║ ██║╚════██║██║ ██║██║╚██╔╝██║██╔══██║██╔══██╗
|
|
6
|
+
██║ ╚═╝ ██║██║██████╔╝███████║╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ██║
|
|
7
|
+
╚═╝ ╚═╝╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
|
|
8
|
+
|
|
9
|
+
midsomar - AI coding agent
|
|
10
|
+
|
|
11
|
+
Next step:
|
|
12
|
+
npx midsomar web
|
|
13
|
+
`
|
|
14
|
+
process.stderr.write(msg)
|