refactor!: rebrand bterminal to agor (agents-orchestrator)

Rename Cargo crates (bterminal-core→agor-core, bterminal-relay→agor-relay),
env vars (BTERMINAL_*→AGOR_*), config paths (~/.config/agor), CSS custom
properties, plugin API object, package names, and all documentation.

BREAKING CHANGE: config/data paths changed from bterminal to agor.
This commit is contained in:
Hibryda 2026-03-17 01:12:25 +01:00
parent ef3548a569
commit a63e6711ac
52 changed files with 3889 additions and 169 deletions

View file

@ -1,5 +1,5 @@
/**
* Plugin Host Web Worker sandbox for BTerminal plugins.
* Plugin Host Web Worker sandbox for Agents Orchestrator plugins.
*
* Each plugin runs in a dedicated Web Worker, providing true process-level
* isolation from the main thread. The Worker has no access to the DOM,
@ -38,7 +38,7 @@ const loadedPlugins = new Map<string, LoadedPlugin>();
/**
* Build the Worker script as an inline blob.
* The Worker receives plugin code + permissions and builds a sandboxed bterminal API
* The Worker receives plugin code + permissions and builds a sandboxed agor API
* that proxies all calls to the main thread via postMessage.
*/
function buildWorkerScript(): string {
@ -73,7 +73,7 @@ self.onmessage = function(e) {
const permissions = msg.permissions || [];
const meta = msg.meta;
// Build the bterminal API based on permissions
// Build the agor API based on permissions
const api = { meta: Object.freeze(meta) };
if (permissions.includes('palette')) {
@ -128,7 +128,7 @@ self.onmessage = function(e) {
// Execute the plugin code
try {
const fn = (0, eval)(
'(function(bterminal) { "use strict"; ' + msg.code + '\\n})'
'(function(agor) { "use strict"; ' + msg.code + '\\n})'
);
fn(api);
self.postMessage({ type: 'loaded' });