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.
@@ -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-DBqg9X9x.js";/**
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
  *
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-DBqg9X9x.js"></script>
11
- <link rel="stylesheet" crossorigin href="/assets/index-HZ0q_FBv.css">
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>
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openrod",
3
- "version": "0.1.3",
3
+ "version": "0.2.0-rc.2",
4
4
  "description": "A local console for OpenShell gateways, sandboxes, and activity.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/OpenRod/OpenRod#readme",
@@ -1,7 +1,9 @@
1
- // Cloud is unavailable unless OPENROD_CLOUD_ORIGIN names an HTTPS origin; local endpoints then refuse before contacting any cloud service.
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?.trim()
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'
@@ -1,6 +1,8 @@
1
1
  /* global __OPENROD_CLOUD_ORIGIN__ */
2
- // Set at build time from OPENROD_CLOUD_ORIGIN; unset keeps every cloud action disabled.
3
- const configured = typeof __OPENROD_CLOUD_ORIGIN__ === 'string' ? __OPENROD_CLOUD_ORIGIN__ : ''
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."