@hasna/conversations 0.1.12 → 0.1.13
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/index.js +5 -5
- package/bin/mcp.js +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -3137,7 +3137,7 @@ var init_presence = __esm(() => {
|
|
|
3137
3137
|
var require_package = __commonJS((exports, module) => {
|
|
3138
3138
|
module.exports = {
|
|
3139
3139
|
name: "@hasna/conversations",
|
|
3140
|
-
version: "0.1.
|
|
3140
|
+
version: "0.1.13",
|
|
3141
3141
|
description: "Real-time CLI messaging for AI agents",
|
|
3142
3142
|
type: "module",
|
|
3143
3143
|
bin: {
|
|
@@ -32936,8 +32936,8 @@ function isSameOrigin(req) {
|
|
|
32936
32936
|
return false;
|
|
32937
32937
|
return origin === new URL(req.url).origin;
|
|
32938
32938
|
}
|
|
32939
|
-
function startDashboardServer(port =
|
|
32940
|
-
const resolvedPort = normalizePort(port,
|
|
32939
|
+
function startDashboardServer(port = 0, host) {
|
|
32940
|
+
const resolvedPort = normalizePort(port, 0);
|
|
32941
32941
|
const resolvedHost = normalizeHost(host ?? process.env.CONVERSATIONS_DASHBOARD_HOST);
|
|
32942
32942
|
const dashboardDist = join3(import.meta.dir, "../../dashboard/dist");
|
|
32943
32943
|
const hasDist = existsSync(dashboardDist);
|
|
@@ -33350,7 +33350,7 @@ var init_serve = __esm(() => {
|
|
|
33350
33350
|
init_presence();
|
|
33351
33351
|
isDirectRun2 = import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith("serve.ts") || process.argv[1]?.endsWith("serve.js");
|
|
33352
33352
|
if (isDirectRun2) {
|
|
33353
|
-
const port = normalizePort(process.env.PORT,
|
|
33353
|
+
const port = normalizePort(process.env.PORT, 0);
|
|
33354
33354
|
startDashboardServer(port);
|
|
33355
33355
|
}
|
|
33356
33356
|
});
|
|
@@ -35218,7 +35218,7 @@ program2.command("mcp").description("Start MCP server").action(async () => {
|
|
|
35218
35218
|
});
|
|
35219
35219
|
program2.command("dashboard").description("Start web dashboard").option("--port <port>", "Port to listen on", parseInt).option("--host <host>", "Host to bind (default: 127.0.0.1)").action(async (opts) => {
|
|
35220
35220
|
const { startDashboardServer: startDashboardServer2 } = await Promise.resolve().then(() => (init_serve(), exports_serve));
|
|
35221
|
-
const port = Number.isFinite(opts.port) && opts.port >= 0 && opts.port <= 65535 ? opts.port :
|
|
35221
|
+
const port = Number.isFinite(opts.port) && opts.port >= 0 && opts.port <= 65535 ? opts.port : 0;
|
|
35222
35222
|
startDashboardServer2(port, opts.host);
|
|
35223
35223
|
});
|
|
35224
35224
|
program2.action(() => {
|
package/bin/mcp.js
CHANGED
|
@@ -29554,7 +29554,7 @@ function renameAgent(oldName, newName) {
|
|
|
29554
29554
|
// package.json
|
|
29555
29555
|
var package_default = {
|
|
29556
29556
|
name: "@hasna/conversations",
|
|
29557
|
-
version: "0.1.
|
|
29557
|
+
version: "0.1.13",
|
|
29558
29558
|
description: "Real-time CLI messaging for AI agents",
|
|
29559
29559
|
type: "module",
|
|
29560
29560
|
bin: {
|