chatroom-cli 1.88.2 → 1.88.3
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 +20 -3
- package/dist/index.js.map +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -113654,6 +113654,23 @@ function resolvePersistenceDbPath(machineId) {
|
|
|
113654
113654
|
}
|
|
113655
113655
|
var init_persistence_path = () => {};
|
|
113656
113656
|
|
|
113657
|
+
// src/daemon/entry/resolve-local-web-port.ts
|
|
113658
|
+
function resolveDefaultLocalWebPort(convexUrl = getConvexUrl()) {
|
|
113659
|
+
return isProductionConvexUrl(convexUrl) ? PRODUCTION_LOCAL_WEB_PORT : NON_PRODUCTION_LOCAL_WEB_PORT;
|
|
113660
|
+
}
|
|
113661
|
+
function resolveLocalWebPort(env2 = process.env, convexUrl = getConvexUrl()) {
|
|
113662
|
+
const override = env2.CHATROOM_LOCAL_WEB_PORT;
|
|
113663
|
+
if (override !== undefined && override !== "") {
|
|
113664
|
+
return Number(override);
|
|
113665
|
+
}
|
|
113666
|
+
return resolveDefaultLocalWebPort(convexUrl);
|
|
113667
|
+
}
|
|
113668
|
+
var PRODUCTION_LOCAL_WEB_PORT = 18765, NON_PRODUCTION_LOCAL_WEB_PORT = 28765;
|
|
113669
|
+
var init_resolve_local_web_port = __esm(() => {
|
|
113670
|
+
init_env();
|
|
113671
|
+
init_client2();
|
|
113672
|
+
});
|
|
113673
|
+
|
|
113657
113674
|
// src/daemon/domain/usecase/handle-agentic-query-inbound.ts
|
|
113658
113675
|
async function handleAgenticQueryInbound(deps, event) {
|
|
113659
113676
|
if (deps.deliverInbound) {
|
|
@@ -114805,7 +114822,7 @@ async function startDaemon() {
|
|
|
114805
114822
|
sessionId: init2.sessionId,
|
|
114806
114823
|
machineId: init2.machineId
|
|
114807
114824
|
});
|
|
114808
|
-
const localWebPort =
|
|
114825
|
+
const localWebPort = resolveLocalWebPort();
|
|
114809
114826
|
const localWeb = await startLocalWebServer({ host: "127.0.0.1", port: localWebPort }, { persistence, streamHub: daemonDeps.streamHub });
|
|
114810
114827
|
const subscribers = startAllSubscribers({
|
|
114811
114828
|
wsClient: wsClient2,
|
|
@@ -114826,7 +114843,6 @@ async function startDaemon() {
|
|
|
114826
114843
|
persistence.close();
|
|
114827
114844
|
}
|
|
114828
114845
|
}
|
|
114829
|
-
var DEFAULT_LOCAL_WEB_PORT = 18765;
|
|
114830
114846
|
var init_start_daemon = __esm(() => {
|
|
114831
114847
|
init_capabilities_bridge();
|
|
114832
114848
|
init_daemon_layers();
|
|
@@ -114835,6 +114851,7 @@ var init_start_daemon = __esm(() => {
|
|
|
114835
114851
|
init_deps();
|
|
114836
114852
|
init_init_daemon();
|
|
114837
114853
|
init_persistence_path();
|
|
114854
|
+
init_resolve_local_web_port();
|
|
114838
114855
|
init_subscriber_registry();
|
|
114839
114856
|
init_client2();
|
|
114840
114857
|
init_persistence();
|
|
@@ -115992,4 +116009,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
115992
116009
|
});
|
|
115993
116010
|
program2.parse();
|
|
115994
116011
|
|
|
115995
|
-
//# debugId=
|
|
116012
|
+
//# debugId=C6C301A0C18AEA2064756E2164756E21
|