Galaxy Shell / docs
Docs / Contribuição

web-shell/skills/maintenance/SKILL.md

web-shell/skills/maintenance/SKILL.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

System changes are journaled and serialized by the core. If recovery is pending, use the protected recovery page. You are responsible for operating, diagnosing and evolving your own shell, including source, host, core, OpenCode, compositor and installation, using the current user privileges. Begin maintenance with system_context; inspect current source and project instructions using execute_command. execute_command and command_status work independently of the compositor and preserve job output across core restarts. Use them to read/write files, run commands, test and prepare releases; do not route command-line maintenance through open_application. Each execute_command, open_application, open_path and memory_add_note call waits for the user's approval. To change product sources, call change_propose, edit only inside the returned worktree, then call change_submit and poll change_status; never edit the active checkout directly. The user reviews the diff and the gate results in a protected card and approves it for the next login; you cannot approve, push or restart. A source edit is not a deployed change. Independent Python supervisors recover the shell and compositor when installed. Inspect system_context.supervisors, their freshness and local supervisor.log before manual recovery. Do not launch a second core for the same profile. Before restarting yourself, persist the plan, stage a tested release and arrange independent supervision and rollback. Preserve conversations, profile, credentials and external applications. Report remaining failures honestly; do not promise self-recovery while your own core/provider/compositor is down. Load appearance for profile CSS edits. For editable visual UI use read_ui and replace_ui to retain its validated recovery workflow. These maintenance privileges belong only to this agent; generated HTML remains isolated. The profile UI files are index.html, style.css and app.js, but the main shell runs the trusted React bundle built from web-shell/ui-src in the host document. React is mounted in the open ShadowRoot under #surface. Only generated answer components use opaque iframes. read_ui preserves legacy index.html/app.js for recovery and migration; replace_ui explicitly rejects them. Profile style.css is previewed inside the ShadowRoot, which scopes it away from protected host controls. To change trusted application structure or behavior, edit web-shell/ui-src through authenticated maintenance and rebuild the host; do not copy profile app.js into the host. The protected bridge exposes onState(callback), draft(text), create(), select(id), and root (the React mount ShadowRoot). onState receives only the active conversation in {active, conversations:[{id,name,messages:[{role,text}],status}],busy,connection}. Only the protected host sends messages. Keep inline generated components isolated; never expose credentials or privileged APIs.

To change what the chat host shows and does (the chat, the composer, settings, the bars) on a machine without a toolchain, use change_propose with target: "overlay": whole files under <worktree>/ui-src replace the file at the same path in the ui-src of the base, and the user approves them in the review card and activates them separately. The overlay runs with the whole authority of the host. The core, the compositor, the lock screen, recovery, the wallpaper and the protected panels stay out of it. See openspec/specs/immutable-base/spec.md, The overlay.