89 lines
3.2 KiB
JavaScript
89 lines
3.2 KiB
JavaScript
(function () {
|
|
"use strict";
|
|
|
|
var pluginName = "atlas-operator-guide";
|
|
var storageKey = "atlas.operator-guide.hidden.v1";
|
|
var prompt = [
|
|
"Use $master-hermes-on-atlas to run the Atlas two-hour proof sprint.",
|
|
"I will perform every setup and evidence step myself.",
|
|
"Start with step 1 only, require live proof, and stop at every mutation or approval boundary.",
|
|
"First confirm this session is using openai-codex/gpt-5.6-terra rather than the local fallback."
|
|
].join(" ");
|
|
|
|
function OperatorGuide() {
|
|
var sdk = window.__HERMES_PLUGIN_SDK__;
|
|
var React = sdk.React;
|
|
var state = sdk.hooks.useState(function () {
|
|
return window.localStorage.getItem(storageKey) === "1";
|
|
});
|
|
var hidden = state[0];
|
|
var setHidden = state[1];
|
|
var copiedState = sdk.hooks.useState(false);
|
|
var copied = copiedState[0];
|
|
var setCopied = copiedState[1];
|
|
|
|
if (hidden) {
|
|
return React.createElement(
|
|
"button",
|
|
{
|
|
className: "atlas-guide-restore",
|
|
onClick: function () {
|
|
window.localStorage.removeItem(storageKey);
|
|
setHidden(false);
|
|
},
|
|
type: "button"
|
|
},
|
|
"Show Atlas operator walkthrough"
|
|
);
|
|
}
|
|
|
|
function copyPrompt() {
|
|
navigator.clipboard.writeText(prompt).then(function () {
|
|
setCopied(true);
|
|
window.setTimeout(function () { setCopied(false); }, 2500);
|
|
});
|
|
}
|
|
|
|
return React.createElement(
|
|
"section",
|
|
{ className: "atlas-guide-card", role: "region", "aria-label": "Atlas operator walkthrough" },
|
|
React.createElement(
|
|
"div",
|
|
{ className: "atlas-guide-heading" },
|
|
React.createElement("div", null,
|
|
React.createElement("strong", null, "Start here: two-hour Hermes proof sprint"),
|
|
React.createElement("p", null, "You do the setup and evidence work. Hermes coaches, checks, and stops at approval boundaries.")
|
|
),
|
|
React.createElement(
|
|
"button",
|
|
{
|
|
className: "atlas-guide-hide",
|
|
onClick: function () {
|
|
window.localStorage.setItem(storageKey, "1");
|
|
setHidden(true);
|
|
},
|
|
type: "button"
|
|
},
|
|
"Hide"
|
|
)
|
|
),
|
|
React.createElement(
|
|
"ol",
|
|
{ className: "atlas-guide-steps" },
|
|
React.createElement("li", null, "Confirm Models shows openai-codex/gpt-5.6-terra for the coaching session."),
|
|
React.createElement("li", null, "Copy the sprint prompt, paste it into Chat, and press Enter."),
|
|
React.createElement("li", null, "Complete one live triage and build one writable skill yourself.")
|
|
),
|
|
React.createElement(
|
|
"div",
|
|
{ className: "atlas-guide-actions" },
|
|
React.createElement("a", { className: "atlas-guide-button", href: "/models" }, "Open Models"),
|
|
React.createElement("button", { className: "atlas-guide-button", onClick: copyPrompt, type: "button" }, copied ? "Prompt copied" : "Copy sprint prompt"),
|
|
React.createElement("a", { className: "atlas-guide-link", href: "/skills" }, "Inspect skills")
|
|
)
|
|
);
|
|
}
|
|
|
|
window.__HERMES_PLUGINS__.registerSlot(pluginName, "chat:top", OperatorGuide);
|
|
}());
|