oncall-cli 3.0.3 → 3.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,9 +13,11 @@ import { useWebSocket } from "./useWebSocket.js";
13
13
  import { config } from "./config.js";
14
14
  import Spinner from "ink-spinner";
15
15
  import { HumanMessage } from "langchain";
16
+ import { SystemMessage } from "@langchain/core/messages";
16
17
  import { loadProjectMetadata, fetchProjectsFromCluster, logd } from "./helpers/cli-helpers.js";
17
18
  import logsManager from "./logsManager.js";
18
19
  import { extractMessageContent } from "./utils.js";
20
+ const initialAssistantMessage = new SystemMessage("I'm watching your app run locally. You can ask me about errors, logs, performance,or anything else related to this run.");
19
21
  dotenv.config();
20
22
  if (typeof process !== "undefined" && process.on) {
21
23
  process.on("SIGINT", () => {
@@ -195,7 +197,7 @@ const getShortcutsForMode = (mode) => {
195
197
  { shortcut: "[Enter]", description: "Send" },
196
198
  { shortcut: "[Ctrl+D]", description: ctrlDAction },
197
199
  { shortcut: "[Ctrl+C]", description: "Exit" },
198
- { shortcut: "[Ctrl+R]", description: "Reload AI chat" },
200
+ // { shortcut: "[Ctrl+R]", description: "Reload AI chat" },
199
201
  ];
200
202
  };
201
203
  export const App = () => {
@@ -603,12 +605,14 @@ export const App = () => {
603
605
  setChatResponseMessages(() => []);
604
606
  setTrimmedChats(() => []);
605
607
  setCompleteChatHistory(() => []);
608
+ setVisibleChats([initialAssistantMessage]);
606
609
  setGraphState(null);
607
- setSocketId[""];
608
- socket?.close();
609
- setIsConnected(false);
610
+ // setSocketId("");
611
+ setChatScroll(0);
612
+ // socket?.close();
613
+ // setIsConnected(false);
610
614
  setIsLoading(false);
611
- connectWebSocket();
615
+ // connectWebSocket();
612
616
  setActivePane("input");
613
617
  return;
614
618
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oncall-cli",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "oncall": "bin/oncall.js"