openrod 0.1.3 → 0.2.0-rc.2
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/assets/{index-HZ0q_FBv.css → index-BXCNsM6h.css} +1 -1
- package/dist/assets/{index-DBqg9X9x.js → index-X6JTD5c-.js} +121 -121
- package/dist/assets/{terminal-view-D-SQcdM5.js → terminal-view-BjA2bW9M.js} +1 -1
- package/dist/cloud-agents/codex-character.png +0 -0
- package/dist/index.html +2 -2
- package/dist/logos/SOURCES.md +1 -0
- package/package.json +1 -1
- package/server/cloud-origin.js +4 -2
- package/shared/cloud-origin.js +1 -0
- package/src/lib/cloud-origin.js +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as en,a as tn,r as Re,d as sn,s as hs,b as Xe,c as ls,e as cs,f as rn,j as V,p as ds,T as nn,L as on,B as us,R as an,D as hn,g as ln,C as cn,h as dn,i as un,t as _n}from"./index-
|
|
1
|
+
import{u as en,a as tn,r as Re,d as sn,s as hs,b as Xe,c as ls,e as cs,f as rn,j as V,p as ds,T as nn,L as on,B as us,R as an,D as hn,g as ln,C as cn,h as dn,i as un,t as _n}from"./index-X6JTD5c-.js";/**
|
|
2
2
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
3
3
|
* @license MIT
|
|
4
4
|
*
|
|
Binary file
|
package/dist/index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<meta name="theme-color" content="#ffffff" />
|
|
8
8
|
<meta name="description" content="OpenRod — sandboxes, templates, and activity." />
|
|
9
9
|
<title>OpenRod</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-X6JTD5c-.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BXCNsM6h.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/dist/logos/SOURCES.md
CHANGED
|
@@ -33,6 +33,7 @@ Every SVG in this directory is bundled locally so the console never contacts a l
|
|
|
33
33
|
| `agents/openclaw-color.svg` | Lobe Icons | `openclaw-color` |
|
|
34
34
|
| `agents/opencode.svg` | Lobe Icons | `opencode` |
|
|
35
35
|
| `agents/pi.svg` | Lobe Icons | `pi` |
|
|
36
|
+
| `../cloud-agents/codex-character.png` | OpenRod authors | Codex character from the OpenRod website cloud |
|
|
36
37
|
| `templates/debian.svg` | Devicon | `debian-original` |
|
|
37
38
|
| `templates/nodejs.svg` | Devicon | `nodejs-original` |
|
|
38
39
|
| `templates/python.svg` | Devicon | `python-original` |
|
package/package.json
CHANGED
package/server/cloud-origin.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { DEFAULT_CLOUD_ORIGIN } from '../shared/cloud-origin.js'
|
|
2
|
+
|
|
3
|
+
// Local clients use the hosted console by default. An explicit empty override disables cloud.
|
|
2
4
|
export const CLOUD_SOON = 'Cloud is coming soon.'
|
|
3
5
|
export function cloudOrigin(env = process.env) {
|
|
4
|
-
const value = env.OPENROD_CLOUD_ORIGIN
|
|
6
|
+
const value = (env.OPENROD_CLOUD_ORIGIN ?? DEFAULT_CLOUD_ORIGIN).trim()
|
|
5
7
|
if (!value) return null
|
|
6
8
|
let url
|
|
7
9
|
try { url = new URL(value) } catch { throw Error('OPENROD_CLOUD_ORIGIN must be an HTTPS origin without a path') }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DEFAULT_CLOUD_ORIGIN = 'https://console.openrod.io'
|
package/src/lib/cloud-origin.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* global __OPENROD_CLOUD_ORIGIN__ */
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { DEFAULT_CLOUD_ORIGIN } from '../../shared/cloud-origin.js'
|
|
3
|
+
|
|
4
|
+
// The build can override or disable the hosted endpoint; runtime status is authoritative.
|
|
5
|
+
const configured = (typeof __OPENROD_CLOUD_ORIGIN__ === 'string' ? __OPENROD_CLOUD_ORIGIN__ : DEFAULT_CLOUD_ORIGIN).trim()
|
|
4
6
|
export const CLOUD_ORIGIN = /^https:\/\/[a-z0-9.-]+(:\d+)?$/i.test(configured) ? configured : ''
|
|
5
7
|
export const CLOUD_AVAILABLE = Boolean(CLOUD_ORIGIN)
|
|
6
8
|
export const CLOUD_SOON = "Cloud is coming soon. We're still working on it."
|