mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 07:00:48 +08:00
Ship Cursor-only MCP admin and modular Admin/Chat UI.
Plugins/Skills install and edit via mcpServers JSON, with clearer row actions, soft reloads, and instant loading placeholders; also drop MCP market and harden related scheduler/logging/exec guards. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2aff012b48
commit
f6f129931f
61 changed files with 18057 additions and 16327 deletions
25
interfaces/admin/static/js/chat/state.js
Normal file
25
interfaces/admin/static/js/chat/state.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
const LANG_KEY = "ops_admin_lang";
|
||||
const CHAT_REASONING_TOGGLE_KEY = "ops_chat_reasoning_toggle";
|
||||
const ADMIN_CHAT_SHOW_TOOL_OUTPUT_DEFAULT = true;
|
||||
|
||||
let lang = "zh";
|
||||
try {
|
||||
lang = String(localStorage.getItem(LANG_KEY) || "zh").toLowerCase();
|
||||
} catch (_) {}
|
||||
if (lang !== "zh" && lang !== "en") lang = "zh";
|
||||
|
||||
let showTool = ADMIN_CHAT_SHOW_TOOL_OUTPUT_DEFAULT;
|
||||
try {
|
||||
const _rt = String(localStorage.getItem(CHAT_REASONING_TOGGLE_KEY) || "").trim().toLowerCase();
|
||||
if (_rt) showTool = ["1", "true", "yes", "on"].includes(_rt);
|
||||
} catch (_) {}
|
||||
|
||||
export const state = {
|
||||
currentLang: lang,
|
||||
authSession: null,
|
||||
adminChatShowToolOutput: showTool,
|
||||
meProfile: null,
|
||||
statusReasonPairs: [],
|
||||
jobsBadgeEl: null,
|
||||
jobsBtnLabelEl: null,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue