MCPcopy Create free account
hub / github.com/anus-dev/ANUS / handleUpdateRecieved

Function handleUpdateRecieved

packages/cli/src/utils/handleAutoUpdate.ts:85–100  ·  view source on GitHub ↗
(info: UpdateObject)

Source from the content-addressed store, hash-verified

83) {
84 let successfullyInstalled = false;
85 const handleUpdateRecieved = (info: UpdateObject) => {
86 setUpdateInfo(info);
87 const savedMessage = info.message;
88 setTimeout(() => {
89 if (!successfullyInstalled) {
90 addItem(
91 {
92 type: MessageType.INFO,
93 text: savedMessage,
94 },
95 Date.now(),
96 );
97 }
98 setUpdateInfo(null);
99 }, 60000);
100 };
101
102 const handleUpdateFailed = () => {
103 setUpdateInfo(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected