omnibot3000 1.10.4 → 1.10.5

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.
@@ -2,12 +2,25 @@ name: keep render alive
2
2
 
3
3
  on:
4
4
  schedule:
5
- - cron: "*/10 * * * *"
5
+ # Staggered schedules reduce the chance of skipped runs during top-of-hour load.
6
+ - cron: "1,6,11,16,21,26,31,36,41,46,51,56 * * * *"
7
+ - cron: "3,8,13,18,23,28,33,38,43,48,53,58 * * * *"
6
8
  workflow_dispatch:
7
9
 
8
10
  jobs:
9
11
  ping:
10
12
  runs-on: ubuntu-latest
13
+ timeout-minutes: 2
11
14
  steps:
12
15
  - name: Ping Render
13
- run: curl -fsS https://omnibot3000.onrender.com/api/config
16
+ run: |
17
+ curl \
18
+ --fail \
19
+ --show-error \
20
+ --silent \
21
+ --connect-timeout 10 \
22
+ --max-time 25 \
23
+ --retry 5 \
24
+ --retry-delay 5 \
25
+ --retry-all-errors \
26
+ https://omnibot3000.onrender.com/api/config
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "x-display-name": "OMNIBOT 3000",
4
4
  "description": "your omniscient source of truth",
5
5
  "private": false,
6
- "version": "1.10.4",
6
+ "version": "1.10.5",
7
7
  "type": "module",
8
8
  "author": {
9
9
  "name": "rez",
@@ -14,8 +14,6 @@ import styles from "@version/Version.module.css";
14
14
 
15
15
  import cls from "classnames";
16
16
 
17
- const API_PORT = Number(import.meta.env.API_PORT) || 3001;
18
-
19
17
  interface Package {
20
18
  name: string;
21
19
  version: [number, number, number];
@@ -23,8 +21,6 @@ interface Package {
23
21
  error?: string[];
24
22
  }
25
23
 
26
- export const PACKAGES_API = `${window.location.origin}:${API_PORT}${API_PATH}/packages`;
27
-
28
24
  const Version = () => {
29
25
  const chatStore = useChatCompletionStore();
30
26
 
@@ -34,7 +30,7 @@ const Version = () => {
34
30
  const [loading, setLoading] = useState<boolean>(false);
35
31
 
36
32
  const getResponse = async () => {
37
- const data = await fetch(PACKAGES_API);
33
+ const data = await fetch(`${API_PATH}/packages`);
38
34
 
39
35
  if (data.status !== 200) {
40
36
  const error = JSON.parse(await data.text()).error;
package/vite.config.ts CHANGED
@@ -14,12 +14,14 @@ export default defineConfig(({mode}) => {
14
14
  ]);
15
15
 
16
16
  console.info(
17
- "\n\x1b[1m\x1b[32m%s\x1b[0m %s \x1b[32m%s\x1b[0m %s \x1b[36m%s\x1b[0m",
17
+ "\n\x1b[1m\x1b[32m%s\x1b[0m %s \x1b[32m%s\n\n \x1b[0m %s \x1b[36m%s\n \x1b[0m %s \x1b[36m%s\x1b[0m",
18
18
  "→",
19
19
  "Running",
20
20
  `${pkg["x-display-name"]} v${pkg.version}`,
21
21
  "dev server at",
22
22
  `http://${env.DOMAIN}:${env.DEV_PORT}`,
23
+ "API server at",
24
+ `${env.API_PATH}:${env.API_PORT}`,
23
25
  );
24
26
 
25
27
  return {